
/* Default Dark Theme */
:root {
  /* Colors */
  --clr-primary: #9F7FFF;
  --clr-accent-1: #A855F7;
  --clr-accent-2: #06B6D4;
  --clr-accent-3: #3B82F6;
  --clr-success: #10B981;
  --clr-warning: #F59E0B;
  --clr-amber: #F59E0B;
  --clr-danger: #EF4444;
  --clr-error: #EF4444;
  
  /* Text Colors */
  --clr-text-high: #F8FAFC;
  --clr-text-medium: #CBD5E1;
  --clr-text-muted: #94A3B8;
  --clr-text-low: #64748B;
  --clr-text-subtle: #64748B;
  
  /* Background Colors */
  --clr-bg-primary: #0A0B12;
  --clr-bg-secondary: #0F1019;
  --clr-surface: #12141F;
  --clr-surface-elevated: #161925;
  
  /* Border Colors */
  --clr-border: #1E293B;
  --clr-border-light: #334155;
  --clr-border-subtle: #0F172A;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.3);
  --shadow-glow-lg: 0 0 60px rgba(168, 85, 247, 0.4);
  
  /* Enhanced grid patterns */
  --grid-pattern: 
    linear-gradient(to right, rgba(168, 85, 247, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  --dot-pattern: radial-gradient(circle, rgba(168, 85, 247, 0.15) 1px, transparent 1px);

  /* Gradient definitions */
  --gradient-primary: linear-gradient(135deg, var(--clr-accent-1), var(--clr-accent-2));
  --gradient-secondary: linear-gradient(135deg, var(--clr-accent-2), var(--clr-accent-3));
  --gradient-surface: linear-gradient(135deg, var(--clr-surface), var(--clr-surface-elevated));
  --gradient-glow: radial-gradient(circle at center, rgba(168, 85, 247, 0.2), transparent 70%);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-modal: 1100;
  --z-tooltip: 1200;
}

/* Light Theme */
[data-theme="light"] {
  /* Colors - enhanced contrast and readability */
  --clr-primary: #4F46E5;
  --clr-accent-1: #6366F1;
  --clr-accent-2: #0284C7;
  --clr-accent-3: #2563EB;
  --clr-success: #059669;
  --clr-warning: #D97706;
  --clr-amber: #D97706;
  --clr-danger: #DC2626;
  --clr-error: #DC2626;
  
  /* Text Colors - stronger contrast for better readability */
  --clr-text-high: #0F172A;
  --clr-text-medium: #1E293B;
  --clr-text-muted: #475569;
  --clr-text-low: #64748B;
  --clr-text-subtle: #94A3B8;
  
  /* Background Colors - warmer tones with better contrast */
  --clr-bg-primary: #FEFEFE;
  --clr-bg-secondary: #F8FAFC;
  --clr-surface: #FFFFFF;
  --clr-surface-elevated: #F1F5F9;
  
  /* Border Colors - stronger definition */
  --clr-border: #CBD5E1;
  --clr-border-light: #94A3B8;
  --clr-border-subtle: #E2E8F0;
  
  /* Shadows - enhanced depth and visibility */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.25);
  --shadow-glow-lg: 0 0 40px rgba(79, 70, 229, 0.3);
  
  /* Enhanced grid patterns with better visibility */
  --grid-pattern: 
    linear-gradient(to right, rgba(79, 70, 229, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.1) 1px, transparent 1px);
  --dot-pattern: radial-gradient(circle, rgba(79, 70, 229, 0.15) 1px, transparent 1px);

  /* Gradient definitions with stronger colors */
  --gradient-primary: linear-gradient(135deg, #4F46E5, #0284C7);
  --gradient-secondary: linear-gradient(135deg, #0284C7, #2563EB);
  --gradient-surface: linear-gradient(135deg, #FFFFFF, #F1F5F9);
  --gradient-glow: radial-gradient(circle at center, rgba(79, 70, 229, 0.12), transparent 70%);
}

/* Theme Toggle Button Styles */
.theme-toggle {
  position: relative;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-full);
  width: 50px;
  height: 28px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--clr-primary);
  border-radius: 50%;
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .theme-toggle::before {
  transform: translateX(20px);
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--clr-text-medium);
  transition: all var(--transition-normal);
}

/* Sun and Moon Icons */
.theme-toggle .sun-icon {
  opacity: 0;
}

.theme-toggle .moon-icon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 0;
}
