/* Enhanced Design System & CSS Variables */
:root {
  /* Brand Colors */
  --primary-color: #ff6b6b;
  --primary-light: #ff8a8a;
  --primary-dark: #e55555;
  --secondary-color: #4ecdc4;
  --secondary-light: #70d7d0;
  --secondary-dark: #3bb5ae;
  --accent-color: #ffe66d;
  --accent-light: #ffeb88;
  --accent-dark: #e6cc5a;

  /* Status Colors */
  --success-color: #28a745;
  --success-light: #4caf50;
  --warning-color: #ffc107;
  --warning-light: #ffcd38;
  --error-color: #dc3545;
  --error-light: #e74c3c;
  --info-color: #17a2b8;
  --info-light: #20c997;

  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-inverse: #ffffff;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-glass: rgba(255, 255, 255, 0.95);

  /* Border & Divider Colors */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e0;
  --divider-color: #e2e8f0;

  /* Footer Colors */
  --text-footer: #ccc;
  --border-footer: rgba(255, 255, 255, 0.3);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

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

  /* Border Radius */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Font Size Scale */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */

  /* Line Height Scale */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Transitions & Animations */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;

  /* Z-Index Scale */
  --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;
}

/* Dark Mode Variables - Redesigned for better readability and aesthetics */
[data-theme="dark"] {
  /* Brand Colors (Dark Mode) - Warm gradient colors */
  --primary-color: #1e1b2e;     /* Deep purple-blue */
  --primary-light: #2a2550;     /* Medium purple */
  --primary-dark: #0f0e1a;      /* Darker purple */
  --secondary-color: #ff6b6b;   /* Keep original coral accent */
  --secondary-light: #ff8a8a;   /* Light coral */
  --secondary-dark: #e55555;    /* Dark coral */
  --accent-color: #4ecdc4;      /* Keep original teal */
  --accent-light: #70d7d0;      /* Light teal */
  --accent-dark: #3bb5ae;       /* Dark teal */

  /* Text Colors (Dark Mode) - High contrast */
  --text-primary: #ffffff;      /* Pure white for maximum contrast */
  --text-secondary: #e2e8f0;    /* Light gray */
  --text-muted: #94a3b8;        /* Medium gray */
  --text-light: #64748b;        /* Darker gray */
  --text-inverse: #0f172a;      /* Dark for light backgrounds */

  /* Background Colors (Dark Mode) - Rich and warm */
  --bg-primary: #0f0e1a;        /* Deep purple background */
  --bg-secondary: #1a1625;      /* Slightly lighter purple */
  --bg-tertiary: #2a2550;       /* Card background */
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --bg-glass: rgba(15, 14, 26, 0.95);

  /* Border & Divider Colors (Dark Mode) */
  --border-color: #3d3355;      /* Purple-gray border */
  --border-light: #2a2550;      /* Light border */
  --border-dark: #4a4063;       /* Dark border */
  --divider-color: #3d3355;     /* Divider color */

  /* Footer Colors (Dark Mode) */
  --text-footer: #e2e8f0;
  --border-footer: rgba(226, 232, 240, 0.2);
}

/* Also support .dark-mode class for compatibility */
body.dark-mode {
  /* Brand Colors (Dark Mode) - Warm gradient colors */
  --primary-color: #1e1b2e;     /* Deep purple-blue */
  --primary-light: #2a2550;     /* Medium purple */
  --primary-dark: #0f0e1a;      /* Darker purple */
  --secondary-color: #ff6b6b;   /* Keep original coral accent */
  --secondary-light: #ff8a8a;   /* Light coral */
  --secondary-dark: #e55555;    /* Dark coral */
  --accent-color: #4ecdc4;      /* Keep original teal */
  --accent-light: #70d7d0;      /* Light teal */
  --accent-dark: #3bb5ae;       /* Dark teal */

  /* Text Colors (Dark Mode) - High contrast */
  --text-primary: #ffffff;      /* Pure white for maximum contrast */
  --text-secondary: #e2e8f0;    /* Light gray */
  --text-muted: #94a3b8;        /* Medium gray */
  --text-light: #64748b;        /* Darker gray */
  --text-inverse: #0f172a;      /* Dark for light backgrounds */

  /* Background Colors (Dark Mode) - Rich and warm */
  --bg-primary: #0f0e1a;        /* Deep purple background */
  --bg-secondary: #1a1625;      /* Slightly lighter purple */
  --bg-tertiary: #2a2550;       /* Card background */
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --bg-glass: rgba(15, 14, 26, 0.95);

  /* Border & Divider Colors (Dark Mode) */
  --border-color: #3d3355;      /* Purple-gray border */
  --border-light: #2a2550;      /* Light border */
  --border-dark: #4a4063;       /* Dark border */
  --divider-color: #3d3355;     /* Divider color */

  /* Footer Colors (Dark Mode) */
  --text-footer: #e2e8f0;
  --border-footer: rgba(226, 232, 240, 0.2);
}