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

body {
  background: #0a0e1a;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* Chord button press */
@keyframes chordPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.chord-press {
  animation: chordPress 0.15s ease-out;
}

/* Playing pulse */
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  50% { box-shadow: 0 0 20px 6px rgba(251, 191, 36, 0.3); }
}

.playing-pulse {
  animation: playPulse 0.8s ease-in-out infinite;
}

/* Waveform bars */
@keyframes waveBar {
  0%, 100% { height: 4px; }
  50% { height: var(--wave-h, 20px); }
}

.wave-bar {
  animation: waveBar var(--wave-d, 0.6s) ease-in-out infinite;
  animation-delay: var(--wave-delay, 0s);
}

.wave-bar-idle {
  height: 4px !important;
  animation: none;
  transition: height 0.3s ease;
}

/* Floating note */
@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-8px) rotate(10deg); opacity: 0.6; }
}

.float-note {
  animation: floatNote 3s ease-in-out infinite;
}

/* Drag ghost */
.dragging {
  opacity: 0.5;
}

.drag-over {
  border-color: #fbbf24 !important;
}

/* Timeline chord enter */
@keyframes slideIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.chord-enter {
  animation: slideIn 0.2s ease-out;
}

/* Tooltip */
.tooltip-container:hover .tooltip-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tooltip-content {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Header gradient text */
.gradient-text {
  background: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Preset card hover */
.preset-card {
  transition: all 0.2s ease;
}
.preset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Loop toggle active */
.loop-active {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6) !important;
}

/* Strum toggle */
.strum-active {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

/* Instrument strip hover */
.inst-strip:hover {
  background: rgba(255,255,255,0.05);
}