body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    background-image: url('https://res.cloudinary.com/dafsv1e1n/image/upload/v1764057698/WhatsApp_Image_2025-11-25_at_09.59.32_w02qes.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

h1 {
    color: white;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-size: 2.5em;
    margin: 0;
    padding: 20px 0;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.section-title {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
    padding-bottom: 12px;
    font-weight: 600;
}

textarea, input, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

textarea:focus, input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 14px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

td {
    background: rgba(255, 255, 255, 0.8);
}

tr:hover td {
    background: rgba(102, 126, 234, 0.05);
}

.download-btn {
    background-color: #27ae60;
    width: auto;
    display: inline-block;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #219653;
}

.status {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

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

/* API Status Styles */
.api-status-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.api-status-section .section-title {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.test-api-btn {
    width: auto;
    padding: 10px 20px;
    background-color: white;
    color: #667eea;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-api-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.test-api-btn:active {
    transform: translateY(0);
}

 .download-history-modal {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.55);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 10000;
     padding: 20px;
 }

 .download-history-modal.open {
     display: flex;
 }

 .download-history-content {
     width: 100%;
     max-width: 900px;
     max-height: 85vh;
     background: rgba(255, 255, 255, 0.98);
     border-radius: 14px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
     border: 1px solid rgba(255, 255, 255, 0.35);
     overflow: hidden;
     display: flex;
     flex-direction: column;
 }

 .download-history-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
     padding: 14px 16px;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
 }

 .download-history-title {
     font-weight: 700;
     font-size: 1.05em;
 }

 .download-history-close {
     width: auto;
     padding: 8px 12px;
     margin: 0;
     background: rgba(255, 255, 255, 0.18);
     color: white;
     border: 1px solid rgba(255, 255, 255, 0.35);
     border-radius: 10px;
     cursor: pointer;
     box-shadow: none;
 }

 .download-history-close:hover {
     transform: none;
     background: rgba(255, 255, 255, 0.28);
 }

 .download-history-body {
     padding: 14px 16px;
     overflow: auto;
 }

 .download-history-item {
     padding: 14px;
     border-radius: 12px;
     border: 1px solid rgba(102, 126, 234, 0.18);
     background: rgba(255, 255, 255, 0.85);
     margin-bottom: 12px;
 }

 .download-history-row {
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     gap: 10px;
 }

 .download-history-actions {
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
     margin-top: 10px;
 }

.api-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-weight: bold;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #999;
    display: inline-block;
    transition: all 0.3s ease;
}

.status-indicator.active {
    background-color: #27ae60;
    box-shadow: 0 0 10px #27ae60;
    animation: pulse 2s infinite;
}

.status-indicator.inactive {
    background-color: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
}

.status-indicator.testing {
    background-color: #f39c12;
    animation: pulse 1s infinite;
}

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

#apiDetails {
    color: rgba(255,255,255,0.9);
}

/* Failure Report Styles */
.failure-report {
    margin-top: 30px;
    padding: 20px;
    background: #fff5f5;
    border: 2px solid #e74c3c;
    border-radius: 8px;
}

.failure-report h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.failure-report table {
    background: white;
}

.failure-report thead th {
    background-color: #e74c3c !important;
    color: white;
}

.failure-report tbody tr:hover {
    background-color: #ffe5e5;
}

.failure-report ul {
    background: white;
    padding: 15px 15px 15px 35px;
    border-radius: 4px;
    margin-top: 10px;
}

.failure-report ul li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ===== HEADER & HAMBURGER MENU ===== */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto 20px auto;
}

.header-container h1 {
    margin: 0;
    flex: 1;
}

.hamburger-menu {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar-nav.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    width: auto;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid #eee;
}

.nav-item {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
    border-radius: 0;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    padding-left: 34px;
    color: #667eea;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    font-weight: 600;
    border-left: 5px solid #764ba2;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-item.active:hover {
    padding-left: 24px;
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tab-content {
    display: none;
}

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

/* ===== GLOBAL AI MODEL TOGGLE ===== */
.ai-model-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 998;
}

.ai-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    font-weight: 500;
    color: #2c3e50;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.ai-option:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ai-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.ai-option input[type="radio"] {
    margin: 0;
    width: 10px;
    height: 10px;
    cursor: pointer;
}

.ai-option span {
    white-space: nowrap;
    font-size: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ai-model-toggle {
        top: 8px;
        left: 8px;
    }
    
    .ai-option {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .ai-option input[type="radio"] {
        width: 9px;
        height: 9px;
    }
}

/* ===== EMAIL EXTRACTOR STYLES ===== */
.extractor-upload-area {
    margin: 20px 0;
}

.upload-dropzone {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: #2980b9;
    background: #e8f4f8;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    margin-bottom: 20px;
    color: #555;
}

.upload-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    margin: 0;
}

.upload-btn:hover {
    background: #2980b9;
}

.extractor-status {
    background: #f0f8ff;
    border: 1px solid #3498db;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.status-message {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.3s ease;
}

.extractor-results {
    background: #f0fff0;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.results-summary h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #27ae60;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9em;
}

.results-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.download-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    margin: 0;
}

.download-btn:hover {
    background: #229954;
}

.preview-btn {
    background: #f39c12;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    margin: 0;
}

.preview-btn:hover {
    background: #e67e22;
}

.email-preview {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.email-preview h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.email-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
}

.email-item {
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-family: monospace;
    font-size: 0.9em;
}

.email-item:last-child {
    border-bottom: none;
}

.email-item:nth-child(even) {
    background: #f9f9f9;
}

.hidden {
    display: none !important;
}

/* ===== QUICK EMAIL GENERATOR STYLES ===== */
.quick-gen-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.generate-btn:active {
    transform: translateY(0);
}

.quick-gen-results {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    margin: 0;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.person-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #555;
}

.email-variations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-email-list .email-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    gap: 10px;
}

.quick-email-list .email-item:hover {
    background: #e8f4f8;
    border-color: #3498db;
    transform: translateX(5px);
}

.email-number {
    font-weight: bold;
    color: #3498db;
    min-width: 30px;
}

.email-address {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.05em;
    color: #2c3e50;
    font-weight: 500;
}

.email-format {
    color: #999;
    font-size: 0.85em;
    font-style: italic;
}

.copy-single-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    width: auto;
    margin: 0;
    transition: all 0.2s ease;
}

.copy-single-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.results-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

/* Copy notification animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive design for quick generator */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .copy-btn {
        width: 100%;
    }
}

/* ===== QUICK GENERATOR MODE SWITCHER ===== */
.quick-gen-mode-switch {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.mode-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    width: auto;
    margin: 0;
}

.mode-btn:hover {
    background: #e9ecef;
    color: #333;
}

.mode-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* ===== FILE UPLOAD MODE STYLES ===== */
.file-upload-instructions {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.file-upload-instructions h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.file-upload-instructions ul {
    margin: 10px 0;
    padding-left: 25px;
}

.file-upload-instructions li {
    margin: 8px 0;
    line-height: 1.6;
}

.file-upload-area {
    margin: 20px 0;
}

.upload-dropzone-quick {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-dropzone-quick:hover,
.upload-dropzone-quick.drag-over {
    border-color: #2980b9;
    background: #e8f4f8;
    transform: scale(1.02);
}

.quick-file-status {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.quick-file-status .status-message {
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
}

.quick-file-status .progress-info {
    color: #666;
    font-size: 0.9em;
}

/* ===== BATCH RESULTS STYLES ===== */
.person-batch-group {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.person-batch-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-size: 0.95em;
}

.person-batch-group .email-variations {
    padding: 15px;
    background: white;
}

.results-actions-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.results-actions-quick button {
    width: auto;
    margin: 0;
}

/* ===== INTERNATIONAL TAB STYLES ===== */
.api-config-section {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.api-config-section h4 {
    margin-top: 0;
    color: #2c3e50;
}

.api-key-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.api-key-input-group label {
    font-weight: bold;
    min-width: 150px;
}

.api-key-input-group .form-input {
    flex: 1;
    min-width: 250px;
}

.save-key-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    margin: 0;
}

.save-key-btn:hover {
    background: #229954;
}

.api-status-indicator {
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    margin: 10px 0;
}

.api-help-text {
    color: #666;
    margin-top: 10px;
}

.api-help-text a {
    color: #3498db;
    text-decoration: none;
}

.api-help-text a:hover {
    text-decoration: underline;
}

.file-upload-section {
    margin: 25px 0;
}

.file-upload-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.file-format-info {
    background: #fff9e6;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #f39c12;
}

.file-format-info ul {
    margin: 10px 0;
    padding-left: 25px;
}

.file-format-info li {
    margin: 8px 0;
}

.processing-status {
    background: #e8f4f8;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-header h4 {
    margin: 0;
    color: #2c3e50;
}

.status-stats {
    font-size: 1.2em;
    font-weight: bold;
    color: #3498db;
}

.current-company {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: bold;
    color: #2c3e50;
    border-left: 4px solid #3498db;
}

.status-log {
    background: white;
    padding: 15px;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 15px;
    font-family: monospace;
    font-size: 0.9em;
}

.results-section {
    margin-top: 30px;
}

.results-summary {
    background: #d4edda;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.results-summary h4 {
    margin-top: 0;
    color: #155724;
}

.results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.results-table {
    margin-top: 20px;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

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

.table-container th {
    background: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.table-container td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.table-container tbody tr:hover {
    background: #f8f9fa;
}

/* ============================================
   JOBS DASHBOARD STYLES
   ============================================ */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.job-card.running {
    border-color: #2196f3;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: #2196f3; }
    50% { border-color: #90caf9; }
}

.job-card.completed {
    border-color: #4caf50;
}

.job-card.failed {
    border-color: #f44336;
}

.job-card.paused {
    border-color: #ff9800;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.job-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.job-workflow {
    font-size: 12px;
    color: #666;
    text-transform: capitalize;
}

.job-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-progress-container {
    margin-bottom: 12px;
}

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

.job-progress-bar.large {
    height: 12px;
}

.job-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.job-progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.job-progress-text.large {
    font-size: 14px;
    margin-top: 8px;
}

.job-current-company {
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #1976d2;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.job-stat {
    font-size: 13px;
    font-weight: 500;
}

.job-stat.success {
    color: #4caf50;
}

.job-stat.failure {
    color: #f44336;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #999;
    margin-bottom: 15px;
}

.job-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.job-action-btn.start,
.job-action-btn.resume {
    background: #4caf50;
    color: white;
}

.job-action-btn.start:hover,
.job-action-btn.resume:hover {
    background: #43a047;
}

.job-action-btn.pause {
    background: #ff9800;
    color: white;
}

.job-action-btn.pause:hover {
    background: #f57c00;
}

.job-action-btn.download {
    background: #2196f3;
    color: white;
}

.job-action-btn.download:hover {
    background: #1976d2;
}

.job-action-btn.view {
    background: #9e9e9e;
    color: white;
}

.job-action-btn.view:hover {
    background: #757575;
}

.job-action-btn.close {
    background: #e0e0e0;
    color: #333;
}

.job-action-btn.close:hover {
    background: #bdbdbd;
}

.job-action-btn.large {
    padding: 12px 24px;
    font-size: 14px;
}

/* Job Modal */
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.job-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.job-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.job-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.job-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.job-modal-close:hover {
    color: #333;
}

.job-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.job-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f5f5f5;
}

.job-detail-section {
    margin-bottom: 25px;
}

.job-detail-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.job-status-large {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.job-progress-large {
    margin-top: 15px;
}

.job-results-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.job-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.job-results-table th {
    background: #667eea;
    color: white;
    padding: 10px 12px;
    text-align: left;
    position: sticky;
    top: 0;
}

.job-results-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.job-results-table tbody tr:hover {
    background: #f5f5f5;
}

.job-failures-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 10px;
    background: #ffebee;
}

.job-failure-item {
    padding: 8px;
    border-bottom: 1px solid #ffcdd2;
    font-size: 13px;
}

.job-failure-item:last-child {
    border-bottom: none;
}

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

.job-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.job-details-table td:first-child {
    font-weight: 600;
    color: #666;
    width: 120px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.dashboard-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-btn.primary {
    background: #667eea;
    color: white;
}

.dashboard-btn.primary:hover {
    background: #5a6fd6;
}

.dashboard-btn.secondary {
    background: #e0e0e0;
    color: #333;
}

.dashboard-btn.secondary:hover {
    background: #d0d0d0;
}
