/* Zenivo "Night Sky" design tokens: shared by index.html, obs_dock.html, flights3d.html (served as /static/tokens.css) */
:root {
    /* Zenivo brand palette (the named source colours; everything below points at these) */
    --brand-blue: #38bdf8;       /* Zenivo Blue: primary accent, logo ring */
    --brand-navy: #070a13;       /* Deep Navy: page background, icon tile */
    --brand-ink: #0d1322;        /* Ink: cards and raised surfaces */
    --brand-starlight: #f1f5f9;  /* Starlight: primary text, logo inner ring and star */
    --brand-aurora: #10b981;     /* Aurora: success / online */
    --brand-amber: #f59e0b;      /* Amber: warning */
    --brand-meteor: #ef4444;     /* Meteor: danger / error */

    /* Surfaces & text */
    --bg-primary: var(--brand-navy);
    --bg-card: var(--brand-ink);
    --bg-card-sub: #131d31;
    --border-color: #1e293b;
    --text-primary: var(--brand-starlight);
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    /* Accent & status */
    --accent: var(--brand-blue);
    --accent-hover: #0284c7;
    --accent-bg: rgba(56, 189, 248, 0.16);
    --success: var(--brand-aurora);
    --warning: var(--brand-amber);
    --danger: var(--brand-meteor);
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    /* Radii */
    --radius-md: 8px;
    --radius-sm: 6px;
    --radius-pill: 999px;
    /* Type */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-size-min: 12px;
    --font-size-body: 14px;
    --sidebar-w: 240px;

    /* Short aliases used by obs_dock.html */
    --bg: var(--bg-primary);
    --card: var(--bg-card);
    --input: var(--bg-card-sub);
    --hover: #1b2842;
    --border: var(--border-color);
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --green: var(--success);
    --amber: var(--warning);
    --red: var(--danger);
}

/* Red Vision: a real alternate palette (protects dark adaptation) instead of a CSS filter */
[data-theme="red"] {
    --bg-primary: #0a0000;
    --bg-card: #140404;
    --bg-card-sub: #1c0707;
    --border-color: #3a0e0e;
    --text-primary: #ff6b6b;
    --text-secondary: #cc4444;
    --text-muted: #8a2e2e;
    --accent: #ff4d4d;
    --accent-hover: #cc3333;
    --accent-bg: rgba(255, 77, 77, 0.16);
    --success: #d94a4a;
    --warning: #ff7a5c;
    --danger: #ff2d2d;
    --hover: #2a0a0a;
}
