/* ═══════════════════════════════════════════════════════ */
/*  P4AI-DS EDA Dashboard — Pastel Scientific Theme        */
/*  Inspired by modern education UI · Soft · Warm          */
/* ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Pastel cards (from reference) */
    --card-pink: #F8E4E4;
    --card-peach: #FAE8D4;
    --card-mint: #D9F0E3;
    --card-lavender: #E5E0F5;
    --card-cream: #FFF5E6;
    --card-sky: #DDE9F6;

    /* Primary warm accent */
    --primary: #C26A2E;
    --primary-light: #D98A4E;
    --primary-pale: #F2DCC8;
    --primary-dark: #9E5420;

    /* Accent tones */
    --accent-green: #5E8A5C;
    --accent-rose: #C7727A;
    --accent-amber: #B8942F;
    --accent-blue: #6886A5;

    /* Surfaces */
    --bg: #F6F1EB;
    --surface: #FFFFFF;
    --surface-warm: #FAF5EF;
    --border: #E8DDD0;
    --border-light: #F0E8DD;

    /* Text */
    --text: #3D2C1E;
    --text-secondary: #6B5744;
    --text-muted: #9C8B7A;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(61,44,30,0.05);
    --shadow-md: 0 4px 12px rgba(61,44,30,0.07);
    --shadow-lg: 0 12px 28px rgba(61,44,30,0.10);

    /* Misc */
    --radius: 16px;
    --radius-sm: 10px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────── */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246,241,235,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; align-items: center;
    grid-template-columns: 1fr auto 1fr;
    height: 56px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1rem; color: var(--primary);
    text-decoration: none;
}
.nav-brand i { font-size: 1.1rem; }
.nav-links { display: flex; gap: 4px; justify-self: center; }
.nav-links a {
    padding: 7px 16px; border-radius: 24px;
    text-decoration: none; font-weight: 500; font-size: 0.85rem;
    color: var(--text-secondary); transition: var(--transition);
}
.nav-links a:hover { background: var(--surface-warm); color: var(--primary); }
.nav-links a.active { background: var(--text); color: #fff; }
.nav-links a i { margin-right: 5px; font-size: 0.8rem; }
.nav-actions { display: flex; gap: 8px; }

.theme-toggle {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 24px; padding: 5px 14px;
    cursor: pointer; font-size: 0.82rem; font-family: var(--font-sans);
    color: var(--text-secondary); transition: var(--transition);
    display: inline-flex; align-items: center; gap: 5px;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle i { color: var(--primary); font-size: 0.85rem; }

/* ── Page ────────────────────────────────────────────── */
.page-container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #5C3D1F 0%, #8B5E3C 40%, #C26A2E 100%);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    color: #FDF5EC;
    margin-bottom: 2rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -60%; right: -15%;
    width: 380px; height: 380px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.hero h1 {
    font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600;
    margin-bottom: 0.4rem; position: relative; z-index: 1;
}
.hero p {
    font-size: 0.92rem; opacity: 0.85; max-width: 640px;
    position: relative; z-index: 1; line-height: 1.7;
}

/* ── Sub Tabs ────────────────────────────────────────── */
.sub-tabs {
    display: flex; gap: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 30px; padding: 5px;
    width: fit-content; margin: 0 auto 2rem;
}
.sub-tab {
    padding: 7px 22px; border-radius: 24px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
    transition: var(--transition);
}
.sub-tab:hover { background: var(--surface-warm); color: var(--primary); }
.sub-tab.active { background: var(--primary); color: #fff; }

/* ── Controls ────────────────────────────────────────── */
.page-controls { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 24px;
    border: 1px solid var(--border); background: var(--surface);
    font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn i { font-size: 0.78rem; color: var(--primary); }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }

/* ── Stat Cards (pastel) ─────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
    border-radius: var(--radius); padding: 1.4rem;
    position: relative; overflow: hidden;
    border: 1px solid transparent;
}
.stat-card .stat-label { font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; opacity: 0.7; }
.stat-card .stat-value { font-size: 1.55rem; font-weight: 700; font-family: var(--font-mono); }
.stat-card .stat-sub { font-size: 0.75rem; opacity: 0.6; margin-top: 3px; }

.stat-orange  { background: var(--card-peach); color: #7A4A1E; }
.stat-brown   { background: var(--card-pink); color: #6B3434; }
.stat-green   { background: var(--card-mint); color: #2D5A2B; }
.stat-amber   { background: var(--card-cream); color: #6B5A1E; }
.stat-blue    { background: var(--card-sky); color: #2D4A6B; }
.stat-red     { background: var(--card-pink); color: #6B3434; }

/* ── Collapsible Sections ────────────────────────────── */
.eda-section { margin-bottom: 1rem; }
.section-header {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    user-select: none; transition: var(--transition);
}
.section-header:hover { box-shadow: var(--shadow-sm); }
.section-header:not(.collapsed) {
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom-color: transparent;
}
.section-header h2 {
    font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.section-header h2 i { font-size: 0.88rem; color: var(--primary); }
.collapse-icon { font-size: 0.75rem; color: var(--text-muted); transition: transform 0.3s ease; }
.section-header.collapsed .collapse-icon { transform: rotate(-90deg); }

.section-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1.5rem;
}
.section-body.collapsed { display: none; }

/* ── Pipeline Flow ───────────────────────────────────── */
.pipeline-flow {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.pipeline-step {
    min-width: 190px;
    flex: 1;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.95rem;
    position: relative;
}
.pipeline-step .step-index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 0.45rem;
}
.pipeline-step h3 {
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
}
.pipeline-step p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.pipeline-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    opacity: 0.8;
}
.split-note {
    background: var(--card-sky);
    color: #2D4A6B;
    border: 1px solid #C9D9EA;
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    font-size: 0.83rem;
    margin-bottom: 1rem;
}
.split-note i { margin-right: 0.45rem; }

/* ── Chart Containers ────────────────────────────────── */
.chart-container { margin-bottom: 1.5rem; }
.chart-box {
    background: var(--surface); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); padding: 0.5rem;
    min-height: 380px; overflow: hidden;
}
.chart-description {
    font-size: 0.84rem; color: var(--text-muted);
    padding: 0.5rem 0; line-height: 1.55;
}
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}
.chart-container.chart-wide { grid-column: 1 / -1; }

/* ── Cards ───────────────────────────────────────────── */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}
.report-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.8rem;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    display: flex; flex-direction: column;
}
.report-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.report-card .badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.73rem; font-weight: 600;
    margin-bottom: 0.75rem; width: fit-content;
}
.badge-tabular { background: var(--card-peach); color: #7A4A1E; }
.badge-image { background: var(--card-mint); color: #2D5A2B; }
.report-card h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.5rem; }
.report-card p { color: var(--text-secondary); font-size: 0.86rem; margin-bottom: 1rem; flex: 1; }
.report-card ul { list-style: none; margin-bottom: 1.5rem; padding: 0; }
.report-card li { padding: 3px 0; font-size: 0.82rem; color: var(--text-secondary); }
.report-card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 8px; color: var(--accent-green); font-size: 0.72rem; }
.btn-report {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border: none; border-radius: 24px;
    background: var(--text); color: #fff;
    font-family: var(--font-sans); font-weight: 600; font-size: 0.86rem;
    cursor: pointer; transition: var(--transition); text-decoration:none; width:fit-content;
}
.btn-report:hover { background: var(--primary); transform: translateX(3px); }
.btn-report i { font-size: 0.8rem; }

/* ── Insight Box ─────────────────────────────────────── */
.insight-box {
    background: var(--card-cream);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
}
.insight-box h4 {
    font-size: 0.88rem; font-weight: 600;
    color: var(--primary); margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 8px;
}
.insight-box h4 i { font-size: 0.82rem; }
.insight-box ul { padding-left: 1.2rem; }
.insight-box li { font-size: 0.84rem; color: var(--text-secondary); padding: 2px 0; }

/* ── Desc Box ────────────────────────────────────────── */
.desc-box {
    background: var(--surface-warm); border-radius: var(--radius-sm);
    padding: 1.2rem; margin-bottom: 1.5rem;
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
    border: 1px solid var(--border-light);
}

/* ── Tables ──────────────────────────────────────────── */
.data-table-wrap {
    overflow-x: auto; margin-bottom: 1.5rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th {
    background: var(--surface-warm); padding: 9px 13px;
    text-align: left; font-weight: 600; color: var(--text-secondary);
    border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 7px 13px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--surface-warm); }
.data-table .num { font-family: var(--font-mono); text-align: right; }

.text-results-page .data-table-wrap {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.text-results-page .data-table th {
    background: linear-gradient(180deg, #FFF4E5 0%, #F6E4D0 100%);
    color: #6B3A15;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.text-results-page .data-table tbody tr:nth-child(even) td {
    background: #FFFCF7;
}
.text-results-page .data-table tbody tr:hover td {
    background: #F3E8D8;
}
.text-results-page .data-table td:first-child {
    color: var(--text);
    font-weight: 600;
}
.text-results-page .data-table .num {
    color: var(--text);
    font-weight: 400;
}
.text-results-page .table-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.text-results-page .table-chip { color: var(--text); }
.text-results-page .chip-feature-bow { background: #E8F1FB; }
.text-results-page .chip-feature-tfidf { background: #FFF0D8; }
.text-results-page .chip-reducer-chi2 { background: #E7F4E6; }
.text-results-page .chip-reducer-svd100 { background: #F0E9FA; }
.text-results-page .chip-reducer-svd300 { background: #FCE6EA; }
.text-results-page .chip-encoder-bert { background: #F0E9FA; }
.text-results-page .chip-encoder-distilbert { background: #E8F1FB; }
.text-results-page .chip-pooling-cls { background: #E7F4E6; }
.text-results-page .chip-pooling-mean { background: #FFF0D8; }
.text-results-page .chip-pooling-pooler { background: #FCE6EA; }
.text-results-page .chip-model-logistic-regression,
.text-results-page .chip-model-linear-svc,
.text-results-page .chip-model-char-linear-svc { background: #E8F1FB; }
.text-results-page #table-grid .chip-model-logistic-regression { background: #E8F1FB; }
.text-results-page #table-grid .chip-model-linear-svc { background: #E7F4E6; }
.text-results-page #table-grid .chip-model-sgd-hinge { background: #FFF0D8; }
.text-results-page #table-grid .chip-model-mlp { background: #E9F6F5; }
.text-results-page .chip-model-sgd-hinge,
.text-results-page .chip-model-sgd-log-loss,
.text-results-page .chip-model-hashing-sgd-hinge,
.text-results-page .chip-model-passive-aggressive { background: #E7F4E6; }
.text-results-page .chip-model-ridge-classifier,
.text-results-page .chip-model-voting-ensemble { background: #F0E9FA; }
.text-results-page .chip-model-mlp { background: #FCE6EA; }

/* ── Balance Cards ───────────────────────────────────── */
.balance-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem; margin-bottom: 1.5rem;
}
.balance-card {
    background: var(--surface-warm); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1rem; text-align: center;
}
.balance-card .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 3px; }
.balance-card .value { font-size: 1.15rem; font-weight: 700; font-family: var(--font-mono); }
.balance-card .warning { color: var(--accent-rose); }

/* ── Image Gallery ───────────────────────────────────── */
.gallery-controls {
    display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; align-items: center;
}
.gallery-tabs {
    display: flex; gap: 4px; flex-wrap: wrap;
}
.gallery-tab {
    padding: 6px 16px; border-radius: 24px;
    border: 1px solid var(--border); background: var(--surface);
    font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.gallery-tab:hover { border-color: var(--primary); color: var(--primary); }
.gallery-tab.active { background: var(--text); color: #fff; border-color: var(--text); }
.gallery-tab.type-tab.active { background: var(--primary); border-color: var(--primary); }

.gallery-limit {
    margin-left: auto; display: flex; gap: 4px; align-items: center;
    font-size: 0.82rem; color: var(--text-muted);
}
.gallery-limit select {
    padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border);
    font-family: var(--font-sans); font-size: 0.82rem; background: var(--surface);
    cursor: pointer;
}

.image-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 8px; margin-bottom: 1.5rem;
}
.image-grid > div, .gallery-item-wrapper { position: relative; }
.image-area {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    height: 135px;
}
.image-area img {
    width: 100%; height: 135px; object-fit: contain;
    background: #f0ece6;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: block;
}
.image-grid img {
    width: 100%; height: 135px; object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: block;
}

/* Gallery grid — fixed height, natural width (no letterboxing) */
#gallery-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}
#gallery-grid .gallery-item-wrapper {
    display: inline-flex;
    flex-direction: column;
}
#gallery-grid .image-area {
    width: auto;
    height: 135px;
}
#gallery-grid .image-area img {
    width: auto;
    height: 135px;
    object-fit: unset;
    background: none;
}
.image-grid .gallery-item-wrapper:hover img { transform: scale(1.03); box-shadow: var(--shadow-md); }
.image-grid .img-label {
    font-size: 0.7rem; text-align: center; color: var(--text-muted);
    margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.image-grid .speed-badge {
    position: absolute; top: 6px; right: 6px;
    padding: 2px 7px; border-radius: 10px;
    font-size: 0.65rem; font-weight: 600; color: #fff;
    z-index: 5;
}

/* Bounding Box Overlay */
.image-area .image-bbox {
    position: absolute;
    border: 2px solid var(--primary);
    background: rgba(231, 111, 81, 0.1);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
}
.gallery-item-wrapper:hover .image-bbox {
    opacity: 1;
}
.image-bbox .bbox-label {
    position: absolute;
    top: 0; left: 0;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.speed-0 { background: #009ADE; }
.speed-1 { background: #00CD6C; }
.speed-2 { background: #FFC61E; color: #3D2C1E; }
.speed-3 { background: #F28522; }
.speed-4 { background: #FF1F5B; }

/* Color Swatches */
.color-swatch { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); }
.speed-row-label {
    font-weight: 600; font-size: 0.85rem;
    padding: 5px 0; color: var(--text);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}

/* ── About Box ───────────────────────────────────────── */
.about-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.8rem;
    margin-bottom: 2rem; box-shadow: var(--shadow-sm);
}
.about-box h2 {
    font-family: var(--font-serif); font-size: 1.15rem;
    margin-bottom: 0.5rem; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.about-box h2 i { color: var(--primary); font-size: 1rem; }
.about-box p { color: var(--text-secondary); line-height: 1.7; font-size: 0.9rem; }

/* ── Summary Cards ───────────────────────────────────── */
.summary-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.summary-card {
    background: var(--card-peach); border: none;
    border-radius: var(--radius); padding: 1.5rem;
}
.summary-card.green { background: var(--card-mint); }
.summary-card h4 {
    font-size: 0.9rem; font-weight: 600;
    margin-bottom: 0.7rem; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.summary-card h4 i { color: var(--primary); font-size: 0.82rem; }
.summary-card.green h4 i { color: var(--accent-green); }
.summary-card li { font-size: 0.84rem; color: var(--text-secondary); padding: 2px 0; }

.section-title-inline {
    font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
    margin: 1rem 0 0.5rem; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.section-title-inline i { color: var(--primary); font-size: 0.85rem; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    max-width: 1200px; margin: 2rem auto 0; padding: 2rem;
    border-top: 1px solid var(--border); text-align: center;
    font-size: 0.82rem; color: var(--text-muted);
}
.site-footer a { color: var(--primary); text-decoration: none; }
.footer-members { margin-top: 0.4rem; font-size: 0.78rem; }
.footer-members-table { margin: 0.75rem auto 0; border-collapse: collapse; font-size: 0.78rem; }
.footer-members-table th, .footer-members-table td { padding: 0.3rem 1.25rem; border: 1px solid var(--border); }
.footer-members-table th { background: var(--surface); font-weight: 600; }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(61,44,30,0.45); z-index: 200;
    align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--surface); border-radius: var(--radius);
    padding: 2rem; max-width: 700px; width: 90%;
    max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-content h3 { font-family: var(--font-serif); margin-bottom: 1rem; }
.modal-close {
    float: right; background: none; border: none;
    font-size: 1.4rem; cursor: pointer; color: var(--text-muted);
}

/* ── Plotly overrides ────────────────────────────────── */
.js-plotly-plot .plotly .modebar { top: 2px !important; right: 2px !important; }
.js-plotly-plot .plotly .modebar-btn { font-size: 14px !important; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .page-container { padding: 1rem; }
    .hero { padding: 2rem 1.5rem; }
    .hero h1 { font-size: 1.3rem; }
    .charts-row { grid-template-columns: 1fr; }
    .reports-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.eda-section { animation: fadeInUp 0.3s ease forwards; }
