/* CSS Variables - Definește toate culorile, dimensiunile și constantele */
:root {
  /* Colors - Primary */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #dbeafe;

  /* Colors - Secondary */
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  --secondary-lighter: #d1fae5;

  /* Colors - Accent */
  --accent-color: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  --accent-lighter: #fef3c7;

  /* Colors - Text */
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;

  /* Colors - Background */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --bg-dark: #0f172a;
  
  /* Legacy color variables for compatibility */
  --color-white: #ffffff;
  
  /* Colors - Gray Scale (for compatibility) */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Colors - Border */
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;

  /* Colors - Status */
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;

  /* Colors - Success Scale */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-200: #a7f3d0;
  --color-success-300: #6ee7b7;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;
  --color-success-800: #065f46;
  --color-success-900: #064e3b;

  /* Colors - Error Scale */
  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-200: #fecaca;
  --color-error-300: #fca5a5;
  --color-error-400: #f87171;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-error-800: #991b1b;
  --color-error-900: #7f1d1d;

  /* Colors - Warning Scale */
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-300: #fcd34d;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-warning-800: #92400e;
  --color-warning-900: #78350f;

  /* Colors - Info Scale */
  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-200: #bfdbfe;
  --color-info-300: #93c5fd;
  --color-info-400: #60a5fa;
  --color-info-500: #3b82f6;
  --color-info-600: #2563eb;
  --color-info-700: #1d4ed8;
  --color-info-800: #1e40af;
  --color-info-900: #1e3a8a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 50%,
    #f093fb 100%
  );

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --border-radius-sm: 6px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Font Sizes */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;

  /* 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.625;
  --leading-loose: 2;

  /* Z-Index Layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container Max Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* Dark Theme Variables */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f8fafc;
    --text-medium: #e2e8f0;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;

    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-lighter: #334155;
    
    /* Legacy color variables for dark mode */
    --color-white: #0f172a;

    --border-color: #475569;
    --border-light: #334155;
    --border-dark: #64748b;
    
    /* Gray Scale for Dark Mode */
    --color-gray-50: #0f172a;
    --color-gray-100: #1e293b;
    --color-gray-200: #334155;
    --color-gray-300: #475569;
    --color-gray-400: #64748b;
    --color-gray-500: #94a3b8;
    --color-gray-600: #cbd5e1;
    --color-gray-700: #e2e8f0;
    --color-gray-800: #f1f5f9;
    --color-gray-900: #f8fafc;

    /* Success Scale for Dark Mode */
    --color-success-50: #064e3b;
    --color-success-100: #065f46;
    --color-success-200: #047857;
    --color-success-300: #059669;
    --color-success-400: #10b981;
    --color-success-500: #34d399;
    --color-success-600: #6ee7b7;
    --color-success-700: #a7f3d0;
    --color-success-800: #d1fae5;
    --color-success-900: #ecfdf5;

    /* Error Scale for Dark Mode */
    --color-error-50: #7f1d1d;
    --color-error-100: #991b1b;
    --color-error-200: #b91c1c;
    --color-error-300: #dc2626;
    --color-error-400: #ef4444;
    --color-error-500: #f87171;
    --color-error-600: #fca5a5;
    --color-error-700: #fecaca;
    --color-error-800: #fee2e2;
    --color-error-900: #fef2f2;

    /* Warning Scale for Dark Mode */
    --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;

    /* Info Scale for Dark Mode */
    --color-info-50: #1e3a8a;
    --color-info-100: #1e40af;
    --color-info-200: #1d4ed8;
    --color-info-300: #2563eb;
    --color-info-400: #3b82f6;
    --color-info-500: #60a5fa;
    --color-info-600: #93c5fd;
    --color-info-700: #bfdbfe;
    --color-info-800: #dbeafe;
    --color-info-900: #eff6ff;
  }
}