/**
 * KeyPartners Design System — Design Tokens (SSOT)
 * Single Source of Truth para Cores, Tipografia, Espaçamentos e Sombras.
 * Governança AIDD • Zero Valores Hardcoded.
 */

:root {
  /* ==========================================================================
     1. PALETA DE CORES DA MARCA (KEYPARTNERS INDUSTRIAL)
     ========================================================================== */
  --color-brand-primary: #0284c7;
  --color-brand-primary-hover: #0369a1;
  --color-brand-primary-light: #e0f2fe;
  --color-brand-primary-subtle: #f0f9ff;
  --color-brand-primary-border: #bae6fd;
  
  --color-brand-dark: #0f172a;
  --color-brand-dark-hover: #1e293b;
  --color-brand-dark-light: #334155;
  --color-brand-accent: #0f172a;

  /* Escala Canônica Tailwind/Radix para Compatibilidade */
  --color-emerald-500: #10b981;
  --color-amber-500: #f59e0b;
  --color-rose-500: #f43f5e;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-500: #64748b;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  /* ==========================================================================
     2. SUPERFÍCIES, FUNDOS E BORDAS (NEUTROS)
     ========================================================================== */
  --color-bg-body: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-bg-surface-subtle: #f1f5f9;
  --color-bg-surface-muted: #e2e8f0;
  
  --color-border-subtle: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  --color-border-strong: #94a3b8;

  /* ==========================================================================
     3. TIPOGRAFIA & HIERARQUIA DE TEXTO
     ========================================================================== */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  --color-text-inverse: #ffffff;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.875rem; /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-base: 1.45;
  --line-height-relaxed: 1.6;

  /* ==========================================================================
     4. CORES SEMÂNTICAS & STATUS DE FEEDBACK
     ========================================================================== */
  /* Sucesso / Concluído / Bipado */
  --color-success: #059669;
  --color-success-hover: #047857;
  --color-success-bg: #ecfdf5;
  --color-success-border: #a7f3d0;
  --color-success-text: #065f46;

  /* Alerta / Atenção / Prazo Médio */
  --color-warning: #d97706;
  --color-warning-hover: #b45309;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;
  --color-warning-text: #92400e;

  /* Perigo / Erro / Crítico (<24h) / Vencido */
  --color-danger: #be123c;
  --color-danger-hover: #9f1239;
  --color-danger-bg: #fff1f2;
  --color-danger-border: #fecdd3;
  --color-danger-text: #881337;

  /* Informativo / Telemetria / Picking */
  --color-info: #0284c7;
  --color-info-hover: #0369a1;
  --color-info-bg: #f0f9ff;
  --color-info-border: #bae6fd;
  --color-info-text: #075985;

  /* ==========================================================================
     5. ESPAÇAMENTO MODULAR
     ========================================================================== */
  --space-0-5: 2px;
  --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;

  /* ==========================================================================
     6. BORDAS & ARREDONDAMENTOS
     ========================================================================== */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* ==========================================================================
     7. SOMBRAS ELEVAÇÃO & FOCO WCAG
     ========================================================================== */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px 0 rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 10px 20px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);

  --shadow-focus: 0 0 0 3px rgba(2, 132, 199, 0.25);
  --shadow-focus-danger: 0 0 0 3px rgba(190, 18, 60, 0.25);

  /* Transições Padrão */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
