/* RTR.WebApp — token layer. Single source of truth for color/space/radius.
   Components read var(--rtr-web-*); they never hardcode hex. Keep these values
   in sync with Theming/RtrWebTheme.cs (MudBlazor needs them in C#). */
:root {
    /* Accent */
    --rtr-web-accent:            #007cba;
    --rtr-web-accent-hover:      #005c8b;
    --rtr-web-accent-tint:       rgba(0, 124, 186, 0.10);
    --rtr-web-accent-hover-tint: rgba(0, 124, 186, 0.06);
    --rtr-web-on-accent:         #ffffff;   /* text/icons on an accent-filled surface */

    /* Categorical series colors (charts + their legends). A FIXED order: assign
       by slot, keyed off a stable entity id — never re-ordered per chart and
       never by rank, so filtering a series set can't repaint the survivors.
       Validated as a set (lightness band, chroma floor, CVD separation).
       Caveat: only slots 1-3 clear the all-pairs separation floors that
       scatter/bubble charts are held to; past three, colors are no longer
       reliably tellable apart on their own, so anything using more must carry a
       label or legend beside the color (identity never rests on hue alone).
       Each slot ships the ink to print ON it — the fills range from #eda100 to
       #4a3aa7, so no single text color stays legible across them. */
    --rtr-web-cat-1: #2a78d6;  --rtr-web-cat-1-ink: #0b0b0b;
    --rtr-web-cat-2: #eb6834;  --rtr-web-cat-2-ink: #0b0b0b;
    --rtr-web-cat-3: #1baf7a;  --rtr-web-cat-3-ink: #0b0b0b;
    --rtr-web-cat-4: #eda100;  --rtr-web-cat-4-ink: #0b0b0b;
    --rtr-web-cat-5: #e87ba4;  --rtr-web-cat-5-ink: #0b0b0b;
    --rtr-web-cat-6: #008300;  --rtr-web-cat-6-ink: #ffffff;
    --rtr-web-cat-7: #4a3aa7;  --rtr-web-cat-7-ink: #ffffff;
    --rtr-web-cat-8: #e34948;  --rtr-web-cat-8-ink: #0b0b0b;

    /* Surfaces */
    --rtr-web-bg:            #f5f6f8;
    --rtr-web-surface:       #ffffff;
    --rtr-web-surface-muted: #f8fafc;
    --rtr-web-pager-bg:      #fafbfc;

    /* Text */
    --rtr-web-text:        #0f172a;
    --rtr-web-text-muted:  #475569;
    --rtr-web-text-subtle: #64748b;
    --rtr-web-text-faint:  #94a3b8;

    /* Borders */
    --rtr-web-border:      rgba(15, 23, 42, 0.08);
    --rtr-web-border-soft: rgba(15, 23, 42, 0.06);

    /* Radius / shadow */
    --rtr-web-radius:    10px;
    --rtr-web-radius-lg: 12px;
    --rtr-web-radius-xl: 24px;
    --rtr-web-shadow:    0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);

    /* Apple-like frosted glass (splash + future glass surfaces).
       Darkened for legibility over photographic backgrounds. */
    --rtr-web-glass-bg:        rgba(14, 16, 21, 0.68);
    --rtr-web-glass-blur:      26px;
    --rtr-web-glass-border:    rgba(255, 255, 255, 0.12);
    --rtr-web-glass-highlight: rgba(255, 255, 255, 0.10);
    --rtr-web-glass-text:      #f4f6f9;
    --rtr-web-glass-text-soft: rgba(244, 246, 249, 0.68);
    --rtr-web-scrim:           rgba(0, 0, 0, 0.50);

    /* Type */
    --rtr-web-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* App shell layout */
    --rtr-web-header-h:  60px;
    --rtr-web-sidebar-w: 264px;
    --rtr-web-rail-w:    76px;

    /* App shell — charcoal sidebar palette (dark chrome over the light content
       area). The sidebar reads ONLY these; the rest of the app keeps the light
       tokens above. Accent/warn/danger are lightened for legibility on charcoal. */
    --rtr-web-sidebar-bg:          #21262e;
    --rtr-web-sidebar-border:      rgba(255, 255, 255, 0.09);
    --rtr-web-sidebar-scrollbar:   rgba(255, 255, 255, 0.16);
    --rtr-web-sidebar-text:        #eef1f5;   /* primary · title · hover text */
    --rtr-web-sidebar-text-muted:  #b6bdc9;   /* nav item resting */
    --rtr-web-sidebar-text-subtle: #8d96a3;   /* sub-items · account sub */
    --rtr-web-sidebar-text-faint:  #6c7480;   /* footer · chevron */
    --rtr-web-sidebar-icon:        #9aa3b1;   /* resting icon */
    --rtr-web-sidebar-hover:       rgba(255, 255, 255, 0.07);
    --rtr-web-sidebar-accent:      #46a7e0;   /* lightened accent · active edge + focus */
    --rtr-web-sidebar-active-bg:   rgba(70, 167, 224, 0.16);
    --rtr-web-sidebar-active-text: #6fb9e8;
    --rtr-web-sidebar-warn:        #f4c267;
    --rtr-web-sidebar-warn-tint:   rgba(245, 191, 95, 0.12);
    --rtr-web-sidebar-warn-border: rgba(245, 191, 95, 0.30);
    --rtr-web-sidebar-danger:      #ff7c7f;
    --rtr-web-sidebar-danger-tint: rgba(255, 95, 99, 0.16);

    /* Status: warning / non-production banner */
    --rtr-web-warn:        #b45309;
    --rtr-web-warn-tint:   rgba(245, 158, 11, 0.14);
    --rtr-web-warn-border: rgba(245, 158, 11, 0.32);

    /* Status: danger / destructive (e.g. sign-out hover) */
    --rtr-web-danger:      #d13438;
    --rtr-web-danger-tint: rgba(209, 52, 56, 0.10);

    /* Status: success / active */
    --rtr-web-success:      #1f7a3d;
    --rtr-web-success-tint: rgba(31, 122, 61, 0.12);

    /* Neutral status (inactive) */
    --rtr-web-neutral-tint: rgba(15, 23, 42, 0.06);

    /* Switch / toggle off-state track */
    --rtr-web-switch-off: #cbd5e1;

    /* Default page content padding (RtrWebPage) */
    --rtr-web-content-pad: 14px;
}
