/* Theme System - Complete working version */
:root {
  --border-radius-lg: 2rem;
  --border-radius: 1rem;
}

/* Cyber Theme (Default) */
[data-theme="cyber"] {
  --primary: #00d9ff;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --dark: #0f0f23;
  --darker: #050510;
  --light: #ffffff;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary: #ffffff;
  --secondary: #6b7280;
  --accent: #9ca3af;
  --dark: #111827;
  --darker: #030712;
  --light: #ffffff;
}

/* Minimal Theme */
[data-theme="minimal"] {
  --primary: #374151;
  --secondary: #6b7280;
  --accent: #9ca3af;
  --dark: #f9fafb;
  --darker: #ffffff;
  --light: #111827;
  --glass: rgba(0, 0, 0, 0.02);
}

/* Forest Theme */
[data-theme="forest"] {
  --primary: #10b981;
  --secondary: #065f46;
  --accent: #fbbf24;
  --dark: #064e3b;
  --darker: #022c22;
  --light: #ffffff;
}

/* Sunset Theme */
[data-theme="sunset"] {
  --primary: #f59e0b;
  --secondary: #dc2626;
  --accent: #ec4899;
  --dark: #7c2d12;
  --darker: #451a03;
  --light: #ffffff;
}

/* Ocean Theme */
[data-theme="ocean"] {
  --primary: #0ea5e9;
  --secondary: #0284c7;
  --accent: #06b6d4;
  --dark: #0c4a6e;
  --darker: #082f49;
  --light: #ffffff;
}

/* Space Theme */
[data-theme="space"] {
  --primary: #8b5cf6;
  --secondary: #6366f1;
  --accent: #ec4899;
  --dark: #312e81;
  --darker: #1e1b4b;
  --light: #ffffff;
}

/* Matrix Theme */
[data-theme="matrix"] {
  --primary: #00ff41;
  --secondary: #00cc33;
  --accent: #00ff88;
  --dark: #001100;
  --darker: #000800;
  --light: #ffffff;
}

/* Neon Theme */
[data-theme="neon"] {
  --primary: #ff0080;
  --secondary: #00ffff;
  --accent: #ffff00;
  --dark: #0a0a0a;
  --darker: #000000;
  --light: #ffffff;
}

/* Vintage Theme */
[data-theme="vintage"] {
  --primary: #d4a574;
  --secondary: #8b6914;
  --accent: #b8860b;
  --dark: #3c2415;
  --darker: #2d1b0e;
  --light: #ffffff;
}

/* Apply dynamic backgrounds */
[data-theme="cyber"] {
  background: linear-gradient(135deg, #050510 0%, #0f0f23 50%, #1a1a2e 100%) !important;
}

[data-theme="dark"] {
  background: linear-gradient(135deg, #030712 0%, #111827 50%, #1f2937 100%) !important;
}

[data-theme="minimal"] {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%) !important;
}

[data-theme="forest"] {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%) !important;
}

[data-theme="sunset"] {
  background: linear-gradient(135deg, #451a03 0%, #7c2d12 50%, #ea580c 100%) !important;
}

[data-theme="ocean"] {
  background: linear-gradient(135deg, #082f49 0%, #0c4a6e 50%, #075985 100%) !important;
}

[data-theme="space"] {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
}

[data-theme="matrix"] {
  background: linear-gradient(135deg, #000800 0%, #001100 50%, #002200 100%) !important;
}

[data-theme="neon"] {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a001a 100%) !important;
}

[data-theme="vintage"] {
  background: linear-gradient(135deg, #2d1b0e 0%, #3c2415 50%, #4a2c17 100%) !important;
}

/* Theme Cards */
.theme-card {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  transform: scale(1.05);
}

.theme-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.theme-preview {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px currentColor);
}

.theme-name {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Theme-specific card styling */
.theme-card[data-theme="cyber"] {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(124, 58, 237, 0.1));
}

.theme-card[data-theme="dark"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(107, 114, 128, 0.1));
}

.theme-card[data-theme="minimal"] {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.1), rgba(107, 114, 128, 0.1));
}

.theme-card[data-theme="forest"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 95, 70, 0.1));
}

.theme-card[data-theme="sunset"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(220, 38, 38, 0.1));
}

.theme-card[data-theme="ocean"] {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.1));
}

.theme-card[data-theme="space"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
}

.theme-card[data-theme="matrix"] {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 204, 51, 0.1));
}

.theme-card[data-theme="neon"] {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(0, 255, 255, 0.1));
}

.theme-card[data-theme="vintage"] {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(139, 105, 20, 0.1));
}