/* Painel ABRALIPRO — tokens.
   Estrutura igual à do gestor (menu lateral e página em cartões arredondados, botões em pílula).
   Identidade ABRALIPRO: índigo profundo + lilás (Funnel Display nos títulos, Plus Jakarta Sans no texto). */

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Funnel Display', 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 28px; --r-pill: 999px;

  --ok: #2f9e74; --warn: #e8a93b; --err: #d64560;
}

/* Tema escuro (padrão): índigo quase preto, cartões índigo, destaque lilás */
:root, :root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #12111f;
  --card: #1c1b30;
  --surface: #232238;
  --muted: #2b2a44;
  --border: #3a3858;
  --border-soft: #302f4b;

  --text: #e6e3f5;
  --text-strong: #f6f4ff;
  --text-soft: #cdc8e6;
  --muted-fg: #a7a1c9;
  --subtle: #7e78a3;

  --primary: #b9a8f0;          /* lilás ABRALIPRO */
  --primary-hover: #cbbff5;
  --primary-fg: #1e1c3d;
  --primary-soft: rgba(185, 168, 240, .14);
  --primary-line: rgba(185, 168, 240, .4);
  --primary-text: #cbbff5;
  --accent: #6034d4;           /* violeta da marca */

  --ok-bg: rgba(47, 158, 116, .16); --ok-fg: #74d7ae;
  --warn-bg: rgba(232, 169, 59, .15); --warn-fg: #f3c56f;
  --err-bg: rgba(214, 69, 96, .16); --err-fg: #f39aab;
  --info-bg: rgba(185, 168, 240, .16); --info-fg: #cbbff5;
  --neutral-bg: rgba(167, 161, 201, .12); --neutral-fg: #b3aed2;

  --overlay: rgba(6, 5, 16, .72);
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

/* Tema claro: lavanda clara, cartões brancos, texto e destaque índigo/violeta */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #efeaff;
  --card: #ffffff;
  --surface: #f7f4ff;
  --muted: #ece6fd;
  --border: #dcd7ee;
  --border-soft: #e6e1f6;

  --text: #2c2a4a;
  --text-strong: #1e1c3d;
  --text-soft: #4a4868;
  --muted-fg: #5c5980;
  --subtle: #8a86ad;

  --primary: #6034d4;
  --primary-hover: #4e28b8;
  --primary-fg: #ffffff;
  --primary-soft: #ece6fd;
  --primary-line: rgba(96, 52, 212, .35);
  --primary-text: #4e2ab3;
  --accent: #26244a;

  --ok-bg: #e1f4ec; --ok-fg: #1f7a55;
  --warn-bg: #fdf0d3; --warn-fg: #8a5d00;
  --err-bg: #fbe4e9; --err-fg: #a5263f;
  --info-bg: #ece6fd; --info-fg: #4e2ab3;
  --neutral-bg: #eeebf8; --neutral-fg: #5c5980;

  --overlay: rgba(30, 28, 61, .45);
  --shadow: 0 16px 40px rgba(38, 36, 74, .16);
}
