/* 
 * 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.5rem;
}

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

.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: 2rem;
    flex: 1;
    background-color: #f5f7fa; /* Match body background */
    width: 100%;
    max-width: 1200px; /* Limit content width but center it */
    margin: 0 auto; /* Center the content */
}

/* 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;
}

.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;
}

/* Company Pipeline Specific Styles */
.contacts-tab {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 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: 20px;
    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: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    animation: slideIn 0.3s ease-out;
}

.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: 20px;
}

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

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

.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: 300px 1fr 350px; /* Left: 300px, Center: flexible, Right: 350px */
    gap: 20px;
    height: calc(100vh - 120px);
    max-width: 1400px; /* Add a reasonable max-width constraint */
    width: 100%;
    margin: 0 auto; /* Center the three-panel layout */
}

.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); /* Use height instead of max-height for more predictable behavior */
    min-width: 350px; /* Ensure minimum width */
    display: flex;
    flex-direction: column;
}

.pipeline-main {
    min-width: 600px; /* Ensure minimum width for main content */
    max-width: none; /* Remove max-width constraint */
    overflow-y: auto;
    background-color: transparent; /* Let task cards handle their own background */
}

/* 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: 280px 1fr 320px;
        max-width: 1200px; /* Adjust max-width for smaller screens */
    }
    
    .pipeline-sidebar.right {
        min-width: 320px;
    }
}

@media (max-width: 1200px) {
    .pipeline-layout.three-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        max-width: 900px; /* Further constrain width on smaller screens */
        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: unset; /* Remove minimum width constraint on mobile */
        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 */

/* Processing Status Badge */
.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;
}

@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;
}

.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;
    min-height: 80px;
}

.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;
    }
}