/* ═══════════════════════════════════════════════════════════════════
   TEMA — AÇO (original)

   Paleta cinza-azulada com Inter, que o sistema usou até o redesenho.
   Mantido como alternativa: para voltar a ele basta trocar uma linha
   de <link> no index.html.

   Todo token definido aqui precisa existir também em theme-daylight.css
   — a configuração do Tailwind e a folha styles.css contam com isso.
   ═══════════════════════════════════════════════════════════════════ */

:root {

    /* Superfícies */
    --hq-bg: #f5f7f8;
    --hq-surface: #ffffff;
    --hq-muted: #eef2f4;
    --hq-border: #d9e0e5;

    /* Texto */
    --hq-text: #1f2937;
    --hq-text-muted: #626976; /* 5,1:1 sobre --hq-bg; #6b7280 dava 4,5 */

    /* Acento interativo: foco, bordas ativas, barras de gráfico */
    --hq-brand: #5b6570;
    --hq-brand-strong: #4f5862;
    --hq-brand-soft: #a7b0b7;
    --hq-brand-rgb: 91 101 112;

    /* Sombras: no claro, a própria cor de marca; no escuro, preto. */
    --hq-shadow-rgb: 91 101 112;

    /* Preenchimento da ação primária */
    --hq-primary: #5b6570;
    --hq-primary-strong: #4f5862;
    --hq-on-brand: #ffffff;
    --hq-on-danger: #ffffff;
    --hq-on-primary: #ffffff;

    /* Estados */
    --hq-danger: #b91c1c;
    --hq-danger-strong: #991b1b;
    --hq-warn: #a16207;
    --hq-warn-strong: #f59e0b;
    --hq-warn-bg: #fffbeb;
    --hq-warn-soft: #fef3c7;
    --hq-warn-text: #92400e;
    --hq-clear: #157f3d;
    --hq-danger-bg: #fef2f2;
    --hq-danger-soft: #fee2e2;
    --hq-danger-border: #fca5a5;

    /* Series de grafico por tipo de operacao (azul x ambar: distinguiveis
       inclusive por quem nao separa vermelho de verde). */
    --hq-type-hangar: #3b5b85;
    --hq-type-fbo: #d97706;
    --hq-type-other: #a7b0b7;

    /* Escala em canais RGB — o Tailwind precisa deste formato para
       aceitar modificadores de opacidade (bg-steel-50/80 e afins). */
    --hq-surface-rgb: 255 255 255;
    --s50: 245 247 248;
    --s100: 238 242 244;
    --s200: 217 224 229;
    --s300: 167 176 183;
    --s400: 137 146 154;
    --s500: 91 101 112;
    --s600: 79 88 98;
    --s700: 63 71 79;
    --s800: 47 55 63;
    --s900: 31 41 55;

    /* Métricas */
    --hq-tabbar-h: 4.25rem;
}

/* ─── Escuro ─────────────────────────────────────────────────────────
   Dois usos, um bloco: o tema escuro escolhido pelo usuário
   (html[data-theme="dark"], ver index.html) e o totem (/display), que é
   sempre escuro — uma TV de parede lida a metros de distância.
   Mesmos tokens, valores invertidos: nada no CSS precisa saber qual é.
   ─────────────────────────────────────────────────────────────────── */

:root[data-theme="dark"],
body[data-view="display"] {
    --hq-bg: #121519;
    --hq-surface: #1a1f25;
    --hq-muted: #242a32;
    --hq-border: #333b45;

    --hq-text: #e9edf1;
    --hq-text-muted: #9aa5b1;

    /* Acento interativo: claro sobre o escuro, mesma lógica da tinta. */
    --hq-brand: #c9d2db;
    --hq-brand-strong: #e1e7ec;
    --hq-brand-soft: #5c6773;
    --hq-brand-rgb: 201 210 219;

    --hq-primary: #dfe5ea;
    --hq-primary-strong: #f1f4f6;
    --hq-on-brand: #121519;
    --hq-on-danger: #ffffff;
    --hq-on-primary: #121519;

    --hq-danger: #f0646c;
    --hq-danger-strong: #f98a90;
    --hq-warn: #e8b84a;
    --hq-warn-strong: #f5b84a;
    --hq-warn-bg: #2a2415;
    --hq-warn-soft: #3d3520;
    --hq-warn-text: #f5e5a8;
    --hq-clear: #4ade80;
    --hq-danger-bg: #2a1518;
    --hq-danger-soft: #3d1e22;
    --hq-danger-border: #8a3b46;

    --hq-type-hangar: #7fa6dc;
    --hq-type-fbo: #f0b35b;
    --hq-type-other: #6e757b;

    /* Sombra preta: a cor de marca, agora clara, viraria um brilho. */
    --hq-shadow-rgb: 0 0 0;

    --hq-surface-rgb: 26 31 37;
    --s50: 18 21 25;
    --s100: 26 31 37;
    --s200: 36 42 50;
    --s300: 51 59 69;
    --s400: 92 103 115;
    --s500: 154 165 177;
    --s600: 180 190 199;
    --s700: 201 210 219;
    --s800: 225 231 236;
    --s900: 233 237 241;
}
