/* Custom Design Tweaks & Glassmorphic Audio Elements */

@layer utilities {
  /* Hide scrollbars */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Custom Range Input Styling */
input[type=range] {
  -webkit-appearance: none;
  background: #020617;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #06b6d4;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  border: 2px solid #080c14;
  transition: transform 0.1s ease, background-color 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #22d3ee;
}

/* Step fine-tuning button style */
.step-btn {
  padding: 0.35rem 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 0.5rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #94a3b8;
  transition: all 0.15s ease;
  user-select: none;
}

.step-btn:hover {
  background-color: rgba(30, 41, 59, 0.9);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.step-btn:active {
  transform: scale(0.94);
}

/* Waveform selection buttons */
.wave-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  border-radius: 0.75rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.wave-btn:hover {
  background-color: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

.wave-btn.active {
  background-color: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #22d3ee;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* Mode tab buttons */
.mode-tab-btn {
  padding: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: #94a3b8;
  transition: all 0.2s;
  user-select: none;
}

.mode-tab-btn:hover {
  color: #f8fafc;
}

.mode-tab-btn.active {
  background-color: #06b6d4;
  color: #020617;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* Brainwave preset buttons */
.brainwave-btn {
  padding: 0.4rem 0.2rem;
  text-align: center;
  border-radius: 0.5rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #94a3b8;
  transition: all 0.15s ease;
  user-select: none;
}

.brainwave-btn:hover {
  border-color: #a855f7;
  color: #e9d5ff;
}

.brainwave-btn.active {
  background-color: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #c084fc;
}

/* Visualizer mode buttons */
.vis-mode-btn.active {
  background-color: #1e293b;
  color: #38bdf8;
}

/* Solfeggio card style */
.solf-card {
  display: flex;
  flex-col;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  border-radius: 0.75rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.5);
  transition: all 0.2s ease;
  user-select: none;
}

.solf-card .freq {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #22d3ee;
}

.solf-card .desc {
  font-size: 0.625rem;
  color: #64748b;
}

.solf-card:hover {
  background-color: rgba(30, 41, 59, 0.9);
  border-color: #06b6d4;
  transform: translateY(-1px);
}

.solf-card:active {
  transform: translateY(0);
}

/* Ambient noise button style */
.noise-btn {
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.15s;
}

.noise-btn.active {
  background-color: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #c084fc;
}

/* Timer Option Button */
.timer-opt-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s;
}

.timer-opt-btn.active {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: #020617;
}

/* Pulse animation for active audio playing indicator */
@keyframes audioPulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.playing-pulse {
  animation: audioPulse 2s infinite;
}