/* ================================================================
   inflation.css — Actuary-themed inflation dashboard
   CIA teal: #00A79D
   ================================================================ */

:root {
    --cia-teal: #00A79D;
    --cia-teal-dark: #008A82;
    --cia-teal-light: #33B9B0;
    --cia-teal-bg: rgba(0, 167, 157, 0.08);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-top: 56px;
}

/* Navbar */
.navbar-inflation {
    background: var(--cia-teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.navbar-inflation .navbar-brand { color: var(--bs-white); font-weight: 700; font-size: 1.1rem; }
.navbar-inflation .brand-icon { font-size: 1.3rem; }
.navbar-inflation .brand-mark { height: 32px; width: auto; }
.navbar-inflation .badge { font-size: 0.72rem; }
.navbar-inflation #theme-toggle { color: var(--bs-white); border-color: rgba(255,255,255,0.4); }
.navbar-inflation #theme-toggle:hover { background: rgba(255,255,255,0.15); }

/* Tabs */
.inflation-tabs { margin-top: 0.75rem; border-bottom: 2px solid var(--bs-border-color); }
.inflation-tabs .nav-link {
    color: var(--bs-body-color); font-weight: 500; font-size: 0.9rem;
    padding: 0.6rem 1rem; border: none;
    border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.inflation-tabs .nav-link:hover { color: var(--cia-teal); border-bottom-color: var(--cia-teal-light); }
.inflation-tabs .nav-link.active { color: var(--cia-teal); border-bottom-color: var(--cia-teal); background: transparent; }

/* Metric Cards */
.metric-card {
    background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem; padding: 1rem; text-align: center; transition: box-shadow 0.15s;
}
.metric-card:hover { box-shadow: 0 2px 12px rgba(0, 167, 157, 0.15); }
.metric-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bs-secondary-color); margin-bottom: 0.35rem; }
.metric-value { font-family: 'Roboto Mono', monospace; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.metric-sub { font-size: 0.72rem; color: var(--bs-secondary-color); margin-top: 0.25rem; }

/* Chart Containers */
.chart-container {
    background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem; padding: 0.75rem; margin-bottom: 1rem;
}
.chart-title { font-weight: 600; font-size: 0.88rem; color: var(--cia-teal-dark); margin-bottom: 0.5rem; padding-left: 0.25rem; }
.chart-summary { font-size: 0.78rem; margin-bottom: 0.5rem; line-height: 1.4; }
[data-bs-theme="dark"] .chart-title { color: var(--cia-teal-light); }
.chart-area { min-height: 320px; position: relative; }
.chart-area-tall { min-height: 500px; }
.chart-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Data Table */
.inflation-datatable { font-size: 0.78rem; font-family: 'Roboto Mono', monospace; white-space: nowrap; }
.inflation-datatable thead th {
    position: sticky; top: 0; background: var(--bs-body-bg); z-index: 2;
    font-size: 0.72rem; font-weight: 600; border-bottom: 2px solid var(--cia-teal);
}
.inflation-datatable .sticky-col {
    position: sticky; left: 0; background: var(--bs-body-bg); z-index: 3;
    min-width: 220px; max-width: 300px; overflow: hidden; text-overflow: ellipsis;
    font-family: 'Inter', sans-serif; font-weight: 500;
}
.inflation-datatable thead .sticky-col { z-index: 4; }
.inflation-datatable .priority-row { font-weight: 600; }
.inflation-datatable .priority-row .sticky-col { color: var(--cia-teal-dark); }
[data-bs-theme="dark"] .inflation-datatable .priority-row .sticky-col { color: var(--cia-teal-light); }

/* Cell color classes */
.cell-hot   { background: rgba(215, 48, 39, 0.18); }
.cell-warm  { background: rgba(253, 174, 97, 0.18); }
.cell-target { background: rgba(166, 217, 106, 0.12); }
.cell-cool  { background: rgba(26, 152, 80, 0.12); }
.cell-cold  { background: rgba(69, 117, 180, 0.18); }
[data-bs-theme="dark"] .cell-hot   { background: rgba(215, 48, 39, 0.25); }
[data-bs-theme="dark"] .cell-warm  { background: rgba(253, 174, 97, 0.20); }
[data-bs-theme="dark"] .cell-target { background: rgba(166, 217, 106, 0.15); }
[data-bs-theme="dark"] .cell-cool  { background: rgba(26, 152, 80, 0.15); }
[data-bs-theme="dark"] .cell-cold  { background: rgba(69, 117, 180, 0.25); }

/* Category Picker */
.category-picker {
    background: var(--cia-teal-bg);
    border-color: var(--cia-teal-light) !important;
    font-size: 0.82rem;
}
.category-picker .form-check-label { font-size: 0.82rem; cursor: pointer; }
.category-picker .form-check-input:checked { background-color: var(--cia-teal); border-color: var(--cia-teal); }

/* Range Slider */
.range-slider {
    width: 120px;
    accent-color: var(--cia-teal);
}

/* Research Tab */
.research-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}
.research-section:last-child { border-bottom: none; }
.research-heading {
    color: var(--cia-teal-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
[data-bs-theme="dark"] .research-heading { color: var(--cia-teal-light); }
.research-subheading {
    color: var(--cia-teal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Footer */
.inflation-footer { border-top: 1px solid var(--bs-border-color); }

/* Responsive */
@media (max-width: 767.98px) {
    .metric-value { font-size: 1.2rem; }
    .metric-label { font-size: 0.68rem; }
    .chart-area { min-height: 250px; }
    .inflation-datatable .sticky-col { min-width: 160px; }
    .inflation-tabs .nav-link { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
    .navbar-inflation .navbar-brand { font-size: 0.92rem; }
    .range-slider { width: 80px; }
    #momentum-controls .btn { font-size: 0.72rem; padding: 0.2rem 0.4rem; }
}
@media (max-width: 575.98px) {
    .metric-card { padding: 0.6rem; }
    .metric-value { font-size: 1rem; }
}
