/* ==========================================================================
   Design Tokens e Variaveis Globais
   Baseado na identidade visual PrevAB_ML
   ========================================================================== */

:root {
  /* Cores no Modo Escuro (Padrao) */
  --bg-color: #0b0f19;
  --bg-secondary: #0f1626;
  --card-bg: #151e2e;
  --card-bg-hover: #1b263b;
  --card-border: #223147;
  --card-border-hover: #334763;
  --header-bg: rgba(11, 15, 25, 0.88);
  --drawer-bg: #111827;
  --overlay-bg: rgba(3, 7, 18, 0.75);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --primary-subtle: rgba(16, 185, 129, 0.12);

  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --accent-subtle: rgba(14, 165, 233, 0.12);

  --tag-bg: rgba(34, 49, 71, 0.6);
  --tag-border: #223147;

  /* Tipografia */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Escala Fluida com clamp */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.77rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.625rem, 1.45rem + 1vw, 2.125rem);
  --text-3xl: clamp(2.125rem, 1.85rem + 1.5vw, 2.875rem);
  --text-hero: clamp(2.35rem, 2rem + 2vw, 3.5rem);

  /* Geometria e Raios de Borda */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Espacamentos */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --container-max: 1180px;
  --header-height: 72px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.18);

  /* Transicoes */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Claro Adaptativo */
html.light {
  --bg-color: #f8fafc;
  --bg-secondary: #f1f5f9;
  --card-bg: #ffffff;
  --card-bg-hover: #f8fafc;
  --card-border: #e2e8f0;
  --card-border-hover: #cbd5e1;
  --header-bg: rgba(248, 250, 252, 0.9);
  --drawer-bg: #ffffff;
  --overlay-bg: rgba(15, 23, 42, 0.45);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary: #059669;
  --primary-hover: #047857;
  --primary-glow: rgba(5, 150, 105, 0.2);
  --primary-subtle: rgba(5, 150, 105, 0.1);

  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.2);
  --accent-subtle: rgba(2, 132, 199, 0.1);

  --tag-bg: #f1f5f9;
  --tag-border: #e2e8f0;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.12);
}
