/* ===========================================
   RESET AND BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
}

/* ===========================================
   LAYOUT STRUCTURE
   =========================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 240px;
    transition: margin-left 0.3s ease;
    position: relative;
    background: transparent;
}

/* ===========================================
   LANGUAGE SWITCHER - ALWAYS VISIBLE
   =========================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-select {
    border: none;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.language-select:hover {
    color: #6a11cb;
    background: rgba(106, 17, 203, 0.08);
}

/* ===========================================
   SIDEBAR STYLES
   =========================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #8b5cf6 100%);
    color: white;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(106, 17, 203, 0.15);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.sidebar-brand {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 44px;
    height: 44px;
    margin-right: 14px;
    vertical-align: middle;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* Navigation Styles */
.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.nav-item {
    margin-bottom: 0.25rem;
    padding: 0 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 12px;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.nav-icon {
    margin-right: 0.875rem;
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
    text-align: center;
    opacity: 0.9;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.nav-text {
    flex: 1;
}

/* Logout button styling to match nav-link */
.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #bdc3c7;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.logout-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ecf0f1;
    border-left-color: #3498db;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu Styles */
.nav-submenu {
    list-style: none;
    background-color: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-item.open .nav-submenu {
    max-height: 200px;
}

.nav-sublink {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 4rem;
    color: #95a5a6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-sublink:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ecf0f1;
    text-decoration: none;
}

/* Logout Special Styling */
.nav-logout {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1rem 1.5rem 1rem;
}

.nav-logout .nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.nav-logout .nav-link:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #ffffff;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.nav-logout .nav-icon {
    color: rgba(255, 255, 255, 0.7);
}

/* Content Area Styles */
.content-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: none;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-subtitle {
    color: #718096;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
}

/* Card Styles */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 1.5rem;
    border: none;
}

.card-title {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

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

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.w-100 {
    width: 100%;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-danger {
    background-color: #ffeaea;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.alert-success {
    background-color: #eafaf1;
    color: #0f5132;
    border-left: 4px solid #27ae60;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #f39c12;
}

/* Login Page Specific Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
}

/* ===========================================
   DASHBOARD STYLES
   =========================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dashboard-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dashboard-description {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem; /* Reduced padding since button is smaller and more to the left */
    }
    
    .sidebar-toggle {
        display: block !important;
        z-index: 1001;
    }
    
    /* Adjust language switcher on mobile */
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 6px;
    }
    
    .language-select {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* Extra mobile breakpoint for very small screens */
@media (max-width: 900px) {
    .sidebar-toggle {
        display: block !important;
    }
    
    /* Adjust language switcher on mobile */
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 6px;
    }
    
    .language-select {
        font-size: 12px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Mobile Menu Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 0.5rem;
    z-index: 1001;
    background: linear-gradient(135deg, #6a11cb 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(106, 17, 203, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(106, 17, 203, 0.5);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}


/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.p-3 { padding: 1rem; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }

/* ===========================================
   CONTAINER 1 - UPLOAD & CONFIGURE STYLES
   =========================================== */

/* Container 1 - File Upload Styles */
.file-upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.file-upload-area:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.file-upload-area.dragover {
    border-color: #27ae60;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-upload-area:hover .file-upload-icon {
    color: white;
    transform: scale(1.1);
}

.file-upload-text {
    color: #7f8c8d;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.file-upload-area:hover .file-upload-text {
    color: white;
}

/* Container 1 - Help Button */
.help-button-container {
    position: relative;
    margin: 0;
}

.help-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.help-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Help Modal */
.help-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.help-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.help-modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-modal-header h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.help-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.help-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.help-modal-body {
    padding: 25px;
}

.format-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #495057;
}

.format-example {
    margin-bottom: 25px;
    text-align: center;
}

.format-example h5 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.format-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.column-requirements h5 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.requirements-list li {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.requirements-list li strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 120px;
}

.format-note {
    background: linear-gradient(135deg, #e7f3ff 0%, #d1ecf1 100%);
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.format-note p {
    margin: 0;
    color: #0c5460;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Empty Modal Content */
.empty-modal-content {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* AI Info Content */
.ai-info-content h5 {
    color: #2c3e50;
    margin: 20px 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.ai-features-list,
.ai-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.ai-features-list li,
.ai-advantages-list li {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-features-list li strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.ai-advantages-list li {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.ai-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.ai-note p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===========================================
   LOADING AND UTILITY STYLES
   =========================================== */

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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


.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 40px;
    text-align: center;
}

.feature-text h6 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.feature-text p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* AI Features */
.ai-features {
    margin: 1.5rem 0;
}

.ai-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ai-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-icon {
    font-size: 1.3rem;
    margin-right: 1rem;
    min-width: 35px;
    text-align: center;
}

.ai-text h6 {
    margin: 0 0 0.3rem 0;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.ai-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* ===========================================
   ENHANCED DASHBOARD CARDS
   =========================================== */
.dashboard-card {
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Section Dividers */
.mt-4 {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.mt-4 h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===========================================
   CONTAINER 3 - AI PROCESSING STYLES
   =========================================== */

/* Container 3 - AI Upload Area (inherits from .file-upload-area) */
#ai-upload-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#ai-upload-area:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

#ai-upload-area:hover .file-upload-icon {
    color: white;
    transform: scale(1.1);
}

#ai-upload-area:hover .file-upload-text {
    color: white;
}

/* Container 3 - AI Description */
.ai-description {
    margin-top: 15px;
    transition: all 0.3s ease;
}

.ai-description-part {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ai-description-part:last-child {
    margin-bottom: 0;
}

/* AI part - Purple/Pink theme */
.ai-description-part.ai-part {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 1px solid #ce93d8;
    color: #7b1fa2;
}

/* Trial Balance part - Blue theme */
.ai-description-part.tb-part {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    color: #1565c0;
}

/* Hide description when file is uploaded */
.ai-description.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Container 3 - Progress Steps */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.progress-step.completed {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.progress-step.error {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.step-icon {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.step-text {
    flex: 1;
    font-weight: 500;
}

.step-status {
    font-size: 0.85em;
    font-weight: bold;
}

.step-status.completed::after {
    content: "✓";
    color: #4caf50;
}

.step-status.error::after {
    content: "✗";
    color: #f44336;
}

/* Container 3 - Download Buttons */
.download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* Dashboard info cards */
.dashboard-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.info-card h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.info-card p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    color: #495057;
    position: relative;
    padding-left: 25px;
}

.info-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

@media (max-width: 768px) {
    .dashboard-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}