/* ==========================================================================
   tokens.css — variáveis de design do Studio Voz IA
   Tema escuro (padrão) + tema claro. Tudo o resto do CSS consome estas vars.
   ========================================================================== */

:root {
    color-scheme: dark;

    /* --- superfícies --- */
    --bg:            #0a0f1c;
    --bg-2:          #0d1424;
    --surface:       #121b2e;
    --surface-2:     #16213a;
    --surface-3:     #1b2743;
    --topbar-bg:     rgba(10, 15, 28, 0.82);

    /* --- texto --- */
    --text:          #e8eefb;
    --text-2:        #a7b4cc;
    --text-3:        #6f7f9c;

    /* --- linhas --- */
    --border:        #1e2b45;
    --border-2:      #2a3a58;

    /* --- marca --- */
    --accent:        #6366f1;
    --accent-2:      #818cf8;
    --accent-soft:   rgba(99, 102, 241, 0.16);
    --accent-ring:   rgba(99, 102, 241, 0.5);

    --video:         #e11d48;
    --video-2:       #fb7185;
    --video-soft:    rgba(225, 29, 72, 0.15);

    /* --- estados --- */
    --ok:            #22c55e;
    --ok-soft:       rgba(34, 197, 94, 0.14);
    --warn:          #f5b301;
    --warn-soft:     rgba(245, 179, 1, 0.14);
    --danger:        #ef4444;
    --danger-soft:   rgba(239, 68, 68, 0.14);

    /* --- sidebar (escura nos dois temas) --- */
    --sb-bg:         #070c16;
    --sb-bg-2:       #0b1220;
    --sb-border:     #16203a;
    --sb-text:       #e8eefb;
    --sb-text-2:     #93a1bb;
    --sb-text-3:     #64738f;
    --sb-hover:      rgba(255, 255, 255, 0.05);
    --sb-active:     rgba(255, 255, 255, 0.08);

    /* --- forma --- */
    --radius-xs: 6px;
    --radius-sm: 9px;
    --radius:    13px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    /* --- sombra --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:    0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.5);

    /* --- layout --- */
    --sidebar-w:   clamp(228px, 17vw, 272px);
    --topbar-h:    64px;
    --content-max: 1560px;
    --gutter:      clamp(16px, 2.2vw, 32px);

    /* --- tipografia --- */
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --fs-2xs: 0.68rem;
    --fs-xs:  0.75rem;
    --fs-sm:  0.8125rem;
    --fs-md:  0.9375rem;
    --fs-lg:  1.0625rem;
    --fs-xl:  clamp(1.15rem, 0.85rem + 0.8vw, 1.45rem);
    --fs-2xl: clamp(1.5rem, 1rem + 1.5vw, 2.1rem);

    /* --- movimento --- */
    --t-fast: 120ms ease;
    --t:      200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================ TEMA CLARO ============================ */
[data-theme="light"] {
    color-scheme: light;

    --bg:            #f4f6fb;
    --bg-2:          #eef1f8;
    --surface:       #ffffff;
    --surface-2:     #f7f9fd;
    --surface-3:     #eef2fa;
    --topbar-bg:     rgba(255, 255, 255, 0.85);

    --text:          #101a2e;
    --text-2:        #4a5871;
    --text-3:        #7d8aa3;

    --border:        #e0e6f1;
    --border-2:      #cdd7e8;

    --accent:        #4f46e5;
    --accent-2:      #6366f1;
    --accent-soft:   rgba(79, 70, 229, 0.1);
    --accent-ring:   rgba(79, 70, 229, 0.35);

    --video:         #d61f45;
    --video-2:       #e11d48;
    --video-soft:    rgba(214, 31, 69, 0.1);

    --ok:            #16a34a;
    --ok-soft:       rgba(22, 163, 74, 0.1);
    --warn:          #b45309;
    --warn-soft:     rgba(180, 83, 9, 0.1);
    --danger:        #dc2626;
    --danger-soft:   rgba(220, 38, 38, 0.09);

    /* sidebar continua escura, só um pouco mais suave */
    --sb-bg:         #131c2e;
    --sb-bg-2:       #0e1626;
    --sb-border:     #24314b;

    --shadow-sm: 0 1px 2px rgba(16, 26, 46, 0.06);
    --shadow:    0 8px 24px rgba(16, 26, 46, 0.08);
    --shadow-lg: 0 20px 55px rgba(16, 26, 46, 0.14);
}
