/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0a0c16;
  --bg-secondary: #0f1221;
  --bg-card: #131630;
  --bg-card-hover: #181c3a;
  --purple: #7c5cfc;
  --purple-light: #a78bfa;
  --purple-glow: rgba(124, 92, 252, 0.3);
  --green: #34d399;
  --green-glow: rgba(52, 211, 153, 0.3);
  --cyan: #22d3ee;
  --text-primary: #e8eaf0;
  --text-secondary: #8b8fa8;
  --text-dim: #555876;
  --border: rgba(124, 92, 252, 0.12);
  --border-hover: rgba(124, 92, 252, 0.3);
}

/* ===== LIGHT THEME ===== */
.light-theme {
  --bg-primary: #f0f2f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6fa;
  --purple: #6d28d9;
  --purple-light: #7c3aed;
  --purple-glow: rgba(109, 40, 217, 0.15);
  --green: #059669;
  --green-glow: rgba(5, 150, 105, 0.15);
  --cyan: #0891b2;
  --text-primary: #1a1d2e;
  --text-secondary: #5a5f7a;
  --text-dim: #9ca3af;
  --border: rgba(109, 40, 217, 0.12);
  --border-hover: rgba(109, 40, 217, 0.25);
}

.light-theme body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.light-theme .grid-bg {
  background-image:
    linear-gradient(rgba(109, 40, 217, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, 0.04) 1px, transparent 1px);
}

.light-theme .particle { opacity: 0.3; }

.light-theme .navbar {
  background: rgba(255, 255, 255, 0.8);
}
.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.light-theme .sidebar {
  background: var(--bg-secondary);
}
.light-theme .sidebar-overlay {
  background: rgba(0, 0, 0, 0.25);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}
.theme-toggle:hover {
  color: var(--purple);
  border-color: var(--border-hover);
}
.theme-toggle svg { width: 18px; height: 18px; }

/* Theme button in mobile sidebar */
.sidebar-theme-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
}
.sidebar-theme-btn:hover {
  color: var(--text-primary);
  background: rgba(124, 92, 252, 0.1);
}
.sidebar-theme-btn svg { width: 20px; height: 20px; }
