/*
 * Figma "Admin Panel v1" design tokens, bridged into Bootstrap's --bs-* custom
 * properties (source values: .aidev/context/drive-now/figma-admin-panel.md).
 * --dn-* variables cover tokens with no matching --bs-* slot.
 *
 * Load LAST in every admin layout, after every vendor stylesheet
 * (bootstrap.min.css, bootstrap-extended.css, app.css, icons.css,
 * sidebar-layout.css, ...) so these values win the cascade.
 *
 * Full token -> slot mapping: backend/docs/design-tokens.md
 */
:root {
    /* Brand */
    --bs-primary: #bfce32;
    --bs-primary-rgb: 191, 206, 50;
    --dn-primary-fg: #12140d;
    --dn-primary-200: #e4eca3;

    /* Surfaces & text */
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-body-color: #0a0a0a;
    --bs-body-color-rgb: 10, 10, 10;
    --bs-secondary-color: #737373;
    --bs-secondary-color-rgb: 115, 115, 115;
    --bs-tertiary-bg: #f5f5f5;
    --bs-tertiary-bg-rgb: 245, 245, 245;
    --bs-success-text-emphasis: #15803d;

    /* Borders */
    --bs-border-color: #e5e5e5;
    --bs-border-color-translucent: #e5e5e5;
    --dn-border-strong: #d4d4d4;
    --dn-border-faint: #e8e9de;

    /* Radius — already equal to Bootstrap's own defaults; declared explicitly
       so a future Bootstrap upgrade can't silently drift the brand values. */
    --bs-border-radius: 0.375rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;

    /* Shadow */
    --bs-box-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);

    /* Sidebar surface — Bootstrap has no secondary-surface slot */
    --dn-sidebar-bg: #f8f8f5;
    --dn-sidebar-fg: #262626;
    --dn-sidebar-accent-fg: #171717;

    /* Status chip (dark bg + bright text) used by the Active / New enrollment
       badges — distinct from --bs-success, which stays at Bootstrap's default
       so the dashboard's own .text-bg-success AJAX toast (hardcoded white
       text, the only .text-bg-success usage this retheme reaches) keeps
       sufficient contrast against it. */
    --dn-badge-success-bg: #052e16;
    --dn-badge-success-fg: #22c55e;

    /* Super Admin people-management UI kit (Instructors/Supervising Driver/Students
       lists — GH #218). Only the values with no existing --bs- or --dn- slot. */
    --dn-primary-700: #7a7b1e;
    --dn-badge-warning-bg: #854d0e;
    --dn-badge-warning-fg: #eab308;
    --dn-progress-fill: #171717;

    /* Skills tests on the scheduling calendar (GH #641, no Figma): the same dark-chip pattern
       in purple, a hue no other drive state uses (green booked/available, amber requested, red
       no show, grey blocked/past). Tailwind purple/950 and purple/300. */
    --dn-badge-skills-bg: #3b0764;
    --dn-badge-skills-fg: #d8b4fe;

    /* Student profile (BE-BRIEF-033-006, design-spec §13.2): the auto-closed
       ride's Duration cell, and nothing else on the page. */
    --dn-destructive-fg: #dc2626;

    /* Designed paginator of the three list screens. Same Figma token as
       --dn-sidebar-accent-fg and --dn-progress-fill (intent/primary/primary
       #171717, the Button label colour measured in design-spec §7.5), kept as
       its own slot so the sidebar accent and the progress fill stay
       independently changeable. */

    /* School dashboard "Activity Overview" chart series (BE-BRIEF-035-002) —
       measured by pixel histogram, see .aidev/design/BRIEF-035/design-spec.md
       §4; NOT the same values as super-admin/dashboard.blade.php's own
       #00C951/#AD46FF, which belong to a different frame. */
    --dn-chart-new-users: #5bc660;
    --dn-chart-drives: #a14df6;

    /* "Busiest Hours by Weekday" heatmap (Oct 27: colour-code it): one blue hue from an empty
       hour, close to the card surface, to the busiest one. Read by the chart script. */
    --dn-heat-0: #eef4fc;
    --dn-heat-1: #b7d3f6;
    --dn-heat-2: #6da7ec;
    --dn-heat-3: #2a78d6;
    --dn-heat-4: #104281;

    /* School dashboard bottom row (BE-BRIEF-035-003) — table card/table/
       progress-bar/pagination values reuse --dn-primary-700 and
       --dn-progress-fill above verbatim (same shared Figma component,
       .aidev/design/BRIEF-033/design-spec.md §7.5/§13.4/§13.6/§7.6). */
    --dn-pagination-fg: #171717;
}
