:root {
  --bg-deep: #0d0d1a;
  --bg-main: #1a1a2e;
  --bg-card: #232344;
  --bg-card-alt: #2a2a4a;
  --amber: #f5a623;
  --amber-glow: #f5a62366;
  --amber-dim: #c48a1b;
  --purple: #4a3f6b;
  --purple-light: #6b5fa0;
  --text-main: #f0eee8;
  --text-dim: #a09caf;
  --red-accent: #e74c3c;
  --green-accent: #2ecc71;
  --blue-accent: #3498db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* Equalizer animation */
@keyframes eq-bar-1 { 0%,100%{height:8px} 50%{height:28px} }
@keyframes eq-bar-2 { 0%,100%{height:20px} 50%{height:8px} }
@keyframes eq-bar-3 { 0%,100%{height:14px} 50%{height:32px} }
@keyframes eq-bar-4 { 0%,100%{height:24px} 50%{height:10px} }
@keyframes eq-bar-5 { 0%,100%{height:10px} 50%{height:26px} }

.eq-bar { display: inline-block; width: 4px; margin: 0 2px; border-radius: 2px; background: var(--amber); vertical-align: bottom; }
.eq-bar:nth-child(1) { animation: eq-bar-1 0.8s ease-in-out infinite; }
.eq-bar:nth-child(2) { animation: eq-bar-2 0.6s ease-in-out infinite 0.1s; }
.eq-bar:nth-child(3) { animation: eq-bar-3 0.7s ease-in-out infinite 0.2s; }
.eq-bar:nth-child(4) { animation: eq-bar-4 0.5s ease-in-out infinite 0.15s; }
.eq-bar:nth-child(5) { animation: eq-bar-5 0.9s ease-in-out infinite 0.05s; }

/* Vinyl spin */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vinyl-spin { animation: spin 2s linear infinite; }

/* Pulse beat */
@keyframes pulse-beat { 0%,100%{ transform: scale(1); opacity: 0.5; } 50%{ transform: scale(1.4); opacity: 1; } }
.pulse-beat { animation: pulse-beat 0.5s ease-in-out; }

/* Pedal button glow */
.pedal-btn {
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(245, 166, 35, 0);
}
.pedal-btn:hover {
  box-shadow: 0 0 30px var(--amber-glow), 0 0 60px rgba(245,166,35,0.15);
  transform: translateY(-2px);
}
.pedal-btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 15px var(--amber-glow);
}

/* Notebook paper */
.notebook-paper {
  background: linear-gradient(to bottom, transparent 29px, rgba(245,166,35,0.1) 29px, rgba(245,166,35,0.1) 30px, transparent 30px);
  background-size: 100% 30px;
  background-color: #1e1e36;
  border-left: 3px solid var(--red-accent);
  padding-left: 16px;
}

/* Glass card */
.glass-card {
  background: rgba(35, 35, 68, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,166,35,0.1);
  border-radius: 12px;
}

/* Fader slider */
input[type="range"].fader {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--bg-deep);
  border-radius: 4px;
  outline: none;
}
input[type="range"].fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 32px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
input[type="range"].fader::-moz-range-thumb {
  width: 20px;
  height: 32px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  border-radius: 4px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Tab styling */
.tab-active {
  border-bottom: 3px solid var(--amber);
  color: var(--amber);
}
.tab-inactive {
  border-bottom: 3px solid transparent;
  color: var(--text-dim);
}

/* Cheat sheet chord highlight */
.chord-highlight {
  color: var(--amber);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
}

/* Preset grid button */
.preset-btn {
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
}
.preset-btn:hover {
  border-color: var(--amber);
  transform: scale(1.03);
}

/* Loading shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-alt) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Fade in */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease-out; }

/* Beat indicators */
.beat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  transition: all 0.1s;
}
.beat-dot.active {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
  transform: scale(1.3);
}