/**
 * Design System - Variáveis CSS
 * Sistema de tokens para tema dark
 * Emissor DAEMS - Modernização Visual
 */

/* ============================================
   TEMA DARK (Único)
   ============================================ */
:root {
  /* Cores Primárias - Gradiente Azul para Teal */
  --color-primary-50: #164e63;
  --color-primary-100: #155e75;
  --color-primary-200: #0e7490;
  --color-primary-300: #0891b2;
  --color-primary-400: #06b6d4;
  --color-primary-500: #22d3ee;
  --color-primary-600: #67e8f9;
  --color-primary-700: #a5f3fc;
  --color-primary-800: #cffafe;
  --color-primary-900: #ecfeff;

  /* Cores de Sucesso - Verde */
  --color-success-50: #14532d;
  --color-success-100: #166534;
  --color-success-200: #15803d;
  --color-success-300: #16a34a;
  --color-success-400: #22c55e;
  --color-success-500: #4ade80;
  --color-success-600: #86efac;
  --color-success-700: #bbf7d0;
  --color-success-800: #dcfce7;
  --color-success-900: #f0fdf4;
  
  /* Cores de Erro - Vermelho */
  --color-danger-50: #7f1d1d;
  --color-danger-100: #991b1b;
  --color-danger-200: #b91c1c;
  --color-danger-300: #dc2626;
  --color-danger-400: #ef4444;
  --color-danger-500: #f87171;
  --color-danger-600: #fca5a5;
  --color-danger-700: #fecaca;
  --color-danger-800: #fee2e2;
  --color-danger-900: #fef2f2;
  
  /* Cores de Aviso - Amarelo */
  --color-warning-50: #78350f;
  --color-warning-100: #92400e;
  --color-warning-200: #b45309;
  --color-warning-300: #d97706;
  --color-warning-400: #f59e0b;
  --color-warning-500: #fbbf24;
  --color-warning-600: #fcd34d;
  --color-warning-700: #fde68a;
  --color-warning-800: #fef3c7;
  --color-warning-900: #fffbeb;
  
  /* Cores de Informação - Ciano */
  --color-info-50: #164e63;
  --color-info-100: #155e75;
  --color-info-200: #0e7490;
  --color-info-300: #0891b2;
  --color-info-400: #06b6d4;
  --color-info-500: #22d3ee;
  --color-info-600: #67e8f9;
  --color-info-700: #a5f3fc;
  --color-info-800: #cffafe;
  --color-info-900: #ecfeff;
  
  /* Escala de Cinza - Dark */
  --color-gray-50: #111827;
  --color-gray-100: #1f2937;
  --color-gray-200: #374151;
  --color-gray-300: #4b5563;
  --color-gray-400: #6b7280;
  --color-gray-500: #9ca3af;
  --color-gray-600: #d1d5db;
  --color-gray-700: #e5e7eb;
  --color-gray-800: #f3f4f6;
  --color-gray-900: #f9fafb;
  
  /* Cores Semânticas - Tema Dark */
  --color-background: #0f172a;
  --color-background-secondary: #1e293b;
  --color-background-tertiary: #334155;
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #0f172a;
  
  --color-border: #334155;
  --color-border-hover: #475569;
  --color-border-focus: var(--color-primary-500);
  
  --color-divider: #334155;
  
  /* Overlay */
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-backdrop: rgba(0, 0, 0, 0.5);
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
:root {
  /* Font Families */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Courier New", monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
}

/* ============================================
   ESPAÇAMENTO
   ============================================ */
:root {
  --spacing-0: 0;
  --spacing-1: 0.25rem;    /* 4px */
  --spacing-2: 0.5rem;     /* 8px */
  --spacing-3: 0.75rem;    /* 12px */
  --spacing-4: 1rem;       /* 16px */
  --spacing-5: 1.25rem;    /* 20px */
  --spacing-6: 1.5rem;     /* 24px */
  --spacing-7: 1.75rem;    /* 28px */
  --spacing-8: 2rem;       /* 32px */
  --spacing-10: 2.5rem;    /* 40px */
  --spacing-12: 3rem;      /* 48px */
  --spacing-16: 4rem;      /* 64px */
  --spacing-20: 5rem;      /* 80px */
  --spacing-24: 6rem;      /* 96px */
}

/* ============================================
   SOMBRAS
   ============================================ */
:root {
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}

/* ============================================
   BORDAS
   ============================================ */
:root {
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-base: 0.375rem; /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
}

/* ============================================
   TRANSIÇÕES E ANIMAÇÕES
   ============================================ */
:root {
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Durações */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
}

/* ============================================
   Z-INDEX
   ============================================ */
:root {
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ============================================
   GRADIENTES
   ============================================ */
:root {
  --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary-500) 0%, var(--color-secondary-700) 100%);
  --gradient-success: linear-gradient(135deg, var(--color-success-200) 0%, var(--color-success-500) 100%);
  --gradient-danger: linear-gradient(135deg, var(--color-danger-500) 0%, var(--color-danger-700) 100%);
  --gradient-warning: linear-gradient(135deg, var(--color-warning-400) 0%, var(--color-warning-600) 100%);
  --gradient-info: linear-gradient(135deg, var(--color-info-500) 0%, var(--color-info-700) 100%);
  
  /* Gradientes de fundo sutis */
  --gradient-bg-light: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-secondary) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* ============================================
   BREAKPOINTS (para referência em JS)
   ============================================ */
:root {
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;
}

/* ============================================
   ÍCONES (tamanhos consistentes)
   ============================================ */
:root {
  --icon-xs: 0.875rem;  /* 14px */
  --icon-sm: 1rem;      /* 16px */
  --icon-base: 1.25rem; /* 20px */
  --icon-md: 1.5rem;    /* 24px */
  --icon-lg: 2rem;      /* 32px */
  --icon-xl: 2.5rem;    /* 40px */
  --icon-2xl: 3rem;     /* 48px */
  --icon-3xl: 4rem;     /* 64px */
}

/* ============================================
   UTILIDADES
   ============================================ */
:root {
  --max-width-xs: 320px;
  --max-width-sm: 384px;
  --max-width-md: 448px;
  --max-width-lg: 512px;
  --max-width-xl: 576px;
  --max-width-2xl: 672px;
  --max-width-3xl: 768px;
  --max-width-4xl: 896px;
  --max-width-5xl: 1024px;
  --max-width-6xl: 1152px;
  --max-width-7xl: 1280px;
  --max-width-full: 100%;
  
  /* Container padrão com padding */
  --container-padding: var(--spacing-4);
  --container-padding-lg: var(--spacing-8);
}

/* ============================================
   BLUR (para glassmorphism)
   ============================================ */
:root {
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);
}
