/*
 * Spona Leads - Main CSS
 * A consolidated stylesheet containing all application styles
 */

/* Global styles and resets */
body {
    background-color: #f5f7fa;
    padding: 0;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh; /* Ensure full viewport height */
}

* {
    box-sizing: border-box;
}

/* Main container and layout */
.app-container {
    max-width: none; /* Remove max-width constraint */
    margin: 0; /* Remove auto margins */
    background-color: #f5f7fa; /* Use body background color */
    box-shadow: none; /* Remove container shadow */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%; /* Full width */
}

/* New Unified Header */
.app-header {
    background: #f8fafc;
    color: #222;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.9;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #e2e8f0;
    color: #111;
}

.nav-btn.active {
    background: #e2e8f0;
    color: #111;
}

.nav-btn .material-icons {
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 6px;
}

.session-info .material-icons {
    font-size: 1rem;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #222;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: #e2e8f0;
    border-color: #a0aec0;
}

.welcome-text {
    font-weight: 400;
}

.welcome-text strong {
    font-weight: 600;
}

.admin-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.admin-badge-new {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.user-menu-far-right {
    margin-left: auto;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.user-dropdown-header strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
}

.user-dropdown-header small {
    color: #666;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
}

.user-dropdown-item .material-icons {
    font-size: 1.1rem;
    color: #666;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: #ffffff !important;
}

/* Main content */
.app-content {
    padding: 1rem 0;
    flex: 1;
    background-color: #f5f7fa; /* Match body background */
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 4px;
}

.tab {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 4px;
    text-align: center;
}

.tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.tab.active {
    color: #33bd9c;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form section */
.form-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    max-width: none; /* Remove any width constraints */
}

.form-section h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Form rows and groups */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group small {
    color: #777;
    font-size: 0.8rem;
}

/* Input fields */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #333;
}

.form-control:focus {
    border-color: #33bd9c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.15);
}

select.form-control {
    height: 42px;
}

/* Buttons */
.form-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn .material-icons {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(51, 189, 156, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: #28957b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(51, 189, 156, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(51, 189, 156, 0.2);
}

.btn-primary:disabled {
    background: #b0bec5;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.btn-primary:disabled .loading {
    display: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.action-btn {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.25);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.4);
    color: white;
}

/* Removed .export-btn - now using .action-btn for consistent styling */

/* Footer - Hide it */
.app-footer {
    display: none;
}

/* Industry search and selection */
.industry-container {
    position: relative;
}

.industry-search-container {
    position: relative;
}

/* Industry search icon removed */

.industry-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #33bd9c;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(51, 189, 156, 0.15);
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-option {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f9f7;
    font-size: 14px;
    color: #374151;
    position: relative;
}

.industry-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.industry-option:hover {
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
    color: #065f46;
    padding-left: 20px;
}

.industry-option.no-results {
    color: #9ca3af;
    cursor: default;
    text-align: center;
    padding: 20px 16px;
}

.industry-option.no-results:hover {
    background: white;
    padding-left: 16px;
}

.industry-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 5px 0;
}

.industry-option input[type="checkbox"] {
    margin-right: 10px;
}

.industry-select-container {
    margin-top: 10px;
}

.industry-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px 12px 0 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.industry-search:focus {
    border-color: #33bd9c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
    border-radius: 12px 12px 0 0;
}

.selected-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.selected-industry {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #065f46;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(51, 189, 156, 0.1);
}

.selected-industry:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(51, 189, 156, 0.2);
}

.remove-industry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #33bd9c 0%, #28957b 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
    line-height: 1;
}

.remove-industry:hover {
    background: linear-gradient(135deg, #28957b 0%, #1f7a6b 100%);
    transform: scale(1.1);
}

.search-loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #33bd9c;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    text-align: center;
    color: #777;
}

.loading-icon {
    border: 4px solid rgba(51, 189, 156, 0.1);
    border-radius: 50%;
    border-top: 4px solid #33bd9c;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Small spinner for inline button use */
.btn-spinner-small {
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid currentColor;
    width: 14px;
    height: 14px;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.search-results {
    margin-top: 3rem;
    padding: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 500;
}

.results-table-container {
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #eee;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.results-table th, .results-table td {
    padding: 14px 20px;
    text-align: left;
}

.results-table th {
    background-color: #f6fcfa;
    font-weight: 500;
    color: #444;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table tr:hover {
    background-color: #f9fffe;
}

/* Email cell styles for proper text wrapping */
.results-table .email-cell {
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

.results-table .email-cell a {
    color: #33bd9c;
    text-decoration: none;
}

.results-table .email-cell a:hover {
    text-decoration: underline;
}

/* LinkedIn cell styles to match email styling */
.results-table .linkedin-cell a {
    color: #33bd9c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.results-table .linkedin-cell a:hover {
    color: #28957b;
    transform: scale(1.1);
}

.results-table .linkedin-cell a .material-icons {
    font-size: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th:hover {
    background-color: #f0faf8;
    cursor: pointer;
}

.estimate-results-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.estimate-card {
    background: linear-gradient(135deg, #f8fdfc 0%, #f0faf8 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0f4f0;
    transition: all 0.3s ease;
    box-shadow: none;
    width: 100%;
    max-width: 800px;
    min-width: 600px;
}

.estimate-card:hover {
    box-shadow: 0 8px 25px rgba(51, 189, 156, 0.15);
    transform: translateY(-2px);
    border-color: #c7f0e7;
}

.estimate-content {
    padding: 2.5rem;
}

.estimate-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0f4f0;
}

.estimate-title {
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
    color: #2d5a4a;
    text-align: center;
    letter-spacing: 0.3px;
}

.estimate-toggle-btn {
    background: none;
    border: none;
    color: #33bd9c;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.estimate-toggle-btn:hover {
    background-color: #f0faf8;
}

.estimate-full-text {
    padding: 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fffe 100%);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2d5a4a;
    margin-bottom: 0;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0f4f0;
    box-shadow: inset 0 2px 8px rgba(51, 189, 156, 0.05);
    text-align: left;
}

.estimate-truncated {
    color: #666;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 1rem;
}

.estimate-results {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.estimate-box {
    background-color: #e3f8f4;
    border-radius: 6px;
    padding: 12px 16px;
    font-weight: 500;
    color: #33bd9c;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.estimate-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #777;
}

.debug-section {
    margin-top: 3rem;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.debug-section pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Info notification styles */
.info-notification {
    background-color: #e3f8f4;
    border: 1px solid #c7f0e7;
    border-left: 4px solid #33bd9c;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-notification .info-icon {
    color: #33bd9c;
}

.info-notification p {
    margin: 0;
    flex: 1;
}

/* Form validation styles */
.field-error {
    color: #ff6e4a;
    font-size: 12px;
    background-color: #fff2ee;
    padding: 8px 12px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: none; /* Hide by default, show only when validation fails */
    font-weight: 500;
}

/* Style for error fields */
.error-field {
    border-color: #ff6e4a !important;
}

/* Required field marker */
.required {
    color: #ff6e4a;
    margin-left: 4px;
}

/* Error notification styles */
.error {
    background-color: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.error.fade-out {
    opacity: 0;
}

.error .close-notification {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    color: #e53e3e;
}

/* Warning notification styles */
.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.warning .close-notification {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    color: #92400e;
}

/* Company Pipeline Specific Styles */
.results-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #33bd9c;
}

.results-count {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.task2-preparation {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
}

.task2-preparation h3 {
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Results actions */
.results-actions {
    display: flex;
    gap: 10px;
}

.view-all-btn {
    margin-right: 5px;
    color: #33bd9c;
    background-color: #f0faf8;
    border: 1px solid #c7f0e7;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: #d1f2ea;
}

/* Website Statistics */
.website-stats {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.website-stats h4 {
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Website Actions */
.website-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.action-info {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 12px;
}

.no-action-needed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #28a745;
    font-weight: 500;
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

.no-action-needed .material-icons {
    font-size: 20px;
}

/* Task Progress Styles */
.task-progress-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.task-progress-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.task-progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-progress-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.task-progress-item.pending {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.task-progress-item.running {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.task-progress-item.completed {
    background-color: #d4edda;
    border-color: #c3e6cb;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.task-progress-item.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.task-progress-icon {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    min-width: 24px;
}

.task-progress-icon .material-icons {
    font-size: 1.2rem;
}

.task-progress-item.pending .material-icons {
    color: #6c757d;
}

.task-progress-item.running .material-icons {
    color: #856404;
}

.task-progress-item.completed .material-icons {
    color: #155724;
}

.task-progress-item.error .material-icons {
    color: #721c24;
}

.spinning {
    animation: spin 1s linear infinite;
}

.task-progress-content {
    flex: 1;
}

.task-progress-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.task-progress-message {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.task-progress-bar {
    position: relative;
    margin-top: 0.5rem;
}

/* Task Action Buttons */
.task-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Task Info Styles - Green text, no background */
.task-info {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

.task-info h3 {
    margin: 0 0 4px 0;
    color: #33bd9c;
    font-size: 18px;
    font-weight: 600;
}

.task-info p {
    margin: 0;
    color: #33bd9c;
    font-size: 14px;
    font-weight: 500;
}

/* Website Complete Message */
.website-complete-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #28a745;
    font-weight: 500;
    padding: 1rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-top: 1rem;
}

.website-complete-message .material-icons {
    font-size: 20px;
}

/* Pulse animation for running steps */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Additional error styling for company pipeline */
.contacts-tab .error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contacts-tab .error .close-notification {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.contacts-tab .error .close-notification:hover {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        padding: 0;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .app-header {
        padding: 1rem;
    }
    
    .app-content {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
}

.stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .estimate-card {
        min-width: unset;
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .estimate-content {
        padding: 1.5rem;
    }
    
    .estimate-title {
        font-size: 1.2rem;
    }
    
    .estimate-full-text {
        padding: 20px;
        font-size: 1rem;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .estimate-results-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .estimate-card {
        margin: 0 0.5rem;
    }
    
    .estimate-content {
        padding: 1rem;
    }
    
    .estimate-full-text {
        padding: 15px;
        font-size: 0.95rem;
    }
}

/* Session Selector Styles */
.session-selector {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fa;
    padding: 2rem;
}

.session-selector-container {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    width: 100%;
}

.session-selector h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.session-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

.session-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.create-session-form {
    background: #f9fafb;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.create-session-form h3 {
    margin-top: 0;
    color: #1f2937;
}

.sessions-list h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.session-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.session-card:hover {
    border-color: #33bd9c;
    box-shadow: 0 4px 16px rgba(51, 189, 156, 0.1);
    transform: translateY(-2px);
}

.session-card.completed {
    border-color: #10b981;
}

.session-card.archived {
    opacity: 0.7;
    border-color: #9ca3af;
}

.session-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.session-card-header h4 {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #047857;
}

.status-archived {
    background: #f3f4f6;
    color: #6b7280;
}

.session-card-content .session-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
}

.session-progress {
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    transition: width 0.3s ease;
}

.session-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.session-meta small {
    color: #9ca3af;
    font-size: 0.8rem;
}

.session-card-action {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.session-card:hover .session-card-action {
    opacity: 1;
}

.session-card-action i {
    color: #33bd9c;
    font-size: 1.2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.loading-state {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-state .loading-spinner {
    margin: 0 auto 1rem;
}

/* Task-based Pipeline Styles */
.contacts-tab {
    width: 100%;
    padding: 20px 0;
}

/* Error Notification */
.error-notification {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.close-notification {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-notification:hover {
    opacity: 1;
}

/* Pipeline Layout */
.pipeline-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    align-items: start;
}

.pipeline-sidebar {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.pipeline-main {
    min-height: 400px;
}

/* Task List */
.task-list h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.task-item {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.task-item.pending {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.task-item.current {
    background: #f0fdf9;
    border-color: #33bd9c;
    box-shadow: 0 2px 8px rgba(51, 189, 156, 0.15);
}

.task-item.completed {
    background: #f0fdf4;
    border-color: #28957b;
}

.task-item.clickable {
    cursor: pointer;
}

.task-item.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.task-item.viewing {
    background: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.task-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.task-item-icon {
    margin-top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid;
    transition: all 0.2s ease;
    position: relative;
}

.task-item.pending .task-item-icon {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #9ca3af;
}

.task-item.current .task-item-icon {
    background: #33bd9c;
    border-color: #33bd9c;
    color: white;
}

.task-item.completed .task-item-icon {
    background: #28957b;
    border-color: #28957b;
    color: white;
}

.task-item-icon::after {
    content: '';
    position: absolute;
}

.task-item.pending .task-item-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.task-item.current .task-item-icon::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.task-item.completed .task-item-icon::after {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
    color: white;
    position: static;
}

.task-item-info {
    flex: 1;
}

.task-item-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.task-item-info p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Task Steps */
.task-steps {
    margin-top: 12px;
    padding-left: 32px;
}

.task-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
}

.step-icon .material-icons {
    font-size: 14px;
}

.task-step.pending .material-icons {
    color: #9ca3af;
}

.task-step.current .material-icons {
    color: #33bd9c;
}

.task-step.completed .material-icons {
    color: #28957b;
}

.step-name {
    color: #374151;
}

.task-step.pending .step-name {
    color: #9ca3af;
}

.task-step.current .step-name {
    color: #1f2937;
    font-weight: 500;
}

.task-step.completed .step-name {
    color: #065f46;
}

/* Task Card */
.task-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    animation: slideIn 0.3s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.task-card.completion-card {
    text-align: center;
    background: linear-gradient(135deg, #33bd9c, #28957b);
    color: white;
    border: none;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: #f0fdf9;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
}

.task-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #33bd9c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.completion-card .task-header {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.completion-card .task-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.task-icon .material-icons {
    font-size: 24px;
}

.completion-card .task-info h3 {
    color: white;
}

.completion-card .task-info p {
    color: rgba(255,255,255,0.9);
}

.search-summary {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.search-summary p {
    margin: 0 0 8px 0;
    color: #374151;
}

.search-summary p:last-child {
    margin-bottom: 0;
}

/* Progress Section */
.progress-section {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.progress-section .progress-bar {
    margin: 12px 0;
}

.progress-section p {
    margin: 0;
    color: #374151;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #33bd9c, #28957b);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Website Stats */
.website-stats {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #28957b;
    font-weight: 500;
    background: #ecfdf5;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
}

.success-message .material-icons {
    font-size: 20px;
}

/* Form Styles */
.task-form {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.required {
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.form-control:disabled {
    background: #f9fafb;
    color: #6b7280;
}

.form-control::placeholder {
    color: #9ca3af;
}

small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Industry Search */
.industry-search-container {
    position: relative;
}

/* Industry search icon styling handled above */

/* Modern industry dropdown - second instance */

.selected-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* Modern selected industry styling - second instance already handled above */

/* Task Actions */
.task-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 120px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #33bd9c;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #28957b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(51, 189, 156, 0.3);
}

.btn .material-icons {
    font-size: 18px;
}

.spinning {
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pipeline-layout {
        grid-template-columns: 300px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contacts-tab {
        padding: 16px;
    }
    
    .pipeline-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pipeline-sidebar {
        position: static;
        max-height: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .task-actions {
        justify-content: stretch;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Viewing Previous Header */
.viewing-previous-header {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.viewing-previous-header h4 {
    margin: 0;
    color: #92400e;
    font-size: 16px;
    font-weight: 600;
}

.back-to-current {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-current:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.back-to-current .material-icons {
    font-size: 18px;
}

/* Completed Task Styles */
.completed-task {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.completed-task .task-header .task-icon.completed {
    background: #10b981;
    color: white;
}

.completed-task .task-header .task-info h3 {
    color: #065f46;
}

.completed-task .task-header .task-info p {
    color: #047857;
}

/* Completion Summary */
.completion-summary {
    padding: 1.5rem 0;
}

.completion-summary h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Result Stats */
.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.stat-card.primary {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.stat-card.success {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

.stat-card.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.stat-card.info {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.stat-card.secondary {
    border-color: #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Criteria Summary */
.search-criteria-summary {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.criteria-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.criteria-label {
    font-weight: 600;
    color: #374151;
    margin-right: 0.5rem;
    min-width: 120px;
}

.criteria-value {
    color: #1f2937;
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

/* Fetch Details */
.fetch-details {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.detail-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.detail-label {
    font-weight: 600;
    color: #374151;
}

.detail-value {
    color: #1f2937;
    font-weight: 500;
}

.detail-value.success {
    color: #065f46;
    background: #d1fae5;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Analysis Summary */
.analysis-summary {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.analysis-details {
    margin-top: 1rem;
}

.analysis-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.analysis-item.success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.analysis-item i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.analysis-item.success i {
    color: #10b981;
}

/* Completion Status */
.completion-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.completion-status i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

/* Responsive Design for Completed Tasks */
@media (max-width: 768px) {
    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Home Screen Styles - NEW */
.home-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.home-header {
    text-align: center;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-content {
    flex: 1;
}

.home-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    margin-top: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 200px;
}

.user-welcome {
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge {
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border-color: #dc3545;
    color: #dc3545;
}

.logout-btn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.home-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    flex: 1;
}

.home-option {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(51, 189, 156, 0.3);
    border-left: 4px solid #33bd9c;
}

.option-icon {
    background-color: #ecfdf5;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.option-icon i {
    font-size: 28px;
    color: #33bd9c;
}

.option-content {
    text-align: left;
}

.option-content h3 {
    margin-bottom: 6px;
    color: #343a40;
}

.option-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Checkbox Styling for Estimation - NEW */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 8px 0;
    position: relative;
    width: 20px;
    height: 20px;
}

.checkbox-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
}

.checkbox-input {
    position: absolute;
    cursor: pointer;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    z-index: 2;
}

.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #f3f4f6;
    pointer-events: none;
}

.checkbox-checkmark .material-icons {
    font-size: 14px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-input:checked ~ .checkbox-wrapper .checkbox-checkmark {
    background: #33bd9c;
}

.checkbox-input:checked ~ .checkbox-wrapper .checkbox-checkmark .material-icons {
    opacity: 1;
}

.checkbox-input:focus ~ .checkbox-wrapper .checkbox-checkmark {
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 189, 156, 0.3);
}

.checkbox-input:disabled ~ .checkbox-wrapper .checkbox-checkmark {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Add the second wave element using a pseudo-element on header-top */
.header-top::after {
    display: none;
}

/* Three-panel layout for execution history */
.pipeline-layout.three-panel {
    display: grid;
    grid-template-columns: 280px 1fr 320px; /* Left: pipeline tasks, Center: form (flexible), Right: execution history */
    gap: 24px;
    height: calc(100vh - 120px);
    width: 100%;
    padding: 0 24px; /* Add horizontal padding instead of centering with max-width */
    box-sizing: border-box;
    align-items: start; /* Align items to top */
    overflow: hidden; /* Prevent outer scroll */
}

/* Left sidebar - Pipeline Tasks - Sticky */
.pipeline-layout.three-panel > .pipeline-sidebar:first-child {
    position: sticky;
    top: 0;
    height: calc(100vh - 140px);
    overflow-y: auto;
    align-self: start;
}

/* Make the center column (pipeline-main) stretch its children */
.pipeline-layout.three-panel > .pipeline-main {
    min-width: 0;
    width: 100%;
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 8px; /* Space for scrollbar */
}

/* Ensure task-card fills the available width */
.pipeline-layout.three-panel .task-card {
    width: 100%;
    max-width: none;
}

/* Right sidebar - Execution History - Sticky */
.pipeline-sidebar.right {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 0;
    overflow: hidden;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: start;
}

.pipeline-main {
    min-width: 0;
    width: 100%;
    overflow-y: auto;
    background-color: transparent;
}

/* Execution History Panel */
.execution-history-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex child overflow */
}

.execution-history-panel .panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.execution-history-panel .panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Refresh button styling for execution history panel */
.execution-history-panel .panel-header .btn-outline {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #6b7280 !important;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: unset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.execution-history-panel .panel-header .btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.execution-history-panel .panel-header .btn-outline:active {
    background-color: #e5e7eb;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.execution-history-panel .panel-header .btn-outline .material-icons {
    font-size: 16px;
    margin: 0;
}

.execution-history-panel .panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px;
    min-height: 0; /* Important for flex overflow */
    /* Improve scrolling on all devices */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* Custom scrollbar for webkit browsers */
.execution-history-panel .panel-content::-webkit-scrollbar {
    width: 6px;
}

.execution-history-panel .panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.execution-history-panel .panel-content::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.execution-history-panel .panel-content::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* Execution Timeline */
.execution-timeline {
    position: relative;
    /* Add some bottom padding to ensure last item is fully visible when scrolled */
    padding-bottom: 20px;
}

.execution-entry {
    position: relative;
    margin-bottom: 20px;
}

.execution-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.execution-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.execution-status.status-completed {
    background: #10b981;
    color: white;
}

.execution-status.status-running {
    background: #f59e0b;
    color: white;
    animation: pulse 2s infinite;
}

.execution-status.status-failed {
    background: #ef4444;
    color: white;
}

.execution-status.status-pending {
    background: #e5e7eb;
    color: #6b7280;
}

.execution-status .material-icons {
    font-size: 14px;
}

.execution-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.execution-time {
    font-size: 12px;
    color: #6b7280;
}

.execution-log {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.execution-log .log-content {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.execution-error {
    margin-top: 8px;
    margin-left: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 12px;
}

.execution-error .material-icons {
    font-size: 14px;
}

.execution-connector {
    position: absolute;
    left: 11px;
    top: 30px;
    width: 2px;
    height: 20px;
    background: #e5e7eb;
}

/* States */
.loading-state, .error-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.loading-state .loading-spinner {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
}

.error-state .material-icons,
.empty-state .material-icons {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .pipeline-layout.three-panel {
        grid-template-columns: 260px 1fr 300px;
        gap: 20px;
        padding: 0 20px;
    }

    .pipeline-sidebar.right {
        min-width: 280px;
    }
}

@media (max-width: 1200px) {
    .pipeline-layout.three-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        padding: 0 16px;
        height: auto; /* Allow height to adjust */
    }

    .pipeline-sidebar.right {
        min-width: unset;
        height: 400px; /* Fixed height when stacked to ensure scrolling works */
        max-height: 500px; /* Prevent it from becoming too tall */
    }

    /* Ensure execution history panel works well when stacked */
    .execution-history-panel .panel-content {
        max-height: 320px; /* Constrain height when sidebar is stacked */
    }

    .pipeline-main {
        min-width: 0; /* Remove minimum width constraint on mobile */
        width: 100%;
        order: 2; /* Ensure main content is in the middle */
    }

    .pipeline-sidebar:not(.right) {
        order: 1; /* Left sidebar first */
    }

    .pipeline-sidebar.right {
        order: 3; /* Right sidebar last */
    }
}

@media (max-width: 768px) {
    .pipeline-layout.three-panel {
        gap: 10px;
        height: auto;
        min-height: calc(100vh - 120px);
    }
    
    .pipeline-sidebar.right {
        max-height: 250px;
    }
}

/* Task 4 SSC Evaluation Specific Styles */
.ssc-criteria-input {
    margin-top: 20px;
}

.criteria-banner {
    background: linear-gradient(135deg, #f0fdf9, #e6fffa);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    margin-bottom: 12px;
}

.criteria-banner .input-label {
    font-weight: 600;
    color: #0f766e;
    margin: 0 0 4px 0;
    font-size: 16px;
}

.criteria-banner .input-help {
    color: #0d9488;
    margin: 0;
    font-size: 14px;
}

.criteria-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    resize: vertical;
}

.criteria-textarea:focus {
    border-color: #33bd9c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.2);
}

.criteria-textarea:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.character-counter {
    font-size: 0.8rem;
    color: #666;
    text-align: left;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

/* SSC Statistics Grid */
.ssc-stats {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.stats-grid.two-by-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* SSC Evaluation Progress */
.evaluation-progress {
    margin-top: 20px;
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
}

.progress-stats p {
    margin: 0.25rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Confirmation Dialog */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirmation-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.confirmation-content h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.confirmation-content p {
    margin: 0.75rem 0;
    color: #6b7280;
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 2rem;
}

.confirmation-actions .btn {
    min-width: 120px;
    justify-content: center;
}

/* Task 6 People Search Specific Styles */
.people-search-info {
    margin-top: 20px;
}

.job-titles-input {
    margin-top: 20px;
}

.job-titles-input .criteria-banner {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #7dd3fc;
}

.job-titles-input .criteria-banner .input-label {
    color: #0369a1;
}

.job-titles-input .criteria-banner .input-help {
    color: #0284c7;
} 

/* Task 7 Deduplication - Simplified UI Styles */

/* Status Badge States */
.status-badge.ready {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background: #d1fae5;
    color: #047857;
}

.status-badge.processing {
    background: #10b981;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Processing Section */
.processing-section {
    background: white;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

/* Error Section */
.error-section {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.processing-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.processing-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-modern {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.processing-step {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    margin: 0;
}

/* Progress Container */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill.animated {
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.processing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
}

.processing-note .material-icons {
    font-size: 16px;
}

/* Results Section */
.results-section {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 24px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.success-icon {
    width: 48px;
    height: 48px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.success-icon .material-icons {
    font-size: 24px;
}

.results-info {
    text-align: center;
}

.results-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.results-info p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

/* Results Stats Grid */
.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

/* These styles are now handled by the unified .stat-card styles below
.stat-card {
    background: white;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
*/

/* Completion Message */
.completion-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #10b981;
    border-radius: 6px;
    color: #065f46;
    font-weight: 500;
}

.completion-message .material-icons {
    font-size: 16px;
}

/* Large Button */
.btn-large {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    min-width: 140px;
    border-radius: 6px;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-success .material-icons {
    font-size: 16px;
}

/* Alert Error for Task 7 */
.alert.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert.alert-error .material-icons {
    font-size: 16px;
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .processing-header,
    .results-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .processing-section,
    .results-section {
        padding: 16px;
    }
}

/* Task progress bar for deduplication */
.task-progress {
    margin-top: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.progress-bar-container {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

/* Loading status with progress */
.loading-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.loading-status p {
    margin: 15px 0;
    color: #4b5563;
    font-weight: 500;
}

/* Success container with details */
.success-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Results details styling */
.result-details {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.result-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #374151;
    font-weight: 500;
    font-size: 16px;
}

.result-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.result-stats li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 180px;
}

.result-stats li i {
    color: #33bd9c;
    font-size: 20px;
}

/* Log details styling */
.log-details {
    margin-top: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.log-details summary {
    padding: 12px 15px;
    font-weight: 500;
    background-color: #f3f4f6;
    cursor: pointer;
    user-select: none;
}

.log-details summary:hover {
    background-color: #e5e7eb;
}

.completion-log {
    background-color: #1f2937;
    color: #e5e7eb;
    margin: 0;
    padding: 15px;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
}

/* Task 10 Bulk Enrichment - Minimal styles using existing patterns */

/* Enrichment progress container */
.enrichment-progress {
    margin: 20px 0;
}

.overall-progress {
    margin-bottom: 24px;
}

.overall-progress h4 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
}

/* Dual progress container for side-by-side progress bars */
.dual-progress-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.dual-progress-container h5 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

/* Progress bar variations for companies and people */
.progress-fill.companies {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.progress-fill.people {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* Enrichment info container */
.enrichment-info {
    margin: 20px 0;
}

.enrichment-info p {
    margin: 0 0 16px 0;
    color: #374151;
}

/* This class is now replaced by unified .stats-grid two-columns */

/* Stat header with icon and label */
.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.stat-header .material-icons {
    font-size: 18px;
    color: #6b7280;
}

/* Stat value and detail text */
.stat-value {
    font-weight: 600;
    color: #111827;
}

.stat-detail {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.9em;
}

/* Stat sublabel for additional info */
.stat-sublabel {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 2px;
}

/* Responsive design for dual progress */
@media (max-width: 768px) {
    .dual-progress-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .dual-progress-container {
        flex-direction: column;
    }
}

/* Unified Task Statistics Styling */
.task-stats {
    margin-bottom: 0;
}

.task-stats h4 {
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Unified stats grid - supports multiple layouts */
.stats-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid layout options */
.stats-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.stats-grid.two-by-two {
    grid-template-columns: repeat(2, 1fr);
}

.stats-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid.four-columns {
    grid-template-columns: repeat(4, 1fr);
}

/* Unified stat card styling */
.stat-card, .stat-item {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.stat-card:hover, .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #33bd9c;
}

/* Icon styling for stat cards */
.stat-card .material-icons {
    font-size: 1.5rem;
    color: #33bd9c;
    margin-bottom: 0.75rem;
    display: block;
}

/* Number styling */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #33bd9c;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Label styling */
.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

/* Sublabel styling */
.stat-sublabel {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 0.25rem;
}

.validation-info {
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: #064e3b;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .material-icons {
    color: #059669;
    font-size: 1.1rem;
}

.info-item span {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive design for unified stats grids */
@media (max-width: 768px) {
    .stats-grid.two-columns,
    .stats-grid.two-by-two,
    .stats-grid.three-columns,
    .stats-grid.four-columns {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 400px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .validation-info {
        padding: 1rem;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
}

/* Export actions styling for Task 13 */
.export-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.export-btn {
    min-width: 200px;
}

/* Login Screen Styles */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    margin: 0;
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #4a5568;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.login-form {
    margin-bottom: 2rem;
}

.admin-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.admin-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-header h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.3rem;
}

.admin-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.create-user-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2d3748;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #33bd9c;
    background: white;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.login-form input::placeholder {
    color: #a0aec0;
}

.login-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ba085 0%, #3cc9a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 189, 156, 0.25);
}

.login-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.warning {
    background: #fef5e7;
    border: 1px solid #f6e05e;
    color: #975a16;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1e8e6e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

@media (max-width: 768px) {
    .home-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .user-info {
        align-items: center;
        min-width: auto;
    }
}

/* Loading Screen Styles */
.loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
}

.loading-content {
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 3rem;
    max-width: 320px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.loading-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
}

.loading-content p {
    color: #4a5568;
    margin: 1rem 0 0 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.loading-progress {
    margin-top: 1.5rem;
}

.loading-progress .progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

@media (max-width: 640px) {
    .login-screen, .loading-screen {
        padding: 1rem;
    }
    
    .login-container, .loading-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}

.no-data-message {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.loading-fallback {
    text-align: center;
    padding: 3rem 2rem;
    color: #4a5568;
}

.loading-fallback .loading-icon {
    margin: 0 auto 1rem auto;
}

.loading-fallback p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #4a5568;
}

.loading-fallback small {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Fast Initial Loading Screen */
.initial-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.initial-loading-content {
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.initial-loading-content h1 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.loading-spinner-fast {
    width: 50px;
    height: 50px;
    margin: 0 auto 2rem auto;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #33bd9c;
    border-radius: 50%;
    animation: fast-spin 1s linear infinite;
}

.loading-text {
    color: #4a5568;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #33bd9c;
    border-radius: 50%;
    animation: loading-dots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes fast-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}



/* ===============================================
   NEW UI IMPROVEMENTS - UNIFIED HEADER & LAYOUT
   =============================================== */

/* Improved Home Screen Styles */
.home-welcome {
    text-align: center;
    margin-bottom: 3rem;
}

.home-welcome h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 500;
}

.home-welcome p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

/* Override existing home-options for better layout */
.home-options {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 2rem !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    flex-direction: row !important;
    padding: 0 !important;
    flex: none !important;
}

.home-option {
    background: white !important;
    padding: 2.5rem 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    flex: 1 !important;
    border: 2px solid transparent !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
}

.home-option:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(51, 189, 156, 0.15) !important;
    border-color: #33bd9c !important;
    border-left: 2px solid #33bd9c !important;
}

.option-icon {
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%) !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem auto !important;
    box-shadow: 0 4px 12px rgba(51, 189, 156, 0.25) !important;
    min-width: 60px !important;
}

.option-icon i {
    font-size: 1.8rem !important;
    color: white !important;
}

.option-content {
    color: #333 !important;
    text-align: center !important;
}

.option-content h3 {
    margin: 0 0 0.75rem 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.option-content p {
    margin: 0 !important;
    color: #666 !important;
    line-height: 1.4 !important;
    font-size: 0.9rem !important;
}

/* Session Controls */
.session-controls {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-tabs {
    display: flex;
    gap: 0.5rem;
}

.session-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.session-tab:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.session-tab.active {
    background: #33bd9c;
    border-color: #33bd9c;
    color: white;
}

.session-tab .material-icons {
    font-size: 1.1rem;
}

/* Admin Screen */
.admin-screen {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 500;
}

.admin-header p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

.admin-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
}

.users-list-placeholder .empty-state,
.admin-section .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.users-list-placeholder .empty-state i,
.admin-section .empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.users-list-placeholder .empty-state h4,
.admin-section .empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
}

.users-list-placeholder .empty-state p,
.admin-section .empty-state p {
    margin: 0;
    color: #6b7280;
}



/* Users Table Improvements */
.users-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0;
}

.header-cell {
    padding: 1rem;
    border-right: 1px solid #e9ecef;
}

.header-cell:last-child {
    border-right: none;
    text-align: center;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    min-height: 60px;
    align-items: center;
}

.table-row:hover {
    background: #f8f9fa;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 1rem;
    border-right: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
}

.table-cell:last-child {
    border-right: none;
    justify-content: center;
}

/* Warning box for modal content */
.warning-box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.warning-title {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #dc2626;
    font-size: 0.9rem;
}

.warning-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #7f1d1d;
    font-size: 0.85rem;
}

.warning-list li {
    margin-bottom: 0.25rem;
}

.warning-footer {
    margin: 0.75rem 0 0 0;
    font-weight: 600;
    color: #dc2626;
    font-size: 0.85rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-left {
        gap: 1rem;
    }
    
    .home-options {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .session-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .session-tabs {
        justify-content: center;
    }
    
    .admin-section {
        margin: 0 1rem 2rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    /* User table responsive - Simplified */
    .table-header {
        display: none;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        display: block;
        min-height: auto;
    }
    
    .table-cell {
        border: none;
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .table-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .actions-cell {
        justify-content: flex-end;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid #e5e7eb;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .actions-cell::before {
        display: none;
    }
    
    .btn-sm {
        min-width: 70px;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ===============================================
   CUSTOM CONFIRMATION DIALOG & ACTION BUTTONS
   =============================================== */

/* Simple Confirmation Dialog - matches task confirmation style */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.confirmation-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.confirmation-content h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.confirmation-content p {
    margin: 0 0 1rem 0;
    color: #374151;
    line-height: 1.6;
}

.confirmation-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.confirmation-actions .btn {
    min-width: 100px;
}

/* Clean action buttons */
.action-button {
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Mobile responsive improvements for modal */
@media (max-width: 768px) {
    .confirmation-content {
        width: 95%;
        margin: 1rem;
        max-width: none;
        padding: 1.5rem;
    }

    .confirmation-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .confirmation-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

/* ===== ELEGANT LOADING SCREEN ===== */
.elegant-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f2f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Raleway', sans-serif;
    z-index: 9999;
}

.loading-container {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.loading-animation {
    margin-bottom: 2rem;
    position: relative;
}

/* Orbital Spinner Animation */
.orbit-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.orbit {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: orbital-spin 2s linear infinite;
}

.orbit-1 {
    width: 80px;
    height: 80px;
    border-top: 3px solid #33bd9c;
    border-right: 3px solid rgba(51, 189, 156, 0.3);
    animation-duration: 1.8s;
}

.orbit-2 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top: 2px solid #45d6b5;
    border-right: 2px solid rgba(69, 214, 181, 0.4);
    animation-duration: 1.4s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top: 2px solid #66e6cc;
    border-right: 2px solid rgba(102, 230, 204, 0.5);
    animation-duration: 1s;
}

.center-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(51, 189, 156, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Loading Text Styles */
.loading-text h1 {
    margin: 0 0 0.8rem 0;
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #33bd9c 0%, #45d6b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Animations */
@keyframes orbital-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(51, 189, 156, 0.4);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 20px rgba(51, 189, 156, 0.6);
    }
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .orbit-spinner {
        width: 60px;
        height: 60px;
    }
    
    .orbit-1 {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .orbit-2 {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }
    
    .orbit-3 {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
    }
    
    .center-dot {
        width: 8px;
        height: 8px;
    }
    
    .loading-text h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .loading-text h1 {
        font-size: 1.5rem;
    }
    
    .loading-container {
        padding: 0 1rem;
    }
}

/* Session Delete Functionality */
.session-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    transform: scale(1);
}

.session-delete-btn .material-icons {
    font-size: 1.1rem;
}

.session-card:hover .session-delete-btn {
    opacity: 1;
    transform: scale(1);
}

/* Success message styling */
.error.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

/* Danger button styling */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-danger:disabled {
    background: #f87171;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Task-based Pipeline Styles */

/* Custom styled checkbox for enrichment option */
.enrichment-checkbox-label {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  font-weight: 500;
  color: #222;
  background: #f6fff6;
  padding: 10px 16px;
  margin: 18px 0 10px 0;
}

.enrichment-checkbox-label input[type='checkbox'] {
  accent-color: #22c55e; /* Tailwind green-500 */
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
}

.enrichment-checkbox-label .enrichment-checkbox-description {
  font-weight: 600;
  color: #22c55e;
  margin-left: 6px;
}

.header-logo-image {
  max-height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .header-logo-image {
    max-height: 40px;
  }
}

/* Pricing calculation enhancements - built on existing estimate styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.pricing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fffe 100%);
    border: 2px solid #e0f4f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #33bd9c 0%, #2d5a4a 100%);
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 189, 156, 0.15);
    border-color: #c7f0e7;
}

.pricing-card.premium {
    border-color: #e0f4f0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fffe 100%);
}

.pricing-card.premium::before {
    background: linear-gradient(90deg, #33bd9c 0%, #2d5a4a 100%);
}

.pricing-card.export {
    border-color: #e0f4f0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fffe 100%);
}

.pricing-card.export::before {
    background: linear-gradient(90deg, #33bd9c 0%, #2d5a4a 100%);
}

.pricing-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5a4a;
    margin: 0 0 0.5rem 0;
}

.pricing-card.premium .pricing-title {
    color: #2d5a4a;
}

.pricing-card.export .pricing-title {
    color: #2d5a4a;
}

.pricing-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #33bd9c;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.pricing-card.premium .pricing-amount {
    color: #33bd9c;
}

.pricing-card.export .pricing-amount {
    color: #33bd9c;
}

.pricing-currency {
    font-size: 1.4rem;
    font-weight: 500;
    margin-right: 0.1rem;
}

.pricing-per {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.pricing-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(51, 189, 156, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(51, 189, 156, 0.1);
}

.pricing-card.premium .pricing-details {
    background: rgba(51, 189, 156, 0.05);
    border-color: rgba(51, 189, 156, 0.1);
}

.pricing-card.export .pricing-details {
    background: rgba(51, 189, 156, 0.05);
    border-color: rgba(51, 189, 156, 0.1);
}

.pricing-breakdown {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.pricing-note {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-highlight {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Task 13 Pricing Section Styles */
.pricing-results.task-pricing {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8fffe;
    border-radius: 12px;
    border: 1px solid #e0f4f0;
}

.pricing-results.task-pricing h4 {
    margin: 0 0 1rem 0;
    color: #2d5a4a;
    font-size: 1.1rem;
}

.pricing-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #33bd9c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Auto-mode overlay styles */
.auto-mode-overlay {
    position: relative;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #33bd9c;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(51, 189, 156, 0.15);
}

.auto-mode-content {
    text-align: center;
}

.auto-mode-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auto-mode-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #33bd9c 0%, #28a085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(51, 189, 156, 0.3);
}

.auto-mode-icon .material-icons {
    font-size: 32px;
    color: white;
}

.auto-mode-icon .material-icons.spinning {
    animation: spin 2s linear infinite;
}

.auto-mode-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #1f2937;
    font-weight: 600;
}

.auto-mode-progress {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-task {
    font-weight: 500;
    color: #374151;
}

.progress-percent {
    font-weight: 600;
    color: #33bd9c;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #33bd9c 0%, #28a085 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.current-task-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.current-task-name .material-icons {
    font-size: 1.2rem;
    color: #33bd9c;
}

.auto-mode-actions {
    margin-bottom: 1rem;
}

.auto-mode-hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Auto-mode waiting timer styles */
.auto-mode-waiting {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.waiting-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #33bd9c;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.timer-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.waiting-info {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-card {
        padding: 1.2rem;
    }
    
    .pricing-amount {
        font-size: 1.8rem;
    }
}

/* Estimation Tab specific styles */
.session-selector-compact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.session-selector-compact h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #374151;
}

.config-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-top: 1rem;
}

.config-group {
    display: flex;
    flex-direction: column;
}

.config-group label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.config-group small {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.config-group input,
.config-group select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.config-group input:focus,
.config-group select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
}

.session-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.analysis-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.analysis-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.analysis-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.outstanding-summary {
    margin: 2rem 0 1.5rem 0;
}

.outstanding-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

.outstanding-label {
    font-size: 1rem;
    color: #15803d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.outstanding-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #15803d;
    text-shadow: 0 1px 2px rgba(21, 128, 61, 0.1);
}

.pricing-actions {
    margin-top: 2rem;
    text-align: center;
}

.pricing-results {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-results h4 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

@media (max-width: 768px) {
    .config-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .session-analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .analysis-card {
        padding: 0.8rem;
    }
    
    .analysis-value {
        font-size: 1.2rem;
    }
    
    .outstanding-value {
        font-size: 1.8rem;
    }
    
    .pricing-results {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .session-analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .outstanding-card {
        max-width: none;
    }
}

 /* Improved File Upload Styles */
 .file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1.5rem;
    text-align: left;
}

.file-upload-label:hover {
    border-color: #33bd9c;
    background: #f0fdfa;
    transform: translateY(-1px);
}

.file-upload-label.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.upload-icon {
    flex-shrink: 0;
}

.upload-icon i {
    font-size: 2.5rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.file-upload-label:hover .upload-icon i {
    color: #33bd9c;
}

.file-upload-label.has-file .upload-icon i {
    color: #10b981;
}

.upload-content {
    flex: 1;
    text-align: left;
}

.upload-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.upload-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Override previous styles that might conflict */
.file-upload-label span {
    margin: 0;
    font-size: inherit;
}

.file-upload-label i {
    margin: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .file-upload-label {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        min-height: 140px;
        padding: 1rem;
    }

    .upload-content {
        text-align: center;
    }
}

  /* Enrichment Steps Styling */
  .enrichment-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.enrichment-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.enrichment-step.active,
.enrichment-step.completed {
    opacity: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.enrichment-step.active .step-number {
    background: #33bd9c;
    color: white;
}

.enrichment-step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.enrichment-step.active .step-label {
    color: #1f2937;
}

.enrichment-step.completed .step-label {
    color: #059669;
}

/* Enrichment Upload Container - Centered */
.enrichment-upload-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.enrichment-file-upload-area {
    width: 100%;
    max-width: 600px;
}

.enrichment-file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1.5rem;
    text-align: left;
    width: 100%;
}

.enrichment-file-upload-label:hover {
    border-color: #33bd9c;
    background: #f0fdfa;
    transform: translateY(-1px);
}

.enrichment-file-upload-label.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.enrichment-file-upload-label .upload-icon {
    flex-shrink: 0;
}

.enrichment-file-upload-label .upload-icon i {
    font-size: 2.5rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.enrichment-file-upload-label:hover .upload-icon i {
    color: #33bd9c;
}

.enrichment-file-upload-label.has-file .upload-icon i {
    color: #10b981;
}

.enrichment-file-upload-label .upload-content {
    flex: 1;
    text-align: left;
}

.enrichment-file-upload-label .upload-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.enrichment-file-upload-label .upload-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.enrichment-file-upload-label .file-upload-hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Responsive improvements for enrichment upload */
@media (max-width: 768px) {
    .enrichment-file-upload-label {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        min-height: 140px;
        padding: 1rem;
    }

    .enrichment-file-upload-label .upload-content {
        text-align: center;
    }
}

  /* Mapping Instructions */
  .mapping-instructions {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mapping-instructions i {
    color: #0ea5e9;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.mapping-instructions p {
    margin: 0;
    color: #0369a1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mapping Cards Container */
.mapping-cards-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .mapping-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Individual Mapping Card */
.mapping-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mapping-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mapping-card-header {
    background: #f9fafb;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mapping-card-header .column-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

/* Suggestion Badge */
.suggestion-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confidence-score {
    background: #f59e0b;
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.7rem;
}

/* High confidence suggestions */
.suggestion-badge.confidence-8,
.suggestion-badge.confidence-9,
.suggestion-badge.confidence-10 {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.suggestion-badge.confidence-8 .confidence-score,
.suggestion-badge.confidence-9 .confidence-score,
.suggestion-badge.confidence-10 .confidence-score {
    background: #10b981;
}

/* Medium confidence suggestions */
.suggestion-badge.confidence-6,
.suggestion-badge.confidence-7 {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.suggestion-badge.confidence-6 .confidence-score,
.suggestion-badge.confidence-7 .confidence-score {
    background: #f59e0b;
}

/* Low confidence suggestions */
.suggestion-badge.confidence-3,
.suggestion-badge.confidence-4,
.suggestion-badge.confidence-5 {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

.suggestion-badge.confidence-3 .confidence-score,
.suggestion-badge.confidence-4 .confidence-score,
.suggestion-badge.confidence-5 .confidence-score {
    background: #f87171;
}

.mapping-card-body {
    padding: 1rem;
}

/* Mapping Type Selection */
.mapping-type-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mapping-type-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mapping-type-label:hover {
    background: #f9fafb;
}

.mapping-type-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.mapping-type-label input[type="radio"]:checked + .radio-custom {
    border-color: #33bd9c;
    background: #33bd9c;
}

.mapping-type-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

/* Field Selection */
.field-selection {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-select-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.field-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #374151;
    transition: border-color 0.2s ease;
}

.field-select:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .mapping-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .suggestion-badge {
        align-self: flex-start;
    }

    .mapping-type-selection {
        gap: 0.5rem;
    }

    .mapping-type-label {
        padding: 0.4rem;
    }
}

  /* Selection Step Styles */
  .selection-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.summary-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.selection-controls {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.control-group {
    flex: 1;
}

.control-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.control-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.number-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
}

.control-hint {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Import Selection Cards */
.import-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.import-selection-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.import-selection-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.import-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.import-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-card-icon .material-icons {
    font-size: 22px;
}

.import-card-title h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.import-card-count {
    font-size: 13px;
    color: #10b981;
    font-weight: 500;
}

.import-card-input {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px;
}

.import-card-input label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

.import-card-input .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.import-card-input .form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.import-card-input .form-control::placeholder {
    color: #9ca3af;
}

.preview-tables {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.preview-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.preview-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-table table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.preview-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.preview-table tr:hover {
    background: #f8f9fa;
}

  /* Session Info Header Styles */
  .session-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.session-info-header {
    flex: 1;
}

.session-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-name .material-icons {
    font-size: 1.75rem;
    color: #f0fdf4;
    background: #43b398;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.session-buttons {
    display: flex;
    gap: 8px;
}

/* AI Generation Button Styles */
.generate-ai-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.generate-ai-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.generate-ai-btn:hover:before {
    left: 100%;
}

.generate-ai-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.generate-ai-btn .material-icons {
    font-size: 16px;
    margin-right: 4px;
}

/* AI Generation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.ai-generation-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #33bd9c;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.close-button .material-icons {
    font-size: 20px;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.character-count {
    text-align: right;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-control[type="number"] {
    min-height: 40px;
}

.form-help-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
}

.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.info-box .material-icons {
    color: #0284c7;
    font-size: 20px;
    margin-top: 2px;
}

.info-box p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: #0f172a;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
}

.info-box li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Spinning animation for loading states */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 1s linear infinite;
}

/* Mobile responsive styles for AI modal */
@media (max-width: 768px) {
    .ai-generation-modal {
        width: 95%;
        margin: 1rem;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
    
    .session-buttons {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .generate-ai-btn {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
    }
}

  /* Select All / Clear All toggle button */
  .industry-toggle-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
    border-bottom: 2px solid #a7f3d0;
    padding: 10px 12px;
    z-index: 10;
}

.industry-toggle-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #33bd9c 0%, #28957b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(51, 189, 156, 0.2);
}

.industry-toggle-btn:hover {
    background: linear-gradient(135deg, #28957b 0%, #1f7a6b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(51, 189, 156, 0.3);
}

.industry-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(51, 189, 156, 0.2);
}

/* Collapsed summary display - styles moved to industry selector section */

 /* Job Control Buttons */
 .job-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.job-controls .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.job-controls .btn-sm .material-icons {
    font-size: 1rem;
}

/* Job control buttons - bright green for Pause/Resume */
.job-controls .btn-outline,
.job-controls .btn.btn-outline,
.job-controls button.btn-outline,
.loading .job-controls .btn-outline {
    background-color: #10b981 !important;
    border: 2px solid #059669 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.job-controls .btn-outline:hover,
.job-controls .btn.btn-outline:hover,
.job-controls button.btn-outline:hover,
.loading .job-controls .btn-outline:hover {
    background-color: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.queue-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.queue-status-badge.paused {
    background-color: #fef3c7;
    color: #92400e;
}

.queue-status-badge.running {
    background-color: #d1fae5;
    color: #065f46;
}

/* ============================================
   TAG INPUT COMPONENT STYLES (Keywords)
   ============================================ */

.tag-input-container {
    position: relative;
}

.tag-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-input-wrapper {
    flex: 1;
    position: relative;
}

.tag-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tag-input:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-tag {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 6px 10px 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #065f46;
    font-weight: 500;
}

.selected-tag:hover {
    background: #d1fae5;
}

.remove-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #33bd9c;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.remove-tag:hover {
    background: #28957b;
}

.remove-tag .material-icons {
    font-size: 14px;
    line-height: 1;
    display: block;
}

.selected-tags-summary {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    color: #065f46;
    font-weight: 600;
}

/* ============================================
   PREVIEW SELECTION BUTTON STYLES
   ============================================ */

.preview-selection-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preview-selection-btn:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.preview-selection-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-selection-btn .material-icons {
    font-size: 18px;
    color: #33bd9c;
}

/* ============================================
   SELECTION MODAL STYLES
   ============================================ */

.selection-modal {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.selection-modal .modal-header {
    background: #33bd9c;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.selection-modal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.selection-modal .modal-header .selection-count {
    margin-left: auto;
    margin-right: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.selection-modal .modal-header .close-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s ease;
}

.selection-modal .modal-header .close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.selection-modal .modal-body {
    padding: 0;
    max-height: 50vh;
    overflow-y: auto;
}

/* Modal search input */
.modal-search-container {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.modal-search-input:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.selection-section {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.selection-section:last-child {
    border-bottom: none;
}

.selection-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.selection-section.not-selected-section {
    background: #f9fafb;
}

.selection-section.not-selected-section h4 {
    color: #6b7280;
}

.selection-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selection-items.empty {
    padding: 20px;
    justify-content: center;
}

.selection-items .empty-message {
    color: #6b7280;
    font-style: italic;
}

.selection-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    font-size: 13px;
    color: #065f46;
}

.selection-item.not-selected {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
}

.selection-item .item-content {
    flex: 1;
}

.selection-item .item-actions {
    display: flex;
    gap: 4px;
}

.selection-item .remove-btn,
.selection-item .add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.selection-item .remove-btn {
    background: #33bd9c;
    color: white;
}

.selection-item .remove-btn:hover {
    background: #28957b;
}

.selection-item .add-btn {
    background: #33bd9c;
    color: white;
}

.selection-item .add-btn:hover {
    background: #28957b;
}

.selection-item .remove-btn .material-icons,
.selection-item .add-btn .material-icons {
    font-size: 14px;
    line-height: 1;
    display: block;
}

.selection-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* ============================================
   LOCATION SELECTOR STYLES
   ============================================ */

.location-container {
    position: relative;
}

.location-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-search-container {
    flex: 1;
    position: relative;
}

.location-search {
    width: 100%;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.15s ease;
}

.location-option:hover {
    background: #ecfdf5;
}

.location-option.no-results {
    color: #6b7280;
    font-style: italic;
    cursor: default;
}

.location-option.no-results:hover {
    background: none;
}

.selected-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-location {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 6px 10px 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #065f46;
    font-weight: 500;
}

.selected-location:hover {
    background: #d1fae5;
}

.remove-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #33bd9c;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.remove-location:hover {
    background: #28957b;
}

.remove-location .material-icons {
    font-size: 14px;
    line-height: 1;
    display: block;
}

.selected-locations-summary {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    color: #065f46;
    font-weight: 600;
}

/* ============================================
   OVERPASS LOCATION SELECTOR STYLES
   ============================================ */

.overpass-location-selector .location-picker {
    margin-top: 8px;
}

.overpass-location-selector .location-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 6px 10px 6px 12px;
    font-size: 13px;
    color: #065f46;
    font-weight: 500;
    margin: 0 6px 6px 0;
}

.overpass-location-selector .location-chip:hover {
    background: #d1fae5;
}

.overpass-location-selector .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #33bd9c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.overpass-location-selector .chip-remove:hover {
    background: #28957b;
}

.overpass-location-selector .chip-remove .material-icons {
    font-size: 14px;
    line-height: 1;
}

.overpass-location-selector .country-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.overpass-location-selector .country-header .country-name {
    font-weight: 600;
    color: #065f46;
    font-size: 14px;
    flex: 1;
}

.overpass-location-selector .back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
    padding: 0;
    transition: all 0.15s ease;
}

.overpass-location-selector .back-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.overpass-location-selector .back-btn .material-icons {
    font-size: 18px;
}

.overpass-location-selector .select-country-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #065f46;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
}

.overpass-location-selector .select-country-btn:hover {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.overpass-location-selector .select-country-btn .material-icons {
    font-size: 16px;
}

.overpass-location-selector .location-option.disabled {
    opacity: 0.5;
    cursor: default;
}

.overpass-location-selector .location-option.disabled:hover {
    background: none;
}

.overpass-location-selector .location-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.overpass-location-selector .location-option .material-icons {
    font-size: 16px;
    color: #33bd9c;
}

.overpass-location-selector .location-loading,
.overpass-location-selector .location-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    font-size: 14px;
    color: #6b7280;
}

.overpass-location-selector .location-error {
    color: #dc2626;
}

.overpass-location-selector .spinning {
    animation: spin 1s linear infinite;
}

/* ============================================
   INDUSTRY SELECTOR STYLES
   ============================================ */

.industry-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.industry-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.industry-option:hover {
    background: #ecfdf5;
}

.industry-option.selected {
    background: #d1fae5;
}

/* Selected industries summary */
.selected-industries-summary {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    color: #065f46;
    font-weight: 600;
}

/* Clickable summary pills */
.selected-industries-summary.clickable,
.selected-tags-summary.clickable,
.selected-locations-summary.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.selected-industries-summary.clickable:hover,
.selected-tags-summary.clickable:hover,
.selected-locations-summary.clickable:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}

/* ============================================
   TASK CONFIGURATION SECTIONS
   Pre-configuration UI for Tasks 2-10
   ============================================ */

/* Task Config Section Container */
.task-config-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.task-config-section.section-skipped {
    opacity: 0.6;
    background-color: #f8fafc;
}

/* Disable All / Enable All Tasks Button Group */
.task-toggle-all-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.task-toggle-all-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 14px;
}

.task-toggle-all-section .btn .material-icons {
    font-size: 18px;
}

.task-config-section.section-skipped .task-section-content {
    display: none;
}

/* Section Header */
.task-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.section-skipped .task-section-header {
    border-bottom: none;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-group h4 {
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

.section-optional {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

/* Section Content */
.task-section-content {
    padding: 20px;
    background: white;
}

/* Skip Toggle Switch */
.skip-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.skip-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #10b981;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.skip-toggle input:checked + .toggle-slider {
    background-color: #9ca3af;
}

.skip-toggle input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    min-width: 55px;
}

/* Shared Field Badge - inline with label */
.shared-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: #3730a3;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================
   Confirmation Modal Styles
   ============================================ */
.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    cursor: pointer;
}

.confirmation-modal {
    cursor: default;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.confirmation-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.confirmation-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
}

.confirmation-modal-header h3 .material-icons {
    font-size: 24px;
}

.confirmation-modal-header .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.2s;
}

.confirmation-modal-header .close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.confirmation-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.confirmation-intro {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.confirmation-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.confirmation-section.highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

.confirmation-section.compact {
    padding: 12px 16px;
    margin-bottom: 12px;
}

.confirmation-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.confirmation-section h4 .material-icons {
    font-size: 18px;
    color: #6366f1;
}

.confirmation-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.detail-row.large {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    justify-content: center;
    padding: 8px 0;
}

.detail-label {
    color: #6b7280;
    min-width: 180px;
    flex-shrink: 0;
}

.detail-value {
    color: #1f2937;
    font-weight: 500;
    word-break: break-word;
}

/* Criteria text display in confirmation modal */
.detail-row.criteria-row {
    flex-direction: column;
    gap: 0;
}

.detail-value.criteria-text {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    font-weight: 400;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}

/* Task Pipeline Summary in Modal */
.task-pipeline-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pipeline-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.pipeline-task.enabled {
    border-color: #10b981;
    background: #ecfdf5;
}

.pipeline-task.enabled .task-status-icon .material-icons {
    color: #10b981;
}

.pipeline-task.skipped {
    border-color: #d1d5db;
    background: #f3f4f6;
    opacity: 0.7;
}

.pipeline-task.skipped .task-status-icon .material-icons {
    color: #9ca3af;
}

.pipeline-task .task-status-icon {
    display: flex;
    align-items: center;
}

.pipeline-task .task-status-icon .material-icons {
    font-size: 20px;
}

.pipeline-task .task-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.pipeline-task .task-status {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
}

.pipeline-task.enabled .task-status {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.confirmation-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.confirmation-modal-footer .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.confirmation-modal-footer .btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.confirmation-modal-footer .btn-secondary:hover {
    background: #f3f4f6;
}

.confirmation-modal-footer .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
}

.confirmation-modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Execution Mode Section */
.execution-mode-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
}

.execution-mode-options {
    display: flex;
    gap: 16px;
}

.execution-mode-option {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.execution-mode-option:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.execution-mode-option.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.execution-mode-option .mode-radio {
    position: relative;
    flex-shrink: 0;
}

.execution-mode-option .mode-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.execution-mode-option .radio-checkmark {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
}

.execution-mode-option.selected .radio-checkmark {
    border-color: #10b981;
    background: #10b981;
}

.execution-mode-option.selected .radio-checkmark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.execution-mode-option .mode-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    flex-shrink: 0;
}

.execution-mode-option .mode-icon .material-icons {
    font-size: 22px;
    color: #6b7280;
}

.execution-mode-option.selected .mode-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.execution-mode-option.selected .mode-icon .material-icons {
    color: white;
}

.execution-mode-option .mode-content {
    flex: 1;
}

.execution-mode-option .mode-title {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.execution-mode-option .mode-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Execution Mode Badge in Confirmation Modal */
.execution-mode-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
}

.execution-mode-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
}

.execution-mode-badge.automatic {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
}

.execution-mode-badge.manual {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
}

.execution-mode-badge .mode-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
}

.execution-mode-badge .mode-info {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .execution-mode-options {
        flex-direction: column;
    }
}

/* Field Help Text */
.field-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.character-counter.warning {
    color: #d97706;
}

.character-counter.error {
    color: #dc2626;
}

/* Criteria Textarea */
.criteria-textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.criteria-textarea:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.criteria-textarea::placeholder {
    color: #9ca3af;
}

/* Check Available Button and Section */
.check-available-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.check-available-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #33bd9c 0%, #28957b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.check-available-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 189, 156, 0.3);
}

.check-available-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.check-available-btn .material-icons {
    font-size: 18px;
}

/* Available Count Display */
.available-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-weight: 600;
    font-size: 14px;
}

.available-count .material-icons {
    font-size: 18px;
    color: #10b981;
}

/* Company Count Input */
.company-count-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.company-count-input label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
}

.company-count-input input {
    width: 120px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.company-count-input input:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.company-count-input .max-hint {
    font-size: 12px;
    color: #6b7280;
}

/* Phone Fetch Checkbox */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #33bd9c;
}

.checkbox-field-content {
    flex: 1;
}

.checkbox-field-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
}

.checkbox-field-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Shared Fields Note */
.shared-fields-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 13px;
    color: #0369a1;
    margin-bottom: 16px;
}

.shared-fields-note .material-icons {
    font-size: 18px;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 24px 0;
}

/* Responsive adjustments for task config sections */
@media (max-width: 768px) {
    .task-section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .section-toggle {
        align-self: flex-end;
    }

    .check-available-section {
        flex-direction: column;
    }

    .company-count-input {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-count-input input {
        width: 100%;
    }
}
/* ==========================================
   API Test Screen Styles
   ========================================== */

.api-test-screen {
    padding: 20px 32px;
}

/* Page Header */
.api-test-page-header {
    margin-bottom: 20px;
}

.api-test-page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.api-test-page-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Category Tabs */
.api-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover:not(.disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.category-tab.active {
    background: #33bd9c;
    border-color: #33bd9c;
    color: white;
}

.category-tab.active .material-icons {
    color: white;
}

.category-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-tab .material-icons {
    font-size: 18px;
    color: #6b7280;
}

.coming-soon-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-weight: 600;
}

/* Error Banner */
.api-test-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    margin-bottom: 20px;
}

.api-test-error .material-icons {
    font-size: 20px;
}

.api-test-error span {
    flex: 1;
}

.api-test-error button {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px;
}

/* Two-Column Layout: Endpoints sidebar + Main content stacked vertically */
.api-test-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.api-test-endpoints-panel {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

/* Main content area: Request form + Results stacked */
.api-test-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.api-test-request-panel {
    width: 100%;
}

.api-test-results-panel {
    width: 100%;
}

@media (max-width: 1024px) {
    .api-test-content {
        flex-direction: column;
    }
    .api-test-endpoints-panel {
        width: 100%;
        min-width: unset;
    }
}

/* Panel Base Styles */
.api-test-endpoints-panel,
.api-test-request-panel,
.api-test-results-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: fit-content;
    overflow: visible;
}

.api-test-request-panel {
    overflow: visible;
}

.panel-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.panel-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.panel-header p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Endpoint List */
.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.endpoint-card {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.endpoint-card:hover {
    border-color: #c7d2fe;
    background: #f8faff;
}

.endpoint-card.selected {
    border-color: #33bd9c;
    background: #f0fdf9;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.method-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.method-badge.post {
    background: #dcfce7;
    color: #166534;
}

.method-badge.get {
    background: #dbeafe;
    color: #1e40af;
}

.endpoint-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.endpoint-path {
    font-size: 11px;
    color: #6b7280;
    font-family: 'Monaco', 'Consolas', monospace;
    margin-bottom: 8px;
}

.endpoint-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.task-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 4px;
}

.no-endpoints {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.no-endpoints .material-icons {
    font-size: 36px;
    margin-bottom: 8px;
}

/* Request Panel */
.api-test-request-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.endpoint-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.endpoint-info code {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.payload-editor {
    margin-bottom: 16px;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-sm .material-icons {
    font-size: 16px;
}

.json-editor {
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    padding: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #1f2937;
    color: #e5e7eb;
    resize: vertical;
}

.json-editor:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.15);
}

.json-editor.error {
    border-color: #dc2626;
}

.editor-error {
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

/* Input Mode Toggle */
.input-mode-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.mode-btn:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.mode-btn.active {
    background: white;
    color: #33bd9c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mode-btn .material-icons {
    font-size: 18px;
}

/* API Test Form - Uses shared components styling */
.api-test-form {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.api-test-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.api-test-form .form-group {
    margin-bottom: 1rem;
    min-width: 0;
}

.api-test-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.api-test-form .form-control {
    width: 100%;
    box-sizing: border-box;
}

.request-input-area {
    margin-bottom: 16px;
    overflow-x: hidden;
    overflow-y: visible;
}

.panel-actions {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.panel-actions .btn {
    width: 100%;
}

/* Copy Button */
.copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.copy-btn.copied {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.copy-btn .material-icons {
    font-size: 16px;
}

/* Results Panel */
.api-test-results-panel {
    min-height: 300px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.results-content {
    min-width: 0;
    overflow: hidden;
}

.api-test-results-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-count {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
}

.empty-results,
.loading-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-results .material-icons,
.loading-results .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-results p,
.loading-results p {
    font-size: 13px;
    margin: 0;
    text-align: center;
}

/* Validation Summary */
.api-test-validation-summary {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.api-test-validation-summary.valid {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.api-test-validation-summary.invalid {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.validation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.api-test-validation-summary.valid .validation-header .material-icons {
    color: #22c55e;
}

.api-test-validation-summary.invalid .validation-header .material-icons {
    color: #f59e0b;
}

.validation-status {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    flex: 1;
}

.response-time {
    font-size: 12px;
    color: #6b7280;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.validation-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.validation-section h5 {
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #374151;
}

.field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.field-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.field-tag.missing {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.field-tag.enrichment {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.field-tag.new {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* JSON Sections */
.api-test-json-section {
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.json-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9fafb;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.json-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.json-display {
    margin: 0;
    padding: 12px;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 10px;
    font-family: 'Monaco', 'Consolas', monospace;
    line-height: 1.4;
    overflow-x: auto;
    max-height: 180px;
    overflow-y: auto;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Result Error */
.api-test-result-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.api-test-result-error .material-icons {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.api-test-result-error span {
    flex: 1;
}

/* Spinning animation */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   SSC Split Confirmation Modal
   ========================================== */

.ssc-split-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    cursor: pointer;
}

.ssc-split-modal {
    cursor: default;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ssc-split-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.ssc-split-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #065f46;
}

.ssc-split-modal-header h3 .material-icons {
    color: #10b981;
    font-size: 24px;
}

.ssc-split-modal-header .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.ssc-split-modal-header .close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #065f46;
}

.ssc-split-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.split-reasoning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    margin-bottom: 16px;
}

.split-reasoning .material-icons {
    color: #10b981;
    font-size: 20px;
    margin-top: 1px;
}

.split-reasoning span {
    color: #065f46;
    font-size: 13px;
    line-height: 1.5;
}

.split-warnings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.split-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.split-warning .material-icons {
    color: #d97706;
    font-size: 18px;
    margin-top: 1px;
}

.split-warning span {
    color: #92400e;
    font-size: 13px;
    line-height: 1.4;
}

.split-instructions {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.split-criteria-section {
    margin-bottom: 20px;
}

.split-criteria-section:last-child {
    margin-bottom: 0;
}

.split-criteria-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    margin-bottom: 8px;
}

.split-criteria-section label .material-icons {
    color: #6b7280;
    font-size: 18px;
}

.split-criteria-section label .required {
    color: #dc2626;
    font-size: 14px;
}

.split-criteria-section .criteria-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.split-criteria-section .criteria-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.split-criteria-section .character-counter {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.split-criteria-section .character-counter.warning {
    color: #f59e0b;
}

.ssc-split-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ssc-split-modal-footer .footer-right {
    display: flex;
    gap: 10px;
}

/* Unified SSC Section Styles */
.unified-ssc-section {
    margin-bottom: 24px;
}

.unified-ssc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.unified-ssc-header .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unified-ssc-header .section-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.unified-ssc-header .section-title .material-icons {
    color: #10b981;
    font-size: 20px;
}

.unified-ssc-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.unified-ssc-status.not-split {
    background: #fef3c7;
    color: #92400e;
}

.unified-ssc-status.split {
    background: #d1fae5;
    color: #065f46;
}

.unified-ssc-status .material-icons {
    font-size: 14px;
}

.unified-ssc-content {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.unified-ssc-content .field-help {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.unified-ssc-content .criteria-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.unified-ssc-content .criteria-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.unified-ssc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.unified-ssc-actions .btn-split {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.unified-ssc-actions .btn-split:hover:not(:disabled) {
    background: #059669;
}

.unified-ssc-actions .btn-split:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.unified-ssc-actions .btn-split .material-icons {
    font-size: 18px;
}

.unified-ssc-actions .split-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-size: 13px;
}

.unified-ssc-actions .split-info .material-icons {
    font-size: 16px;
}

.ssc-settings-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ssc-settings-row .form-group {
    flex: 1;
}

.ssc-settings-row .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.ssc-settings-row .form-group .form-control {
    width: 100%;
}

.ssc-tasks-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* ============================================
   Overpass API Test Styles
   ============================================ */

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.category-pill.active {
    background: #33bd9c;
    border-color: #33bd9c;
    color: #fff;
}

.category-pill .material-icons {
    font-size: 16px;
}

/* Tag Selection */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    min-height: 40px;
}

.tag-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    font-family: inherit;
    background: #33bd9c;
    color: #fff;
    border-radius: 16px;
    font-size: 12px;
}

.tag-chip .tag-category {
    font-weight: 500;
    opacity: 0.8;
}

.tag-chip .tag-label {
    font-weight: 400;
}

.tag-chip .tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    margin-left: 4px;
}

.tag-chip .tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tag-chip .tag-remove .material-icons {
    font-size: 14px;
}

/* Tag Search */
.tag-search-container {
    margin-bottom: 12px;
}

.tag-search {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.tag-search:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

/* Available Tags Grid */
.available-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.tag-option {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.tag-option:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.tag-option.selected,
.tag-option:disabled {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: default;
}

.more-tags-hint,
.no-tags-hint {
    font-size: 12px;
    color: #9ca3af;
    padding: 6px 0;
    font-style: italic;
}

/* ============================================
   Business Type Selector Styles
   ============================================ */
.business-type-selector {
    margin-bottom: 16px;
    font-family: inherit;
}

.business-type-selector *:not(.material-icons) {
    font-family: inherit;
}

.business-type-selector.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.business-type-selector .tag-search {
    position: relative;
    margin-bottom: 12px;
}

.business-type-selector .tag-search-input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}

.business-type-selector .tag-search-input:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.business-type-selector .clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
}

.business-type-selector .clear-search:hover {
    color: #6b7280;
}

.business-type-selector .available-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.business-type-selector .available-tags .tag-chip {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.business-type-selector .available-tags .tag-chip:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.business-type-selector .available-tags .tag-chip.selected,
.business-type-selector .available-tags .tag-chip:disabled {
    background: #33bd9c;
    border-color: #33bd9c;
    color: #fff;
}

.business-type-selector .available-tags .tag-chip .material-icons {
    font-size: 14px;
    margin-left: 4px;
}

.business-type-selector .no-tags {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    padding: 8px;
}

.business-type-selector .selected-tags-section {
    margin-top: 12px;
}

.business-type-selector .selected-tags-section .selected-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.business-type-selector .selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    background: #33bd9c;
    color: #fff;
    border-radius: 16px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.business-type-selector .selected-tag .remove-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    margin-left: 2px;
}

.business-type-selector .selected-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

.business-type-selector .selected-tag .remove-tag .material-icons {
    font-size: 12px;
}

/* ============================================
   Brick-and-Mortar Section Styles
   ============================================ */

/* B&M toggle - gray when disabled, green when enabled */
.bm-toggle .toggle-slider {
    background-color: #9ca3af !important;
}

.bm-toggle input:checked + .toggle-slider {
    background-color: #33bd9c !important;
}

.bm-toggle input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.bm-toggle .toggle-label {
    color: #6b7280;
}

.bm-toggle input:checked ~ .toggle-label {
    color: #33bd9c;
}

/* B&M section when enabled */
.bm-section.bm-enabled {
    border-color: #33bd9c;
}

/* Warning box styling */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
}

.warning-box .material-icons {
    color: #ca8a04;
    font-size: 20px;
    flex-shrink: 0;
}

.warning-box p {
    margin: 0;
    font-size: 13px;
    color: #854d0e;
    line-height: 1.5;
}

/* ============================================
   Company Quantity Styles
   ============================================ */
.quantity-group {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 16px;
}

.quantity-group:first-of-type {
    margin-top: 16px;
}

.quantity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quantity-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.quantity-available {
    font-size: 13px;
    color: #33bd9c;
    font-weight: 500;
}

.quantity-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-input-row input {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.quantity-input-row input:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.quantity-input-row .max-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* Radius Slider */
.radius-slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.radius-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    -webkit-appearance: none;
    appearance: none;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #33bd9c;
    cursor: pointer;
}

.radius-value {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 50px;
    text-align: right;
}

/* Combined Search Results Display */
.combined-results {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.combined-results .result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.combined-results .result-row .result-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.combined-results .result-row .result-label .material-icons {
    font-size: 18px;
}

.combined-results .result-row .result-value {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.combined-results .result-row.divider {
    border-top: 1px dashed #d1d5db;
    margin-top: 6px;
    padding-top: 10px;
}

.combined-results .result-row.total .result-label {
    font-weight: 600;
    color: #374151;
}

.combined-results .result-row.total .result-value {
    color: #33bd9c;
    font-size: 16px;
}

/* Forced Enabled Checkbox */
.checkbox-field.forced-enabled {
    opacity: 0.8;
}

.checkbox-field.forced-enabled input[type="checkbox"] {
    pointer-events: none;
}

.checkbox-field .forced-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #854d0e;
}

/* Label hint */
.label-hint {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

/* Input with suffix */
.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-suffix .form-control {
    flex: 1;
}

.input-suffix {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

/* Overpass Form Help Text */
.overpass-form .help-text {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Overpass Results */
.overpass-results {
    padding: 0;
}

.overpass-results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 14px;
    background: #f0fdf9;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.overpass-results-summary .summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #115e59;
}

.overpass-results-summary .summary-item .material-icons {
    font-size: 18px;
    color: #33bd9c;
}

.overpass-results-summary .summary-item.dedup {
    color: #9ca3af;
}

.overpass-results-summary .summary-item.dedup .material-icons {
    color: #9ca3af;
}

.overpass-results-summary .summary-item.timing {
    color: #6b7280;
}

.overpass-results-summary .summary-item.timing .material-icons {
    color: #9ca3af;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #f3f4f6;
}

.view-btn.active {
    background: #33bd9c;
    border-color: #33bd9c;
    color: #fff;
}

.view-btn .material-icons {
    font-size: 16px;
}

/* Overpass Results Table */
.overpass-table-container {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.overpass-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.overpass-results-table th {
    background: #f9fafb;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.overpass-results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.overpass-results-table tr:last-child td {
    border-bottom: none;
}

.overpass-results-table tr:hover td {
    background: #f9fafb;
}

.overpass-results-table .name-cell {
    font-weight: 500;
    color: #1f2937;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overpass-results-table .type-cell {
    white-space: nowrap;
}

.overpass-results-table .type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.overpass-results-table .address-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overpass-results-table .phone-cell a,
.overpass-results-table .email-cell a {
    color: #33bd9c;
    text-decoration: none;
}

.overpass-results-table .phone-cell a:hover,
.overpass-results-table .email-cell a:hover {
    text-decoration: underline;
}

.overpass-results-table .email-cell {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overpass-results-table .website-cell a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #4b5563;
    text-decoration: none;
}

.overpass-results-table .website-cell a:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.overpass-results-table .website-cell a .material-icons {
    font-size: 16px;
}

.overpass-results-table .no-data {
    color: #d1d5db;
    font-style: italic;
}

/* Overpass JSON View */
.overpass-json-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Empty Results Message */
.empty-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9ca3af;
    text-align: center;
}

.empty-results-message .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-results-message p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.empty-results-message .hint {
    font-size: 12px;
    color: #d1d5db;
}

/* Loading text for tags */
.loading-text {
    font-size: 13px;
    color: #9ca3af;
}

/* Preview Count Section */
.preview-count-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.preview-count-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
}

.preview-count-btn .material-icons {
    font-size: 18px;
}

.preview-count-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f0fdf9;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #115e59;
    font-size: 14px;
}

.preview-count-result .material-icons {
    font-size: 20px;
    color: #33bd9c;
}

/* ============================================
   Rate Limits Dashboard Styles
   ============================================ */

.api-test-dashboard-content {
    width: 100%;
    padding: 20px;
}

.rate-limits-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.rate-limits-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--surface-bg, #fff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.rate-limits-controls .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
}

.rate-limits-controls .last-updated {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
}

.rate-limits-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
}

.rate-limits-warnings {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 20px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    color: #92400e;
}

.rate-limits-warnings .material-icons {
    color: #f59e0b;
}

.rate-limits-warnings .warnings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rate-limits-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary, #6b7280);
}

.rate-limits-loading .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
}

.rate-limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.rate-limit-card {
    background: var(--surface-bg, #fff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    overflow: hidden;
}

.rate-limit-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.rate-limit-card.openai .card-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.rate-limit-card.apollo .card-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.rate-limit-card .card-header .material-icons {
    font-size: 24px;
    color: var(--primary-color, #33bd9c);
}

.rate-limit-card.openai .card-header .material-icons {
    color: #22c55e;
}

.rate-limit-card.apollo .card-header .material-icons {
    color: #3b82f6;
}

.rate-limit-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.rate-limit-card .card-header .model-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #22c55e;
}

.rate-limit-card .card-body {
    padding: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row.small {
    padding: 6px 0;
    font-size: 13px;
}

.stat-label {
    color: var(--text-secondary, #6b7280);
    font-size: 13px;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    font-size: 14px;
}

.stat-value .stat-breakdown {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary, #6b7280);
}

.progress-bar-container {
    margin: 16px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
}

.progress-bar {
    height: 8px;
    background: var(--border-color, #e5e7eb);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar.small {
    height: 4px;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* Apollo endpoint stats */
.apollo-endpoint-stat {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.apollo-endpoint-stat:last-child {
    border-bottom: none;
}

.apollo-endpoint-stat .endpoint-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1f2937);
    margin-bottom: 6px;
}

.apollo-endpoint-stat .endpoint-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
}

.apollo-endpoint-stat .percent {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .rate-limits-grid {
        grid-template-columns: 1fr;
    }

    .rate-limits-controls {
        flex-wrap: wrap;
    }

    .rate-limits-controls .last-updated {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ===== Calendly Scanner & Database Styles ===== */

/* Tab Navigation */
.calendly-tab-nav {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    gap: 0;
}

.calendly-tab-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Raleway', sans-serif;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.calendly-tab-btn:hover {
    color: #374151;
}

.calendly-tab-btn.active {
    color: #33bd9c;
    font-weight: 600;
    border-bottom-color: #33bd9c;
}

/* Scanner Card */
.calendly-scanner-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.calendly-scanner-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    font-family: 'Raleway', sans-serif;
}

.calendly-scanner-card .section-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

/* Session Info Bar */
.calendly-session-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(51, 189, 156, 0.08), rgba(51, 189, 156, 0.04));
    border: 1px solid rgba(51, 189, 156, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1f2937;
}

.calendly-session-info .session-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(51, 189, 156, 0.15);
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.calendly-session-info .session-name {
    font-weight: 600;
}

.calendly-session-info .session-count {
    color: #6b7280;
    font-size: 13px;
    margin-left: auto;
}

/* Progress Panel */
.calendly-progress-panel {
    padding: 20px;
    background: #f8fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.calendly-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendly-progress-header .phase-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.calendly-progress-header .pct-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.calendly-progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.calendly-progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    background: #3b82f6;
}

.calendly-progress-fill.running {
    background: #3b82f6;
}

.calendly-progress-fill.completed {
    background: #33bd9c;
}

.calendly-progress-fill.failed {
    background: #e74c3c;
}

.calendly-progress-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

.calendly-progress-stats .stat-value {
    font-weight: 600;
    color: #374151;
}

.calendly-progress-stats .stat-value.green {
    color: #33bd9c;
}

.calendly-progress-stats .stat-value.red {
    color: #e74c3c;
}

.calendly-progress-breakdown {
    display: flex;
    gap: 24px;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.calendly-progress-error {
    margin-top: 8px;
    font-size: 13px;
    color: #e74c3c;
}

/* Results Table */
.calendly-table-container {
    overflow-x: auto;
}

.calendly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.calendly-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    background: #fafbfc;
    font-family: 'Raleway', sans-serif;
}

.calendly-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
    vertical-align: top;
}

.calendly-table tbody tr:hover {
    background: #f9fafb;
}

.calendly-table .link-cell a {
    color: #33bd9c;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.calendly-table .link-cell a:hover {
    text-decoration: underline;
    color: #2aa384;
}

/* Scanner table (4 columns): Company, Link, AI Description, Status */
.calendly-table-scanner th:nth-child(1) { width: 18%; }
.calendly-table-scanner th:nth-child(2) { width: 14%; }
.calendly-table-scanner th:nth-child(3) { width: 55%; }
.calendly-table-scanner th:nth-child(4) { width: 13%; }

/* Database table (9 columns): Domain, Company, Industry, Location, Link, AI Desc, Created By, Modified By, Status */
.calendly-table-db th:nth-child(1) { width: 12%; }
.calendly-table-db th:nth-child(2) { width: 11%; }
.calendly-table-db th:nth-child(3) { width: 9%; }
.calendly-table-db th:nth-child(4) { width: 10%; }
.calendly-table-db th:nth-child(5) { width: 9%; }
.calendly-table-db th:nth-child(6) { width: 22%; }
.calendly-table-db th:nth-child(7) { width: 9%; }
.calendly-table-db th:nth-child(8) { width: 9%; }
.calendly-table-db th:nth-child(9) { width: 9%; }

.calendly-table .ai-desc-cell {
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.calendly-table .ai-desc-cell .generating {
    color: #9ca3af;
    font-style: italic;
}

.score-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.score-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    width: fit-content;
}

.score-reasoning {
    font-size: 12px;
    color: #6b7280;
}

.calendly-table .company-industry {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Status Select */
.calendly-status-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    font-family: 'Raleway', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%236b7280' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 20px;
}

.calendly-status-select.status-free {
    background-color: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

.calendly-status-select.status-booked {
    background-color: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.calendly-status-select.status-used {
    background-color: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.calendly-status-select.status-pipeline {
    background-color: #f3e8ff;
    color: #9333ea;
    border-color: #e9d5ff;
}

.calendly-status-select.status-invalid {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.calendly-status-select.status-recycled {
    background-color: #ecfeff;
    color: #0891b2;
    border-color: #cffafe;
}

/* Filter Bar */
.calendly-filters {
    padding: 20px;
    background: #f8fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.calendly-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.calendly-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendly-filter-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
}

.calendly-filter-group input,
.calendly-filter-group select {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Raleway', sans-serif;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.calendly-filter-group input:focus,
.calendly-filter-group select:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.12);
}

.calendly-filter-group input::placeholder {
    color: #9ca3af;
}

/* Toolbar */
.calendly-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.calendly-toolbar .count-label .count-value {
    font-weight: 600;
    color: #374151;
}

/* Pagination */
.calendly-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
}

.calendly-page-btn {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    transition: all 0.15s;
}

.calendly-page-btn:hover:not(:disabled):not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.calendly-page-btn.active {
    background: #33bd9c;
    border-color: #33bd9c;
    color: #fff;
    font-weight: 600;
}

.calendly-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendly-page-ellipsis {
    padding: 0 4px;
    color: #9ca3af;
    font-size: 13px;
}

/* Empty States */
.calendly-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}

.calendly-empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.calendly-empty-state .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.calendly-empty-state .empty-desc {
    font-size: 14px;
    color: #9ca3af;
}

/* Config section within scanner card */
.calendly-config {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 16px;
}

.calendly-config .config-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendly-config .config-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
}

.calendly-config .config-group select,
.calendly-config .config-group input {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Raleway', sans-serif;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.calendly-config .config-group select:focus,
.calendly-config .config-group input:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.12);
}

.calendly-config .checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
}

.calendly-config .checkbox-group label {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Search Another Session button area */
.calendly-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Sortable Table Headers */
.calendly-table th.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s, background 0.15s;
}

.calendly-table th.sortable-header:hover {
    color: #33bd9c;
    background: #f0fdf9;
}

.calendly-table th.sortable-header.active {
    color: #33bd9c;
}

/* Search Bar */
.calendly-search-bar {
    margin-bottom: 16px;
}

.calendly-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.calendly-search-input:focus {
    outline: none;
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.12);
}

.calendly-search-input::placeholder {
    color: #9ca3af;
}

/* User cells (Created By / Modified By) */
.calendly-table .user-cell {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enrich Button */
.btn-enrich {
    padding: 3px 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-enrich:hover:not(:disabled) {
    background: #f0fdf9;
    border-color: #33bd9c;
    color: #33bd9c;
}

.btn-enrich:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.enrich-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #d1d5db;
    border-top-color: #33bd9c;
    border-radius: 50%;
    animation: enrich-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes enrich-spin {
    to { transform: rotate(360deg); }
}

/* Book-a-call Modal */
.book-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modal-fade-in 0.15s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.book-modal-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    min-width: 380px;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.book-modal-card h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Raleway', sans-serif;
}

.book-modal-desc {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.book-modal-field {
    margin-bottom: 24px;
}

.book-modal-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
    margin-bottom: 6px;
}

.book-modal-field .calendly-status-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
}

.book-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Bulk Enrich Progress */
.bulk-enrich-progress {
    padding: 14px 18px;
    background: #f8fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
    font-size: 13px;
    color: #374151;
}

.bulk-enrich-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.bulk-enrich-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.bulk-enrich-stats .red {
    color: #e74c3c;
}

.bulk-enrich-dismiss {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.bulk-enrich-dismiss:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

/* Missing data indicator in Calendly DB table */
.missing-data {
    color: #d1d5db;
    font-style: italic;
    font-size: 12px;
}

/* Enrich complete checkmark */
.enrich-complete-icon {
    color: #10b981;
    font-size: 16px;
    display: flex;
    justify-content: center;
}

.enrich-error {
    color: #ef4444;
    font-size: 11px;
    text-align: center;
    margin-top: 2px;
}

/* Calendly Message Tab */
.calendly-message-container {
    margin-top: 16px;
}

.calendly-message-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    transition: border-color 0.2s;
    background: #fff;
}

.calendly-message-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calendly-message-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.calendly-message-btn-group {
    display: flex;
    gap: 8px;
}

.calendly-message-feedback {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    animation: cmsg-fade-in 0.2s ease;
}

@keyframes cmsg-fade-in {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

.calendly-message-unsaved {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #f59e0b;
    font-style: italic;
}

/* ============================================
   Chat Beta - AI Lead Generation Setup
   ============================================ */

/* Nav beta badge */
.nav-beta-badge {
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #33bd9c, #45d6b5);
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Main layout: chat left + criteria right */
.chat-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    overflow: hidden;
}

.chat-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
    min-width: 0;
}

.chat-criteria-panel {
    width: 320px;
    flex-shrink: 0;
    min-height: 0;
    overflow-y: auto;
    background: #f8fafc;
    padding: 20px;
}

/* Chat panel header */
.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.chat-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.chat-panel-title .material-icons {
    color: #33bd9c;
    font-size: 22px;
}

.chat-beta-badge {
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #33bd9c, #45d6b5);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-icon {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    transition: all 0.15s;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Chat messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Welcome screen */
.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    flex: 1;
}

.chat-welcome-icon {
    font-size: 48px;
    color: #33bd9c;
    margin-bottom: 16px;
}

.chat-welcome h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1e293b;
}

.chat-welcome p {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 14px;
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 500px;
    width: 100%;
}

.chat-suggestion {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: #475569;
    transition: all 0.15s;
    font-family: inherit;
}

.chat-suggestion:hover {
    background: #e8eef6;
    border-color: #33bd9c;
    color: #1e293b;
}

/* Message bubbles */
.chat-message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: chatFadeIn 0.2s ease-out;
}

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-assistant {
    align-self: flex-start;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message-user .chat-message-avatar {
    background: #33bd9c;
    color: #fff;
}

.chat-message-user .chat-message-avatar .material-icons {
    font-size: 18px;
}

.chat-message-assistant .chat-message-avatar {
    background: #e6f7f3;
    color: #33bd9c;
}

.chat-message-assistant .chat-message-avatar .material-icons {
    font-size: 18px;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-user .chat-message-bubble {
    background: #33bd9c;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message-assistant .chat-message-bubble {
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}

.chat-message-content {
    white-space: pre-wrap;
}

/* Assistant messages use HTML rendering via marked.js */
.chat-message-assistant .chat-message-content {
    white-space: normal;
    line-height: 1.5;
}

.chat-message-assistant .chat-message-content p {
    margin: 0 0 0.5em 0;
}

.chat-message-assistant .chat-message-content p:last-child {
    margin-bottom: 0;
}

.chat-message-assistant .chat-message-content ol,
.chat-message-assistant .chat-message-content ul {
    margin: 0.4em 0;
    padding-left: 1.4em;
}

.chat-message-assistant .chat-message-content li {
    margin-bottom: 0.3em;
}

.chat-message-assistant .chat-message-content h3 {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0.8em 0 0.3em 0;
}

.chat-message-assistant .chat-message-content h3:first-child {
    margin-top: 0;
}

/* Streaming cursor */
.chat-cursor {
    animation: chatBlink 0.8s step-end infinite;
    font-weight: 700;
    color: #33bd9c;
}

.chat-message-user .chat-cursor {
    color: #a3e4d3;
}

@keyframes chatBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Typing indicator */
.chat-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.chat-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: chatTypingBounce 1.2s ease-in-out infinite;
}

.chat-typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Loading */
.chat-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 12px;
    color: #64748b;
}

/* Error bar */
.chat-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
}

.chat-error button {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc2626;
    margin-left: auto;
    padding: 2px;
    display: flex;
}

/* Input area */
.chat-input-container {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px 8px 8px 16px;
    transition: border-color 0.15s;
}

.chat-input-wrapper:focus-within {
    border-color: #33bd9c;
    box-shadow: 0 0 0 3px rgba(51, 189, 156, 0.1);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 150px;
    min-height: 24px;
    line-height: 1.5;
    color: #1e293b;
}

.chat-input::placeholder {
    color: #94a3b8;
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #33bd9c;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.chat-send-btn:hover:not(:disabled) {
    background: #28957b;
}

.chat-send-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.chat-send-btn .material-icons {
    font-size: 18px;
}

/* Review & Confirm button */
.chat-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #33bd9c, #45d6b5);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.chat-review-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 189, 156, 0.4);
}

.chat-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-review-btn .material-icons {
    font-size: 18px;
}

/* Attach button */
.chat-attach-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.chat-attach-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #33bd9c;
    border-color: #33bd9c;
}

.chat-attach-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chat-attach-btn .material-icons {
    font-size: 18px;
}

/* File chips row */
.chat-file-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px;
}

.chat-file-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 8px 0 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 12px;
    color: #475569;
    overflow: hidden;
    max-width: 220px;
}

.chat-file-chip.uploading {
    border-color: #cbd5e1;
    color: #94a3b8;
}

.chat-file-chip.done {
    border-color: #86efac;
    background: #f0fdf4;
}

.chat-file-chip.error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.chat-file-chip-icon {
    font-size: 14px;
    flex-shrink: 0;
    color: #64748b;
}

.chat-file-chip-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.chat-file-chip-size {
    color: #94a3b8;
    font-size: 11px;
    flex-shrink: 0;
}

.chat-file-chip-status {
    font-size: 14px;
    flex-shrink: 0;
}

.chat-file-chip-status.done {
    color: #22c55e;
}

.chat-file-chip-status.error {
    color: #ef4444;
}

.chat-file-chip-status.uploading {
    color: #94a3b8;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chat-file-chip-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.15s;
}

.chat-file-chip-remove:hover:not(:disabled) {
    color: #ef4444;
}

.chat-file-chip-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chat-file-chip-remove .material-icons {
    font-size: 14px;
}

.chat-file-chip-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #33bd9c;
    transition: width 0.2s ease;
    border-radius: 0 0 16px 16px;
}

/* Drag-and-drop overlay */
.chat-drag-overlay {
    position: absolute;
    inset: 0;
    background: rgba(51, 189, 156, 0.12);
    border: 2px dashed #33bd9c;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    color: #1e9f85;
    font-size: 16px;
    font-weight: 600;
}

.chat-drag-overlay .material-icons {
    font-size: 40px;
}

/* ---- Criteria Preview Panel ---- */

.criteria-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Completeness bar */
.completeness-bar-container {
    margin-bottom: 4px;
}

.completeness-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.completeness-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.completeness-bar-pct {
    font-size: 13px;
    font-weight: 700;
    color: #33bd9c;
}

.completeness-bar-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.completeness-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.completeness-low { background: #f59e0b; }
.completeness-mid { background: #33bd9c; }
.completeness-high { background: #22c55e; }

/* Field list */
.criteria-fields-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.criteria-field {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.2s;
}

.criteria-field-filled {
    border-color: #a3e4d3;
    background: #f0fdf9;
}

.criteria-field-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.criteria-field-icon {
    font-size: 16px;
    color: #94a3b8;
}

.criteria-field-filled .criteria-field-icon {
    color: #33bd9c;
}

.criteria-field-label {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.criteria-field-status {
    font-size: 16px;
}

.criteria-field-filled .criteria-field-status {
    color: #22c55e;
}

.criteria-field:not(.criteria-field-filled) .criteria-field-status {
    color: #cbd5e1;
}

.criteria-field-value {
    margin-top: 4px;
    padding-left: 22px;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    word-break: break-word;
}

/* ---- Summary Modal ---- */

.summary-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: chatFadeIn 0.15s ease-out;
}

.summary-modal {
    background: #fff;
    border-radius: 16px;
    width: 560px;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.summary-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-modal-header .material-icons {
    color: #33bd9c;
}

.summary-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    display: flex;
    border-radius: 6px;
    transition: all 0.15s;
}

.summary-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.summary-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #33bd9c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    min-width: 120px;
    flex-shrink: 0;
}

.summary-row-value {
    font-size: 13px;
    color: #1e293b;
    word-break: break-word;
}

.summary-skipped-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.summary-skipped-tag {
    font-size: 12px;
    padding: 3px 10px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.summary-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

.summary-modal-footer .btn-secondary {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #475569;
    font-family: inherit;
    transition: all 0.15s;
}

.summary-modal-footer .btn-secondary:hover {
    background: #f8fafc;
}

.summary-modal-footer .btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #33bd9c, #45d6b5);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.summary-modal-footer .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 189, 156, 0.4);
}

.summary-modal-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.summary-modal-footer .btn-primary .material-icons {
    font-size: 18px;
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .chat-layout {
        flex-direction: column;
    }

    .chat-criteria-panel {
        width: 100%;
        max-height: 200px;
        border-top: 1px solid #e2e8f0;
        border-right: none;
    }

    .chat-panel {
        border-right: none;
    }

    .chat-message {
        max-width: 90%;
    }
}

/* Phase 2: Expandable job titles in CriteriaPreview */
.criteria-field-expand { font-size: 18px; margin-left: auto; cursor: pointer; }
.criteria-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 4px;
    color: var(--text-secondary, #666);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, background 0.2s;
}
.criteria-copy-btn:hover { color: var(--primary, #1976d2); background: var(--primary-light, #e3f2fd); }
.criteria-job-titles-list { display: flex; flex-wrap: wrap; gap: 4px; }
.criteria-job-title-tag {
    background: var(--primary-light, #e3f2fd);
    color: var(--primary, #1976d2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Auto-generated SSC styling */
.criteria-field-auto { opacity: 0.85; }
.criteria-auto-label { color: var(--text-secondary, #666); font-style: italic; font-size: 12px; }

/* SummaryCard job titles */
.summary-expand-btn {
    background: none; border: none; color: var(--primary, #1976d2);
    cursor: pointer; font-size: 12px; margin-left: 8px; text-decoration: underline;
}
.summary-job-titles { display: flex; flex-wrap: wrap; gap: 4px; }
.summary-job-title-tag {
    background: var(--primary-light, #e3f2fd);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}
.summary-job-title-more { color: var(--text-secondary, #666); font-style: italic; font-size: 12px; }

/* ===== Chat History Button ===== */
.btn-chat-history {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #33bd9c;
    color: #fff;
    border: 1px solid #33bd9c;
    border-radius: 8px;
    padding: 6px 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-chat-history:hover {
    background: #2aa88a;
    border-color: #2aa88a;
}
.btn-chat-history .material-icons {
    font-size: 20px;
    color: #fff;
}

/* ===== Chat History & Inline Rename ===== */
.inline-rename-input {
    flex: 1;
    border: 1px solid #33bd9c;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    outline: none;
    min-width: 0;
}
.inline-rename-input:focus {
    box-shadow: 0 0 0 2px rgba(51, 189, 156, 0.2);
}
.inline-rename-header {
    font-size: 18px;
    padding: 6px 10px;
    max-width: 400px;
}

/* Conversation status badges */
.status-conv-active {
    background: #ccfbf1;
    color: #0f766e;
}
.status-conv-confirmed {
    background: #d1fae5;
    color: #047857;
}
.status-conv-abandoned {
    background: #f3f4f6;
    color: #6b7280;
}

.conv-linked-session {
    color: #33bd9c;
    font-weight: 500;
    cursor: pointer;
}
.conv-linked-session:hover {
    text-decoration: underline;
}
