/* Shared Design Tokens - Single source of truth for all Bridge apps
   Imported by: Bridge, Stream Control, Progress Dashboard
   Symlinked into each app's static/ directory */

:root {
    /* Backgrounds */
    --bg: #0a0e14;
    --bg-gradient: linear-gradient(180deg, #0d1219 0%, #0a0e14 100%);
    --surface: #131a24;
    --surface-raised: #1a2332;
    --surface-overlay: #1f2d3f;

    /* Borders */
    --border: #2a3a50;
    --border-bright: #3d5570;

    /* Text */
    --text: #f0f4f8;
    --text-secondary: #b8c8d8;
    --text-muted: #7a8ea0;

    /* Accent (blue) */
    --accent: #4a9eff;
    --accent-bright: #6eb4ff;
    --accent-glow: rgba(74, 158, 255, 0.2);
    --accent-deep: rgba(74, 158, 255, 0.08);

    /* Green */
    --green: #3dd68c;
    --green-bright: #5ae8a4;
    --green-glow: rgba(61, 214, 140, 0.15);

    /* Status colors */
    --yellow: #f0c030;
    --amber: #f0a030;
    --red: #ff5c5c;
    --red-bright: #ff7a7a;
    --red-glow: rgba(255, 92, 92, 0.15);
    --orange: #ff9940;
    --purple: #b388ff;

    /* Radii */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-accent: 0 0 20px rgba(74, 158, 255, 0.2);
    --shadow-glow-green: 0 0 16px rgba(61, 214, 140, 0.2);
    --shadow-glow-red: 0 0 16px rgba(255, 92, 92, 0.2);

    /* Safe areas */
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Focus-Visible (keyboard navigation) ────────────────── */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[role="switch"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── Responsive Container ───────────────────────────────── */

@media (min-width: 1024px) {
    .responsive-container {
        max-width: 720px;
        margin: 0 auto;
    }
}
