/* css/core/variables.css - CSS Variables and Theme Definitions */
/* Adenai-themed CSS Variables and Theme Definitions */
:root {
  /* Light mode colors - Adenai Fantasy Theme */
  --bg-primary: #faf8f3;
  --bg-secondary: #f2efea;
  --bg-gradient: linear-gradient(135deg, #6b5b95 0%, #88ab8e 50%, #a8b99c 100%);
  --text-primary: #2c3e50;
  --text-secondary: #5d6d7e;
  --text-on-gradient: #ffffff;
  --border-color: #d5d8dc;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 8px rgba(107, 91, 149, 0.1);
  --card-hover-shadow: 0 4px 16px rgba(107, 91, 149, 0.15);
  --input-bg: #ffffff;
  --modal-bg: #ffffff;
  --modal-overlay: rgba(45, 62, 80, 0.6);
  --toast-success: #27ae60;
  --toast-error: #e74c3c;
  --toast-warning: #f39c12;
  --tab-hover-bg: rgba(107, 91, 149, 0.08);
  --loading-bg: #f8f9fa;

  /* Adenai accent colors */
  --accent-primary: #6b5b95;    /* Deep mystical purple */
  --accent-secondary: #88ab8e;  /* Sage green */
  --accent-tertiary: #a8b99c;   /* Light earth green */
  --accent-gold: #d4af37;       /* Fantasy gold */
  --accent-steel: #708090;      /* Steel blue-gray */

  /* Enhanced theme colors */
  --focus-border: #6b5b95;
  --focus-ring: rgba(107, 91, 149, 0.25);

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

  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-sm: 0.8rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.2rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 1.8rem;
  --font-size-huge: 2.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-round: 50%;
  --radius-pill: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Light mode scrollbar and focus states */
  --scrollbar-track: #f1f3f4;
  --scrollbar-thumb: #c1c8cd;
  --scrollbar-thumb-hover: var(--accent-primary);
  --focus-ring: rgba(107, 91, 149, 0.2);
  --focus-border: var(--accent-primary);
}

[data-theme="dark"] {
  /* Dark mode colors - Adenai Fantasy Theme */
  --bg-primary: #1a1625;          /* Deep mystical purple-black */
  --bg-secondary: #2d243a;        /* Darker purple-gray */
  --bg-gradient: linear-gradient(135deg, #4a3f5c 0%, #5d6b4f 50%, #6b7a5a 100%);
  --text-primary: #e8e3d8;        /* Warm off-white */
  --text-secondary: #b8a99a;      /* Muted beige */
  --text-on-gradient: #ffffff;
  --border-color: #3a3247;        /* Subtle purple-gray borders */
  --card-bg: #2d243a;             /* Consistent with secondary bg */
  --card-shadow: 0 2px 12px rgba(26, 22, 37, 0.6);
  --card-hover-shadow: 0 6px 20px rgba(26, 22, 37, 0.8);
  --input-bg: #3a3247;            /* Lighter input background */
  --modal-bg: #2d243a;            /* Consistent with cards */
  --modal-overlay: rgba(26, 22, 37, 0.85);
  --toast-success: #52b788;       /* Forest green */
  --toast-error: #e63946;         /* Deep red */
  --toast-warning: #f77f00;       /* Warm orange */
  --tab-hover-bg: rgba(232, 227, 216, 0.08);
  --loading-bg: #2d243a;

  /* Adenai dark accent colors */
  --accent-primary: #8b7aa8;      /* Lighter mystical purple */
  --accent-secondary: #9cb89f;    /* Lighter sage green */
  --accent-tertiary: #b5c5a8;     /* Lighter earth green */
  --accent-gold: #f4d03f;         /* Brighter fantasy gold */
  --accent-steel: #85929e;        /* Lighter steel blue-gray */

  /* Enhanced dark theme colors */
  --focus-border: #8b7aa8;
  --focus-ring: rgba(139, 122, 168, 0.3);

  /* Dark mode scrollbar and focus states */
  --scrollbar-track: #2d243a;
  --scrollbar-thumb: #4a3f5c;
  --scrollbar-thumb-hover: #5d4e73;
  --focus-border: var(--accent-primary);
  
  /* Improved status colors for dark mode */
  --status-pending-bg: #451a03;   /* Warmer brown */
  --status-pending-text: #fbbf24;
  --status-approved-bg: #052e16;  /* Deeper green */
  --status-approved-text: #34d399;
  --status-rejected-bg: #450a0a;  /* Deeper red */
  --status-rejected-text: #f87171;
  --status-untracked-bg: #1f2937; /* Consistent gray */
  --status-untracked-text: #9ca3af;
}