/* =====================================================================
   ArcardsPay - Design Tokens
   Sistema de cores, tipografia e espaçamento. Preto / Branco / Azul.
   Tema escuro como padrão, com variante clara via [data-theme="light"].
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Cor de marca: azul elétrico único, usado com moderação --- */
  --brand-50:  #EEF3FF;
  --brand-400: #4C82F7;
  --brand-500: #2F5EE0;
  --brand-600: #2447B8;
  --brand-glow: rgba(47, 94, 224, 0.35);

  /* --- Status --- */
  --success-500: #1FAE6B;
  --success-bg:  rgba(31, 174, 107, 0.12);
  --warning-500: #E0A62F;
  --warning-bg:  rgba(224, 166, 47, 0.12);
  --danger-500:  #E0472F;
  --danger-bg:   rgba(224, 71, 47, 0.12);
  --info-500:    var(--brand-500);
  --info-bg:     rgba(47, 94, 224, 0.12);

  /* --- Tema escuro (padrão) --- */
  --bg-canvas:     #08090C;
  --bg-surface:    #0E1015;
  --bg-elevated:   #14171E;
  --bg-elevated-2: #1B1F29;
  --bg-hover:      #1F2430;
  --border-subtle: #20242E;
  --border-strong: #2C3140;
  --text-primary:  #F5F6F8;
  --text-secondary:#9CA3B5;
  --text-tertiary: #5C637A;
  --text-on-brand: #FFFFFF;

  /* --- Tipografia --- */
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* --- Escala de espaçamento --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- Raios e sombras --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-brand: 0 8px 28px var(--brand-glow);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 264px;
  --topbar-height: 68px;
}

/* --- Tema claro --- */
[data-theme="light"] {
  --bg-canvas:     #F5F6F9;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #FFFFFF;
  --bg-elevated-2: #F0F2F7;
  --bg-hover:      #EBEEF5;
  --border-subtle: #E4E7EF;
  --border-strong: #D3D8E4;
  --text-primary:  #12141A;
  --text-secondary:#5B6172;
  --text-tertiary: #8991A4;
  --text-on-brand: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(20,23,35,0.06);
  --shadow-md: 0 4px 16px rgba(20,23,35,0.08);
  --shadow-lg: 0 12px 40px rgba(20,23,35,0.12);
}
