/**
 * Design tokens (SCREEN_SPECIFICATIONS.md — Global Design).
 * Every module's CSS must reference these variables instead of
 * hard-coding colors, radii, or spacing.
 */
:root {
    /* Palette */
    --color-primary: #0f1b3d;       /* Dark Navy */
    --color-primary-hover: #16234f;
    --color-secondary: #ffffff;     /* White */
    --color-accent: #2563eb;        /* Blue */
    --color-accent-hover: #1d4ed8;
    --color-success: #16a34a;       /* Green */
    --color-success-bg: #dcfce7;
    --color-warning: #f59e0b;       /* Orange */
    --color-warning-bg: #fef3c7;
    --color-danger: #dc2626;        /* Red */
    --color-danger-bg: #fee2e2;
    --color-info: #0ea5e9;          /* Light Blue */
    --color-info-bg: #e0f2fe;

    /* Neutrals */
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-surface-subtle: #f8fafc;  /* table header bg, row hover, skeleton mid-stop */
    --color-neutral-bg: #eef1f6;      /* neutral status badge bg, skeleton start/end stops */
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    /* Radius */
    --radius-card: 16px;
    --radius-btn: 10px;
    --radius-input: 10px;
    --radius-modal: 16px;

    /* Header navigation (two-row topbar). Spec navy tones; everything else
       (accent #2563eb, muted text, surface, border, bg) reuses the tokens above. */
    --color-nav-top: #14213d;       /* Row 1 — branding & utilities */
    --color-nav-main: #1b2d4b;      /* Row 2 — main navigation */
    --nav-accent-text: var(--color-accent);
    --nav-top-height: 60px;
    --nav-main-height: 46px;
    --header-height: calc(var(--nav-top-height) + var(--nav-main-height));

    /* Shadow */
    --shadow-card: 0 1px 3px rgba(15, 27, 61, 0.08);
    --shadow-elevated: 0 8px 24px rgba(15, 27, 61, 0.12);
}

@media (max-width: 991.98px) {
    :root {
        --header-height: var(--nav-top-height);   /* row 2 is replaced by the drawer */
    }
}
