/* ⚠️ DO NOT EDIT THIS FILE DIRECTLY 
   This file is auto-generated from tabs/_styling.py 
   Run 'python utils/update_css.py' to update.
*/

/* ===========================
           CSS VARIABLES & ROOT STYLES
           =========================== */
        
        :root {
            --color-primary: #1E3A5F;
            --color-primary-dark: #0F2440;
            --color-primary-light: #E8EEF7;
            --color-smoke-white: #F8F9FA;
            --color-success: #22A765;
            --color-danger: #E74856;
            --color-warning: #FFB900;
            --color-info: #5A7B8E;
            --color-neutral: #D1D5DB;
            --color-text: #1F2328;
            --color-text-secondary: #6B7280;
            --color-border: #E5E7EB;
            --color-background: #F9FAFB;
            --color-surface: #FFFFFF;
            
            /* ADDED: Semantic States (Audit Section 9) */
            --color-modified: #8B5CF6;    /* Purple - user has modified */
            --color-processing: #3B82F6;  /* Blue - computation running */
            --color-valid: #10B981;       /* Green - validation passed */
            --color-attention: #F59E0B;   /* Amber - needs attention */
            
            /* ADDED: Feedback States (Audit Section 9) */
            --color-step-complete: #10B981;
            --color-step-current: #1E3A5F;
            --color-step-pending: #D1D5DB;

            /* Spacing System - INCREASED for better proportions */
            --spacing-2xs: 2px;
            --spacing-1-5xs: 6px;
            --spacing-xs: 4px;
            --spacing-sm: 8px;
            --spacing-1-5sm: 12px;
            --spacing-md: 16px;
            --spacing-lg: 20px;
            --spacing-xl: 32px;
            --spacing-2xl: 48px;
            
            /* Component-Specific Spacing */
            --spacing-card-vertical: 24px;
            --spacing-section-vertical: 32px;
            --spacing-input-gap: 8px;
            --spacing-form-section: 20px;
            
            /* Border Radius */
            --radius-sm: 4px;
            --radius-md: 6px;
            --radius-lg: 12px;
            --radius-xl: 16px;
            
            /* Shadows - Softened */
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
            
            /* Transitions */
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            
            /* Typography */
            --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
            --font-family-mono: 'Courier New', monospace;
            
            /* ADDED: Typography Scale (Audit Section 9) */
            --text-display-size: 32px;
            --text-display-lh: 1.2;
            --text-heading-size: 24px;
            --text-heading-lh: 1.3;
            --text-subheading-size: 18px;
            --text-subheading-lh: 1.4;
            --text-body-size: 14px;
            --text-body-lh: 1.6;
            --text-caption-size: 12px;
            --text-caption-lh: 1.5;
            --text-code-size: 13px;
            --text-code-lh: 1.4;
        }
        
        * {
            box-sizing: border-box;
        }
        
        .report-footer {
            text-align: center;
            padding: var(--spacing-xl) 0;
            margin-top: var(--spacing-2xl);
            border-top: 1px solid #E5E7EB;
            color: #6B7280;
            font-size: 13px;
            background-color: #FFFFFF;
        }
        
        .report-footer a {
            color: #1E3A5F;
            text-decoration: none;
            font-weight: 600;
        }
        
        .report-footer a:hover {
            text-decoration: underline;
        }
        
        /* ===========================
           LAYOUT & CONTAINER
           =========================== */
        
        /* Main app container - centered and max-width on larger screens */
        .app-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 24px 32px 48px; /* Increased Padding */
        }
        
        /* Add top margin to app-container when it follows navbar */
        .navbar ~ .app-container {
            margin-top: 16px;
        }
        
        /* Responsive padding on mobile */
        @media (max-width: 768px) {
            .app-container {
                padding: 16px 20px 32px;
            }
        }
        
        /* ===========================
           GLOBAL STYLES
           =========================== */
        
        html {
            font-size: 14px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        body {
            font-family: var(--font-family-base);
            background-color: #F9FAFB;
            color: #1F2328;
            line-height: 1.6;
            margin: 0;
            padding: 0;
        }
        
        /* ===========================
           TYPOGRAPHY
           =========================== */
        
        h1 {
            font-size: 28px;
            font-weight: 700;
            margin: var(--spacing-lg) 0;
            color: #0F2440;
            letter-spacing: -0.5px;
        }
        
        h2 {
            font-size: 24px;
            font-weight: 600;
            margin: var(--spacing-lg) 0 var(--spacing-md) 0;
            color: #0F2440;
            letter-spacing: -0.3px;
        }
        
        h3 {
            font-size: 20px;
            font-weight: 600;
            margin: var(--spacing-md) 0;
            color: #1E3A5F;
        }
        
        h4 {
            font-size: 17px;
            font-weight: 600;
            margin: var(--spacing-md) 0;
            color: #1E3A5F;
        }
        
        h5 {
            font-size: 15px;
            font-weight: 600;
            margin: var(--spacing-sm) 0;
            color: #1F2328;
        }
        
        h6 {
            font-size: 13px;
            font-weight: 600;
            margin: var(--spacing-sm) 0;
            color: #6B7280;
        }
        
        p {
            margin: 0 0 var(--spacing-md) 0;
            font-size: 14px;
            line-height: 1.6;
        }
        
        a {
            color: #1E3A5F;
            text-decoration: none;
            transition: color var(--transition-fast);
            font-weight: 500;
        }
        
        a:hover {
            color: #0F2440;
            text-decoration: underline;
        }
        
        /* ===========================
           SHINY CARDS & CONTAINERS
           (Updated to standard Bootstrap .card classes)
           =========================== */
        
        .card {
            border: 1px solid #E5E7EB;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm); /* Softer shadow */
            transition: all var(--transition-normal);
            background-color: #FFFFFF;
            overflow: hidden;
            margin-bottom: 24px;  /* Increased vertical spacing */
        }
        
        .card:hover {
            box-shadow: var(--shadow-md);
            border-color: #D1D5DB;
        }
        
        /* Feature Cards (Home Page) */
        .feature-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg) !important;
            border-color: var(--color-primary) !important;
        }

        
        .card-header {
            background: #FAFAFA; /* Very light gray, effectively transparent appeal */
            border: none;
            border-bottom: 1px solid #E5E7EB;
            font-weight: 600;
            color: #0F2440; /* Dark text instead of white */
            padding: 16px 24px; /* Spacious header */
            font-size: 15px;
            text-transform: none;
            display: flex;
            align-items: center;
        }
        
        .card-body {
            padding: 24px 24px;  /* Increased padding for "uncluttered" look */
            line-height: 1.6;
        }
        
        .card-footer {
            background-color: #FAFAFA;
            border-top: 1px solid #E5E7EB;
            padding: 16px 24px;
        }
        
        /* ===========================
           BUTTONS - Flat & Modern
           =========================== */
        
        .btn {
            border: 1px solid transparent;
            border-radius: var(--radius-md);
            font-weight: 500;
            font-size: 14px;
            padding: 8px 16px;
            transition: all var(--transition-fast);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-sm);
            white-space: nowrap;
            user-select: none;
            box-shadow: none; /* Removed heavy shadows */
        }
        
        .btn:focus {
            outline: 2px solid #1E3A5F;
            outline-offset: 2px;
        }
        
        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* ADDED: Button Size Variants (Audit Section 9) */
        .btn-sm {
            padding: 4px 12px;
            font-size: 13px;
        }
        
        .btn-lg {
            padding: 12px 24px;
            font-size: 16px;
        }
        
        /* ADDED: Button State Variants (Audit Section 9) */
        .btn-loading {
            position: relative;
            color: transparent !important;
            pointer-events: none;
        }
        
        .btn-loading::after {
            content: "";
            position: absolute;
            width: 16px;
            height: 16px;
            top: 50%;
            left: 50%;
            margin-top: -8px;
            margin-left: -8px;
            border: 2px solid rgba(255,255,255,0.5);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
        }
        
        .btn-outline {
            background-color: transparent;
            border: 1px solid #E5E7EB;
            color: #1F2328;
        }
        
        .btn-outline:hover {
            border-color: #1E3A5F;
            color: #1E3A5F;
            background-color: #F8F9FA;
        }
        
        /* Primary Buttons - Flat */
        .btn-primary {
            background-color: #1E3A5F;
            color: white;
            border-color: #1E3A5F;
        }
        
        .btn-primary:hover:not(:disabled) {
            background-color: #0F2440;
            border-color: #0F2440;
            transform: translateY(-1px);
        }
        
        .btn-primary:active:not(:disabled) {
            transform: translateY(0);
        }
        
        /* Secondary Buttons - Outline style mostly */
        .btn-secondary {
            background-color: white;
            color: #1F2328;
            border-color: #E5E7EB;
        }
        
        .btn-secondary:hover:not(:disabled) {
            background-color: #F8F9FA;
            border-color: #D1D5DB;
            color: #1E3A5F;
        }
        
        /* Success Buttons */
        .btn-success {
            background-color: #22A765;
            color: white;
            border-color: #22A765;
        }
        
        .btn-success:hover:not(:disabled) {
            filter: brightness(0.9);
            transform: translateY(-1px);
        }
        
        /* Danger Buttons */
        .btn-danger {
            background-color: #E74856;
            color: white;
            border-color: #E74856;
        }
        
        .btn-danger:hover:not(:disabled) {
            filter: brightness(0.9);
            transform: translateY(-1px);
        }
        
        /* Warning Buttons */
        .btn-warning {
            background-color: #FFB900;
            color: #000;
            border-color: #FFB900;
        }
        
        /* Outline Buttons */
        .btn-outline-primary {
            border: 1px solid #1E3A5F;
            color: #1E3A5F;
            background-color: transparent;
        }
        
        .btn-outline-primary:hover:not(:disabled) {
            background-color: #E8EEF7;
            color: #0F2440;
        }
        
        /* ===========================
           FORM INPUTS - More Spacious
           =========================== */
        
        .form-control {
            border: 1px solid #E5E7EB;
            border-radius: var(--radius-md);
            padding: 10px 14px; /* Larger touch area */
            font-size: 14px;
            font-family: var(--font-family-base);
            background-color: #FFFFFF;
            color: #1F2328;
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
            line-height: 1.5;
        }
        
        .form-control:focus {
            border-color: #1E3A5F;
            background-color: #FFFFFF;
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1); /* Soft focus ring */
            outline: none;
        }
        
        .form-control::placeholder {
            color: #6B7280;
            opacity: 0.7;
        }
        
        .form-control:disabled {
            background-color: #F8F9FA;
            border-color: #E5E7EB;
            color: #6B7280;
            cursor: not-allowed;
        }
        
        /* Select/Dropdown */
        .form-select {
            border: 1px solid #E5E7EB;
            border-radius: var(--radius-md);
            padding: 10px 36px 10px 14px;
            font-size: 14px;
            background-color: #FFFFFF;
            color: #1F2328;
            transition: all var(--transition-fast);
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 16px;
        }
        
        .form-select:focus {
            border-color: #1E3A5F;
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
            outline: none;
        }
        
        /* Form Label */
        .form-label {
            font-weight: 500;
            font-size: 14px;
            color: #1F2328;
            margin-bottom: 6px;
            display: block;
        }
        
        .form-label.required::after {
            content: "";
            display: none;
        }
        
        /* Form Group - Better Separation */
        .form-group {
            margin-bottom: 24px;
        }
        
        /* Textarea */
        textarea.form-control {
            resize: vertical;
            min-height: 100px;
            font-family: var(--font-family-base);
        }
        
        /* ===========================
           NAVIGATION & NAVBAR
           =========================== */
        
        .navbar {
            background-color: #FFFFFF !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Very subtle shadow */
            border-bottom: 1px solid #E5E7EB;
            padding: 12px 24px;
        }
        
        .navbar-brand {
            color: #0F2440 !important;
            font-weight: 700;
            font-size: 19px;
            letter-spacing: -0.5px;
        }
        
        /* Navbar Text & Links */
        .navbar .nav-link {
            color: #6B7280 !important;
            font-weight: 500;
            font-size: 14px;
            padding: 8px 16px !important;
            margin: 0 4px;
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
        }
        
        .navbar .nav-link:hover {
            color: #1E3A5F !important;
            background-color: #F8F9FA;
        }
        
        .navbar .nav-link.active {
            color: #0F2440 !important;
            background-color: #E8EEF7;
            font-weight: 600;
        }
        
        /* Hide Home tab from navbar links (accessible via title) */
        .navbar-nav .nav-link[data-value="home"] {
            display: none !important;
        }
        
        /* Dropdown Menu (nav_menu) Styles */
        .navbar .dropdown-toggle {
            color: #6B7280 !important;
            font-weight: 500;
            font-size: 14px;
            padding: 8px 16px !important;
            margin: 0 4px;
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
            background: transparent;
            border: none;
        }
        
        .navbar .dropdown-toggle:hover,
        .navbar .dropdown-toggle:focus {
            color: #1E3A5F !important;
            background-color: #F8F9FA;
        }
        
        .navbar .dropdown-toggle::after {
            margin-left: 6px;
            vertical-align: middle;
        }
        
        .navbar .dropdown-menu {
            background-color: #FFFFFF;
            border: 1px solid #E5E7EB;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            padding: 8px 0;
            min-width: 200px;
            margin-top: 4px;
        }
        
        .navbar .dropdown-item {
            color: #1F2328;
            font-size: 14px;
            font-weight: 500;
            padding: 10px 20px;
            transition: all var(--transition-fast);
        }
        
        .navbar .dropdown-item:hover {
            background-color: #F8F9FA;
            color: #1E3A5F;
        }
        
        .navbar .dropdown-item.active,
        .navbar .dropdown-item:active {
            background-color: #E8EEF7;
            color: #0F2440;
        }
        
        /* ===========================
           TABS
           =========================== */
        
        .nav-tabs {
            border-bottom: 1px solid #E5E7EB;
            margin-bottom: 24px;
        }
        
        .nav-tabs .nav-link {
            color: #6B7280;
            border: none;
            border-bottom: 2px solid transparent;
            font-weight: 600;
            padding: 12px 20px;
            margin-bottom: -1px;
            transition: all var(--transition-fast);
            font-size: 14px;
        }
        
        .nav-tabs .nav-link:hover {
            border-bottom-color: #D1D5DB;
            color: #1E3A5F;
            background-color: transparent;
        }
        
        .nav-tabs .nav-link.active {
            color: #1E3A5F;
            background-color: transparent;
            border-bottom-color: #1E3A5F;
        }
        
        /* Subtabs - Pills style often mostly used inside spacing */
        .nav-item .nav-link[role="tab"]:not(.active):hover {
            color: #1E3A5F !important;
            background-color: #F8F9FA;
        }
        
        /* ===========================
           ALERTS & NOTIFICATIONS
           =========================== */
        
        .alert {
            border-radius: var(--radius-lg);
            border: 1px solid;
            padding: 16px 20px;
            margin-bottom: 24px;
            display: flex;
            align-items: flex-start;
            gap: 16px;
            box-shadow: var(--shadow-sm);
        }
        
        .alert-success {
            background-color: #ECFDF5;
            border-color: #A7F3D0;
            color: #065F46;
        }
        
        .alert-danger {
            background-color: #FEF2F2;
            border-color: #FECACA;
            color: #991B1B;
        }
        
        .alert-warning {
            background-color: #FFFBEB;
            border-color: #FDE68A;
            color: #92400E;
        }
        
        .alert-info {
            background-color: #EFF6FF;
            border-color: #BFDBFE;
            color: #1E40AF;
        }
        
        /* ===========================
           TABLES
           =========================== */
        
        .table {
            font-size: 13px;
            border-collapse: separate;
            border-spacing: 0;
            width: 100%;
            margin-bottom: 24px;
            border: 1px solid #E5E7EB;
            border-radius: var(--radius-lg);
            overflow: hidden; /* For border radius */
        }
        
        .table thead th {
            background-color: #F8F9FA; /* Light Gray Header */
            color: #1F2328;
            border-bottom: 1px solid #E5E7EB;
            font-weight: 600;
            padding: 12px 16px;
            text-align: left;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 0.05em;
        }
        
        .table tbody td {
            border-bottom: 1px solid #E5E7EB;
            padding: 12px 16px;
            vertical-align: middle;
            color: #1F2328;
        }
        
        .table tbody tr:last-child td {
            border-bottom: none;
        }
        
        .table tbody tr:hover {
            background-color: #F8F9FA;
        }
        
        .sig-p {
            color: #fff;
            background-color: #E74856;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 600;
        }

        .shiny-table th, table.dataframe th {
            background-color: #FAFAFA !important;
            color: #1F2328 !important;
            font-weight: 600;
            border-bottom: 1px solid #E5E7EB !important;
        }
        
        /* Table Responsiveness */
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            border-radius: var(--radius-lg);
            border: 1px solid #E5E7EB;
        }

        .table-responsive .table {
            border: none;
            border-radius: 0;
            margin-bottom: 0;
        }
        
        /* Error Cell Highlighting */
        .cell-error {
            background-color: #FEF2F2 !important;
            color: #E74856 !important;
            font-weight: 600 !important;
        }
        
        /* ===========================
           BADGES & STATUS INDICATORS
           =========================== */
        
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            border-radius: 12px;
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }
        
        /* Status Badge (Custom) */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px; /* Pill shape */
            font-weight: 600;
            font-size: 12px;
            border: 1px solid;
        }
        
        .status-badge.matched {
            background-color: #ECFDF5;
            color: #065F46;
            border-color: #A7F3D0;
        }
        
        .status-badge.unmatched {
            background-color: #FEF2F2;
            color: #991B1B;
            border-color: #FECACA;
        }
        
        .status-badge.warning {
            background-color: #FFFBEB;
            color: #92400E;
            border-color: #FDE68A;
        }

        /* ===========================
           FEEDBACK & LOADING STATES
           =========================== */
        
        /* Enhanced Loading State */
        .loading-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px;
            color: #6B7280;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: var(--radius-lg);
            width: 100%;
            height: 100%;
            min-height: 200px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #F8F9FA;
            border-top: 3px solid #1E3A5F;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 16px;
        }

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

        /* Placeholder State */
        .placeholder-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px;
            color: #6B7280;
            background-color: #F8F9FA;
            border: 2px dashed #E5E7EB;
            border-radius: var(--radius-lg);
            text-align: center;
            min-height: 200px;
        }
        
        .placeholder-icon {
            font-size: 32px;
            margin-bottom: 12px;
            opacity: 0.5;
        }

        /* Validation & Error Messages */
        .validation-error {
            color: #E74856;
            font-size: 13px;
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .error-alert-card {
            border-left: 4px solid #E74856;
            background-color: #FEF2F2;
        }
        
        /* ===========================
           ACCESSIBILITY
           =========================== */

        /* Skip Navigation Links */
        .skip-links {
            position: absolute;
            top: -9999px;
            left: -9999px;
            z-index: 9999;
        }

        .skip-link:focus {
            position: fixed;
            top: 0;
            left: 0;
            width: auto;
            height: auto;
            background: #1E3A5F;
            color: white;
            padding: 12px 20px;
            text-decoration: none;
            font-weight: 600;
            border-radius: 0 0 var(--radius-md) 0;
            outline: 3px solid #FFB900;
            box-shadow: var(--shadow-xl);
        }

        /* Enhanced Focus Indicators */
        *:focus-visible {
            outline: 3px solid #1E3A5F;
            outline-offset: 2px;
            border-radius: 2px;
        }

        /* Screen Reader Only */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* ===========================
           UTILITY CLASSES
           =========================== */
        
        .text-primary {
            color: #1E3A5F !important;
        }
        
        .border-primary {
             border: 1px solid #1E3A5F !important;
             border-radius: var(--radius-md);
        }
        
        .border-top {
            border-top: 2px solid #E5E7EB !important;
            padding-top: var(--spacing-lg);
            margin-top: var(--spacing-lg);
        }
        
        .divider {
            height: 1px;
            background-color: #E5E7EB;
            margin: var(--spacing-lg) 0;
        }
        
        /* ===========================
           VIF SPECIFIC STYLES
           =========================== */
        
        .vif-container {
            margin-top: var(--spacing-lg);
            padding: var(--spacing-md);
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            max-width: 500px;
        }
        
        .vif-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--color-primary-dark);
            margin-bottom: var(--spacing-sm);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .vif-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        
        .vif-table th {
            text-align: left;
            padding: var(--spacing-sm);
            background-color: var(--color-smoke-white);
            color: var(--color-text-secondary);
            font-weight: 600;
            border-bottom: 2px solid var(--color-border);
        }
        
        .vif-table td {
            padding: var(--spacing-sm);
            border-bottom: 1px solid var(--color-border);
        }
        
        .vif-value {
            font-family: var(--font-family-mono);
            font-weight: 600;
        }
        
        .vif-warning {
            color: var(--color-danger);
            font-weight: 700;
        }
        
        .vif-caution {
            color: var(--color-warning);
        }
        
        .vif-footer {
            margin-top: var(--spacing-sm);
            font-size: 11px;
            color: var(--color-text-secondary);
            font-style: italic;
        }
        .mt-1 { margin-top: var(--spacing-xs); }
        .mt-2 { margin-top: var(--spacing-sm); }
        .mt-3 { margin-top: var(--spacing-md); }
        .mt-4 { margin-top: var(--spacing-lg); }
        .mt-5 { margin-top: var(--spacing-xl); }
        
        .mb-1 { margin-bottom: var(--spacing-xs); }
        .mb-2 { margin-bottom: var(--spacing-sm); }
        .mb-3 { margin-bottom: var(--spacing-md); }
        .mb-4 { margin-bottom: var(--spacing-lg); }
        .mb-5 { margin-bottom: var(--spacing-xl); }
        
        .p-2 { padding: var(--spacing-sm); }
        .p-3 { padding: var(--spacing-md); }
        .p-4 { padding: var(--spacing-lg); }
        .p-5 { padding: var(--spacing-xl); }
        
        /* ===========================
           CUSTOM COMPONENTS
           =========================== */
        
        .stat-box {
            background-color: #FFFFFF;
            border: 1px solid #E5E7EB;
            border-radius: var(--radius-lg);
            padding: var(--spacing-lg);
            text-align: center;
            box-shadow: var(--shadow-sm);
            transition: all var(--transition-normal);
        }
        
        .stat-box:hover {
            box-shadow: var(--shadow-md);
            border-color: #E8EEF7;
        }
        
        .stat-box-label {
            font-size: 12px;
            font-weight: 600;
            color: #6B7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: var(--spacing-sm);
        }
        
        .stat-box-value {
            font-size: 28px;
            font-weight: 700;
            color: #0F2440;
            line-height: 1;
        }
        
        .stat-box-subtext {
            font-size: 12px;
            color: #6B7280;
            margin-top: var(--spacing-sm);
        }
        
        /* Info Box / Panel */
        .info-panel {
            background-color: #E8EEF7;
            border-left: 4px solid #1E3A5F;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            padding: var(--spacing-lg);
            margin-bottom: var(--spacing-lg);
        }
        
        .info-panel.success {
            background-color: rgba(34, 167, 101, 0.1);
            border-left-color: #22A765;
        }
        
        .info-panel.danger {
            background-color: rgba(231, 72, 86, 0.1);
            border-left-color: #E74856;
        }
        
        .info-panel.warning {
            background-color: rgba(255, 185, 0, 0.1);
            border-left-color: #FFB900;
        }
        
        /* Data Grid Container */
        .data-grid {
            overflow-x: auto;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
        }
        
        /* ===========================
           MISSING DATA SECTION
           =========================== */
        
        .missing-data-section {
            background-color: #f0f7ff;
            border-left: 4px solid #1E3A5F;
            padding: var(--spacing-lg);
            margin: var(--spacing-xl) 0;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
        }
        
        .missing-data-section h4 {
            color: #0F2440;
            margin-top: 0;
            margin-bottom: var(--spacing-md);
        }
        
        .missing-data-section h5 {
            color: #1F2328;
            margin-top: var(--spacing-lg);
            margin-bottom: var(--spacing-sm);
        }
        
        .missing-table {
            width: 100%;
            border-collapse: collapse;
            margin: var(--spacing-md) 0;
            font-size: 13px;
        }
        
        .missing-table th,
        .missing-table td {
            padding: var(--spacing-sm) var(--spacing-md);
            text-align: left;
            border-bottom: 1px solid #E5E7EB;
        }
        
        .missing-table th {
            background-color: #e8f1ff;
            font-weight: 600;
            color: #0F2440;
        }
        
        .missing-table tr.high-missing {
            background-color: #fff3cd;
        }
        
        .missing-table tr.high-missing td {
            color: #856404;
            font-weight: 500;
        }
        
        .warning-box {
            background-color: #fff3cd;
            border: 1px solid #FFB900;
            padding: var(--spacing-md);
            border-radius: var(--radius-md);
            margin-top: var(--spacing-md);
        }
        
        .warning-box strong {
            color: #856404;
        }
        
        .warning-box ul {
            margin: var(--spacing-sm) 0 0 var(--spacing-lg);
            padding: 0;
        }
        
        .warning-box li {
            color: #856404;
            margin-bottom: var(--spacing-xs);
        }
        
        /* Missing config column styling */
        .variable-config-column {
            padding-right: var(--spacing-md);
            border-right: 1px solid #E5E7EB;
        }
        
        .missing-config-column {
            background-color: #F9FAFB;
            padding: var(--spacing-md);
            border-radius: var(--radius-md);
        }
        
        .missing-config-column h5,
        .missing-config-column h6 {
            color: #1E3A5F;
            margin-bottom: var(--spacing-md);
        }
        
        /* ===========================
           RESPONSIVENESS
           =========================== */
        
        @media (max-width: 768px) {
            :root {
                --spacing-lg: 12px;
                --spacing-xl: 16px;
            }
            
            .card-body {
                padding: 12px 14px;
            }
            
            .btn {
                font-size: 12px;
                padding: 8px 12px;
            }
            
            .form-control,
            .form-select {
                font-size: 16px; /* Prevents zoom on iOS */
                padding: 12px;
            }
            
            h1 { font-size: 24px; }
            h2 { font-size: 20px; }
            h3 { font-size: 18px; }
            
            .stat-box-value {
                font-size: 24px;
            }
            
            .table {
                font-size: 12px;
            }
            
            .table thead th,
            .table tbody td {
                padding: var(--spacing-sm);
            }
            
            .table-responsive {
                margin-bottom: var(--spacing-md);
            }
        }
        
        @media (max-width: 480px) {
            .navbar {
                padding: var(--spacing-sm) var(--spacing-md);
            }
            
            .navbar-brand {
                font-size: 16px;
            }
            
            .btn {
                width: 100%;
                margin-bottom: var(--spacing-sm);
            }
        }

        /* ===========================
           TVC SPECIFIC STYLES
           =========================== */
        
        .tvc-preset-container {
            margin-bottom: 10px;
        }
        
        .tvc-preset-label {
            margin-right: 10px; 
            font-weight: 600; 
            color: #6B7280;
        }
        
        .tvc-preset-btn {
            margin-right: 5px !important;
        }

        /* ===========================
           UX/UI IMPROVEMENTS
           =========================== */
        
        .form-section {
            background: #FFFFFF;
            border: 1px solid #E5E7EB;
            border-radius: var(--radius-lg);
            padding: var(--spacing-lg);
            margin-bottom: var(--spacing-lg);
        }
        
        .form-section-title {
            color: #1E3A5F;
            font-size: 16px;
            margin-bottom: var(--spacing-md);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .form-section-required::before {
            content: "";
            display: none;
        }
        
        .form-section-optional::before {
            content: "";
            display: none;
        }
        
        .form-section-advanced {
            background: #F8F9FA;
            border-left: 4px solid #FFB900;
        }
        
        .results-section {
            margin-top: var(--spacing-2xl);
            padding-top: var(--spacing-xl);
            border-top: 2px solid #E5E7EB;
        }
        
        .results-header {
            display: flex;
            align-items: center;
            margin-bottom: var(--spacing-lg);
            gap: 12px;
        }
        
        .results-title {
            margin: 0;
            color: #0F2440;
        }
        
        .stat-table {
            font-size: 13px;
        }
        
        .stat-table th {
            background-color: #F8F9FA;
            font-weight: 600;
        }
        
        .stat-table .sig-p {
            background-color: #22A765;
            color: white;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 600;
        }
        
        .stat-table td {
            font-family: var(--font-family-mono);
        }
        
        .help-icon {
            display: inline-block;
            width: 18px;
            height: 18px;
            background: #1E3A5F;
            color: white;
            border-radius: 50%;
            text-align: center;
            font-size: 12px;
            cursor: help;
            margin-left: 4px;
            font-weight: 700;
            line-height: 18px;
        }
        
        .input-help-text {
            font-size: 12px;
            color: #6B7280;
            margin-top: 6px;
            padding: 8px;
            background: #F8F9FA;
            border-left: 3px solid #1E3A5F;
            border-radius: 4px;
            display: block;
        }
        
        .label-with-help {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .workflow-progress {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 16px;
            background: #E8EEF7;
            border-radius: var(--radius-lg);
            margin-bottom: 24px;
            flex-wrap: wrap;
        }
        
        .step {
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            color: #6B7280;
            background: #FFFFFF;
            border: 1px solid #E5E7EB;
        }
        
        .step.active {
            background: #1E3A5F;
            color: white;
            border-color: #1E3A5F;
        }
        
        .step-divider {
            color: #D1D5DB;
        }
        
        /* ===========================
           SECTION 7: EMPTY STATE & SKELETON
           =========================== */
        
        /* 7.1 Empty State Handling */
        .empty-state {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 400px;
            background: linear-gradient(135deg, #F8F9FA 0%, #E8EEF7 100%);
            border-radius: var(--radius-lg);
            border: 1px dashed var(--color-border);
            text-align: center;
            padding: var(--spacing-xl);
            margin-bottom: var(--spacing-lg);
        }

        .empty-state-content {
            max-width: 400px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--spacing-md);
        }

        .empty-state-icon {
            font-size: 64px;
            line-height: 1;
            margin-bottom: var(--spacing-md);
            opacity: 0.5;
            filter: grayscale(1);
        }
        
        .empty-state h3 {
            font-size: var(--text-heading-size);
            color: var(--color-text);
            margin-bottom: var(--spacing-xs);
        }
        
        .empty-state p {
            font-size: var(--text-body-size);
            color: var(--color-text-secondary);
            margin-bottom: var(--spacing-lg);
        }
        
        /* 7.2 Skeleton Loaders */
        .skeleton-container {
            width: 100%;
            padding: var(--spacing-md);
        }

        .skeleton {
            background: linear-gradient(
                90deg,
                #F0F0F0 0%,
                #E8E8E8 50%,
                #F0F0F0 100%
            );
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
            border-radius: var(--radius-sm);
            margin-bottom: 12px;
        }

        .skeleton-text {
            height: 16px;
            width: 80%;
        }
        
        .skeleton-text-sm {
            height: 12px;
            width: 60%;
        }

        .skeleton-chart {
            height: 300px;
            width: 100%;
            border-radius: var(--radius-md);
        }
        
        .skeleton-card {
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
            padding: var(--spacing-lg);
            background: white;
            margin-bottom: var(--spacing-lg);
        }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ===========================
           RESULT TRANSITIONS
           =========================== */
        .fade-in-entry {
            animation: fadeInAnimation 0.5s ease-out forwards;
            opacity: 0;
            transform: translateY(10px);
        }

        @keyframes fadeInAnimation {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .fade-in-entry {
                animation: none;
                opacity: 1;
                transform: none;
            }
        }

        /* ===========================
           DOWNLOAD STATUS BADGE
           =========================== */
        .download-status-badge {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 11.5px;
            font-weight: 500;
            padding: 3px 0;
            margin-top: 4px;
            line-height: 1.3;
        }

        .download-status-badge.ready {
            color: #22A765;
        }

        .download-status-badge.pending {
            color: #6B7280;
            opacity: 0.7;
        }
