/* Rumblings Dashboard v2 — Brand CSS

   Design: Clean, data-first. No decoration. Every element earns its place.
   Typography: Inter for UI, JetBrains Mono for data values.
   Color: Grayscale base, RED (#FF4444) only for signal spikes.
*/

/* ============================================================
   RESET & BASE
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-link {
    text-decoration: none;
    color: #9CA3AF !important;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: #000000 !important;
    background-color: #F3F4F6;
}

/* Active page link — styled via callback class */
.nav-link-active {
    color: #000000 !important;
    background-color: #F3F4F6;
    font-weight: 600;
}

/* ============================================================
   KPI CARDS
   ============================================================ */

[id^="kpi-"] {
    transition: box-shadow 0.15s ease;
}

[id^="kpi-"]:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   TABLES (Dash DataTable)
   ============================================================ */

.dash-table-container .dash-spreadsheet-container {
    border: none !important;
}

.dash-table-container .dash-header {
    background-color: #F9FAFB !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid #E5E7EB !important;
}

.dash-table-container .dash-cell {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #000000 !important;
    border-bottom: 1px solid #F3F4F6 !important;
    padding: 8px 12px !important;
}

.dash-table-container .dash-cell.focused {
    background-color: #F9FAFB !important;
    outline: none !important;
}

/* Numeric cells in mono */
.dash-table-container td[data-dash-column="signal_count"],
.dash-table-container td[data-dash-column="signals_24h"],
.dash-table-container td[data-dash-column="confidence"],
.dash-table-container td[data-dash-column="height_score"],
.dash-table-container td[data-dash-column="width_score"],
.dash-table-container td[data-dash-column="depth_score"],
.dash-table-container td[data-dash-column="composite_score"] {
    font-family: 'JetBrains Mono', monospace !important;
}

/* Row hover */
.dash-table-container tr:hover td {
    background-color: #F9FAFB !important;
}

/* ============================================================
   CHARTS
   ============================================================ */

/* Remove Plotly logo and mode bar excess */
.js-plotly-plot .plotly .modebar {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.js-plotly-plot:hover .plotly .modebar {
    opacity: 0.7;
}

/* ============================================================
   STATUS DOTS
   ============================================================ */

[id^="status-dot-"] {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

[id^="status-dot-"]:hover {
    opacity: 0.8;
}

/* ============================================================
   ALERT BANNER
   ============================================================ */

.alert-banner {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid #DC2626;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #991B1B;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-banner-warning {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #F59E0B;
    color: #92400E;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E7EB;
}

/* ============================================================
   UTILITY
   ============================================================ */

.flex-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background-color: #F9FAFB;
    border-radius: 8px;
    padding: 16px;
}

/* ============================================================
   SCROLLBAR (subtle)
   ============================================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}
