* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: #f6f7fb;
    color: #333;
    line-height: 1.9;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter: blur(10px); -- removed for cleaner design */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}


footer:not(.bg-slate-800) {
    background: #1a345f;
    color: white;
    padding: 25px;
    text-align: center;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2em;
}

header p {
    margin: 5px 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.ms-2 {
    margin-left: 10px;
}

/* New styles for enhanced sections */
.tier-marker {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tier-core {
    background: #1e3a8a;
}

.tier-applied {
    background: #059669;
}

.tier-advanced {
    background: #7c3aed;
}

.section-summary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.section-summary h4 {
    color: #0c4a6e;
    margin-top: 0;
    font-size: 1.1em;
}

.quick-check {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-style: italic;
}

.advanced-notice {
    background: #fef3c7;
    border-left: 5px solid #d97706;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.decision-framework {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.toc-container h3 {
    color: #1e3a8a;
    text-align: center;
    margin: 0 0 20px 0;
    border: none;
    font-size: 1.4em;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.toc-column h4 {
    color: #374151;
    margin: 0 0 15px 0;
    padding: 8px 12px;
    background: #e5e7eb;
    border-radius: 6px;
    font-size: 1.1em;
    text-align: center;
}

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

.toc-list li {
    margin: 8px 0;
}

.toc-list a {
    display: block;
    padding: 10px 15px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border-right: 3px solid transparent;
}

.toc-list a:hover {
    background: #dbeafe;
    color: #1e3a8a;
    border-right-color: #3b82f6;
    transform: translateX(-3px);
}

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

    .toc-container {
        padding: 20px;
        margin: 20px 0;
    }
}

.time-indicator {
    background: #f59e0b;
    color: white;
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 15px;
    margin-right: 10px;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Sample Solution Styles */
.sample-solution {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-right: 5px solid #16a34a;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.solution-title {
    color: #15803d;
    margin-top: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.solution-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.solution-card h5 {
    margin-top: 0;
    color: #374151;
    font-size: 0.95em;
    font-weight: bold;
}

.solution-card ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.solution-card li {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #4b5563;
}

/* Utility classes for common inline styles */
.small-text {
    font-size: 0.9em;
}

.smaller-text {
    font-size: 0.85em;
}

.header-subtitle {
    font-size: 0.95em;
    margin-top: 10px;
}

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

.auto-margin {
    margin: auto;
}

.margin-top-small {
    margin-top: 10px;
}

.margin-top-medium {
    margin-top: 15px;
}

.bg-success {
    background: #e8f5e9;
}

.bg-warning {
    background: #fff4d4;
}

.bg-error {
    background: #ffebee;
}

.bg-info {
    background: #e3f2fd;
}

.bg-light-gray {
    background: #f0f0f0;
}

.bg-light-blue {
    background: #e8eef7;
}

.border-primary {
    border: 3px solid #2196f3;
}

.border-success {
    border: 3px solid #4caf50;
}

.row-success {
    background: #e8f5e9;
}

.row-warning {
    background: #fff4d4;
}

.row-error {
    background: #ffebee;
}

.row-info {
    background: #e8eef7;
}

.row-light-gray {
    background: #f1f8e9;
}

.row-yellow {
    background: #fff9c4;
}

.code-block-dark {
    background: #263238;
    color: #aed581;
}

.code-block-dark-scrollable {
    background: #263238;
    color: #aed581;
    max-height: 600px;
    overflow-y: auto;
}

.header-custom {
    margin-top: 0;
    color: #1565c0;
}

.subheader-custom {
    color: #1976d2;
}

.note-custom {
    background: #e3f2fd;
    border-right-color: #2196f3;
}

.footer-text {
    font-size: 0.9em;
    margin-top: 10px;
}

.width-30 {
    width: 30%;
}

.width-35 {
    width: 35%;
}

.width-50 {
    width: 50%;
}

.row-green-white {
    background: #4caf50;
    color: white;
}

/* Dataset section styles */
.dataset-accordion .accordion-header {
    background: #e8f4e8;
    border-right: 5px solid #2e7d32;
    font-size: 1.05em;
}

.dataset-accordion .accordion-header:hover {
    background: #d0ebd0;
}

.ds-badge {
    display: inline-block;
    background: #2e7d32;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.85em;
    margin-left: 10px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.ds-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ds-meta-card {
    background: #f8fdf8;
    border: 2px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.ds-meta-title {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-size: 1em;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 5px;
}

.dataset-section-header {
    background: #1b5e20;
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 40px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dataset-section-header h3 {
    color: white;
    margin: 0;
    border: none;
    font-size: 1.3em;
}

.dataset-section-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.95em;
}

.dataset-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.analysis-steps li {
    margin: 15px 0;
    padding: 10px;
    background: #f1f8f1;
    border-radius: 6px;
    border-right: 3px solid #4caf50;
}

.analysis-steps li strong {
    color: #2e7d32;
    display: block;
    margin-bottom: 5px;
}

.expected-result-table {
    font-size: 0.9em;
}

.spss-path {
    background: #263238;
    color: #80cbc4;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    display: inline-block;
    margin: 5px 0;
    direction: ltr;
}

.accordion,
.info-box,
.example-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.n-sample {
    font-size: 2em;
    font-weight: bold;
    color: #1a345f;
    margin: 5px 0;
}

.reference-text {
    color: #666;
    font-weight: normal;
}

/* Bibliography Styles */
.bib-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: transform 0.2s ease;
}




/* Missing decision card styles */
.missing-decision-card {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border-left: 5px solid #dc2626;
}

.missing-decision-card.delete-card {
    background: #fef2f2;
    border-color: #ef4444;
}

.missing-decision-card.delete-card h4 {
    color: #b91c1c;
}

.missing-decision-card h4 {
    color: #dc2626;
    margin-top: 0;
    font-size: 1.1em;
}

.missing-decision-card p {
    margin: 10px 0;
    line-height: 1.6;
}

.missing-decision-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.missing-decision-card li {
    margin: 8px 0;
}

/* Performance optimization styles */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Responsive optimizations */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 20px 0;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.2em;
    }

    .workflow-step {
        min-width: 80px;
        padding: 10px 8px;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }
}

/* Exercise section specific styles */
.exercise-intro {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.exercise-intro h3 {
    color: #0284c7;
    margin-top: 0;
    margin-bottom: 10px;
}

.exercise-content {
    padding: 10px 0;
}

.exercise-content h4 {
    color: #1e3a8a;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.stats-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.stats-box p {
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.recommendation-box {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.recommendation-box p {
    margin: 0 0 10px 0;
    color: #15803d;
}

.recommendation-box ol {
    margin: 10px 0;
    padding-right: 20px;
}

.recommendation-box li {
    margin-bottom: 5px;
    color: #166534;
}

.apa-template {
    background: #fefce8;
    border: 2px solid #fde047;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.apa-template p {
    margin: 0 0 10px 0;
    color: #713f12;
    font-weight: bold;
}

.apa-quote {
    background: white;
    border-right: 4px solid #f59e0b;
    padding: 15px;
    margin: 10px 0;
    font-style: italic;
    color: #475569;
    line-height: 1.8;
}

/* Enhanced dataset section styles */
.datasets-intro {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 5px solid #0ea5e9;
}

.datasets-intro h3 {
    color: #0284c7;
    margin-top: 0;
    margin-bottom: 10px;
}

.datasets-intro p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.datasets-intro code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1e3a8a;
}

.analysis-objectives {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.analysis-objectives li {
    margin-bottom: 8px;
    color: #475569;
}

.analysis-objectives li::marker {
    color: #3b82f6;
}

.result-box {
    background: #dcfce7;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.result-box p {
    margin: 0;
    color: #166534;
    font-weight: bold;
}

.datasets-summary {
    background: #fef3c7;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    border-left: 5px solid #d97706;
}

.datasets-summary h3 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 15px;
}

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

.summary-card {
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.summary-card h4 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.summary-card p {
    margin: 0;
    color: #78350f;
    line-height: 1.5;
}

.summary-card code {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #92400e;
}

/* Enhanced file links */
.ds-meta-card a {
    color: #1e3a8a;
    text-decoration: none;
    border-bottom: 1px dotted #3b82f6;
    transition: all 0.3s ease;
}

.ds-meta-card a:hover {
    color: #3b82f6;
    border-bottom-style: solid;
    background: #f0f9ff;
    padding: 1px 3px;
    border-radius: 3px;
}

/* Example box styles for Introduction section */
.example-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #0ea5e9;
}

.example-box strong {
    color: #0284c7;
    display: block;
    margin-bottom: 8px;
}

.example-box p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

/* Advanced note and special box styles for Data Types section */
.advanced-note {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #d97706;
}

.advanced-note h4 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.advanced-note p {
    margin: 10px 0;
    color: #78350f;
    line-height: 1.6;
}

.advanced-note ol,
.advanced-note ul {
    margin: 15px 0;
    padding-right: 20px;
}

.advanced-note li {
    margin-bottom: 8px;
    color: #78350f;
    line-height: 1.6;
}

.success-box {
    background: #dcfce7;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #16a34a;
}

.success-box strong {
    color: #15803d;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.success-box ol,
.success-box ul {
    margin: 15px 0;
    padding-right: 20px;
}

.success-box li {
    margin-bottom: 12px;
    color: #166534;
    line-height: 1.6;
}

.success-box p {
    margin: 8px 0;
    color: #166534;
    font-size: 0.95em;
}

.key-insight {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 4px solid #2563eb;
}

.key-insight p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
}

.warning-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 4px solid #dc2626;
}

.warning-box p {
    margin: 0;
    color: #b91c1c;
    font-weight: 500;
}

.info-box p {
    margin: 8px 0;
    color: #475569;
    line-height: 1.6;
}

.info-box ul {
    margin: 10px 0;
    padding-right: 20px;
}

.info-box li {
    margin-bottom: 5px;
    color: #475569;
}

/* Additional styles for Data Preparation section */
.formula {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #1e3a8a;
    text-align: center;
}

.margin-top-medium {
    margin-top: 15px;
}

.note {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.note strong {
    color: #0284c7;
    display: block;
    margin-bottom: 8px;
}

.note ul {
    margin: 10px 0;
    padding-right: 20px;
}

.note li {
    margin-bottom: 5px;
    color: #475569;
}

.definition-box {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #16a34a;
}

.definition-box strong {
    color: #15803d;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.definition-box ol {
    margin: 15px 0;
    padding-right: 20px;
}

.definition-box li {
    margin-bottom: 8px;
    color: #166534;
    line-height: 1.6;
}

.decision-framework {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #d97706;
}

.decision-framework h4 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 15px;
}

.decision-framework p {
    margin: 10px 0;
    color: #78350f;
    line-height: 1.6;
}

.decision-framework table {
    margin: 15px 0;
    border-collapse: collapse;
    width: 100%;
}

.decision-framework th {
    background: #f59e0b;
    color: white;
    padding: 10px;
    text-align: center;
    border: 1px solid #d97706;
}

.decision-framework td {
    padding: 10px;
    text-align: center;
    border: 1px solid #d97706;
    background: white;
}

.decision-framework .row-info {
    background: #fef3c7;
}

pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    margin: 10px 0;
}

/* Additional styles for Psychometric Scales section */
.danger-box {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #dc2626;
}

.danger-box strong {
    color: #b91c1c;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.danger-box ul {
    margin: 15px 0;
    padding-right: 20px;
}

.danger-box li {
    margin-bottom: 8px;
    color: #991b1b;
    line-height: 1.6;
}

.border-primary {
    border: 3px solid #1e3a8a !important;
}

.border-success {
    border: 3px solid #16a34a !important;
}

.border-warning {
    border: 3px solid #d97706 !important;
}

.border-info {
    border: 3px solid #0ea5e9 !important;
}

.comparison-card-blue {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
}

.comparison-card-blue h4 {
    color: #1e40af;
    margin-top: 0;
}

.comparison-card-blue p {
    color: #1e3a8a;
    line-height: 1.6;
}

.comparison-card-blue ul {
    padding-right: 20px;
}

.comparison-card-blue li {
    margin-bottom: 8px;
    color: #1e40af;
    line-height: 1.6;
}

.row-green-white {
    background: #dcfce7;
}

.row-green-white th {
    background: #16a34a !important;
    color: white !important;
}

hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.small-text {
    font-size: 0.9em;
    line-height: 1.5;
}

.smaller-text {
    font-size: 0.85em;
    line-height: 1.4;
}

/* Additional styles for CFA Interactive Simulation section */
.info-note {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #0284c7;
}

.info-note-title {
    color: #0284c7;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
}

.info-note-text {
    color: #0c4a6e;
    line-height: 1.6;
    margin: 0;
}

.educational-content {
    background: #faf5ff;
    border: 2px solid #d8b4fe;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border-left: 5px solid #9333ea;
}

.educational-content h3 {
    color: #7c3aed;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.educational-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.educational-grid h4 {
    color: #6d28d9;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.educational-grid p {
    color: #4c1d95;
    line-height: 1.6;
    margin-bottom: 20px;
}

.educational-grid .info-note {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-left: 5px solid #d97706;
    margin: 15px 0;
    padding: 15px;
}

.educational-grid .info-note-title {
    color: #92400e;
}

.educational-grid .info-note-text {
    color: #78350f;
}

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

/* Additional styles for Case Study section */
.note-custom {
    background: #f0fdf4;
    border: 3px solid #16a34a;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border-left: 6px solid #15803d;
}

.header-custom {
    color: #14532d;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: bold;
}

.subheader-custom {
    color: #166534;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

.bg-light-gray {
    background: #f8fafc;
}

.width-50 {
    width: 50%;
    min-width: 200px;
}

/* Additional styles for Excel Analysis section */
.margin-top-small {
    margin-top: 10px;
}

.row-success {
    background: #dcfce7;
}

.row-light-gray {
    background: #f8fafc;
}

.row-yellow {
    background: #fef3c7;
}

.row-error {
    background: #fef2f2;
}

.row-info {
    background: #dbeafe;
}
.skip-link-target {
    display: block;
    position: relative;
    top: -1rem;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #1a345f;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
    transition: all .3s;
    font-size: 1.2em;
    z-index: 999;
}
.btn-top:hover {
    background: #2d4a7c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .4);
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-bottom: 30px;
}
.viz-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.viz-card svg {
    width: auto;
    height: auto;
    max-width: 600px;
    max-height: 500px;
}
.controls-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05);
    padding: 20px;
    border: 1px solid var(--border-color);
}
.controls-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.slider-group {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
}
.val-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .9rem;
    font-family: monospace;
}
.slider-group input[type=range] {
    width: 100%;
    accent-color: var(--secondary-color);
    cursor: pointer;
}
.error-text {
    font-size: .8rem;
    color: var(--danger-color);
    margin-top: 5px;
    display: block;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.metric-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all .3s ease;
}
.metric-title {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 5px;
}
.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: monospace;
}

.info-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.info-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 0;
}
.analysis-list {
    list-style: none;
    padding: 0;
}
.analysis-list li {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-color);
    border-right: 4px solid var(--border-color);
    font-size: .95rem;
    line-height: 1.6;
}
.analysis-list li .MathJax,
.analysis-list li .MathJax_SVG,
.analysis-list li mjx-container {
    font-size: 90% !important;
}

.analysis-list .status-good {
    border-right-color: var(--success-color) !important;
}
.analysis-list .status-warn {
    border-right-color: var(--warning-color) !important;
}
.analysis-list .status-bad {
    border-right-color: var(--danger-color) !important;
}

.disclaimer {
    font-size: .8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}
