/*! Mini DAW Studio Theme & Custom Audio Component Styles */

/* DAW Dark Console Stage */
.daw-stage {
  background: radial-gradient(circle at 50% 20%, #172033 0%, #0b0f19 75%);
  min-height: calc(100vh - 64px);
}

.daw-panel {
  background-color: #131b2e;
  border: 1px solid #24324d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.daw-card {
  background-color: #1a233a;
  border: 1px solid #2d3f61;
}

/* Fader & Slider Custom Styling */
input[type=range].daw-slider-pan {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #0f172a;
  border-radius: 9999px;
  border: 1px solid #334155;
  outline: none;
  cursor: pointer;
}

input[type=range].daw-slider-pan::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type=range].daw-slider-pan::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  cursor: pointer;
}

input[type=range].daw-slider-pan::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Vertical Faders (Desktop Console) */
.vertical-fader-container {
  display: flex;
  position: relative;
  width: 32px;
  height: 180px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

input[type=range].fader-vertical {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 8px;
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: 4px;
  outline: none;
  transform: rotate(-90deg);
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

input[type=range].fader-vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 48%, #475569 52%, #1e293b 100%);
  border: 1px solid #334155;
  box-shadow: 0 2px 5px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.8);
  cursor: pointer;
}

input[type=range].fader-vertical::-moz-range-thumb {
  width: 34px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 48%, #475569 52%, #1e293b 100%);
  border: 1px solid #334155;
  box-shadow: 0 2px 5px rgba(0,0,0,0.8);
  cursor: pointer;
}

/* Master Fader Cap Custom Accent */
input[type=range].fader-master::-webkit-slider-thumb {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 48%, #0369a1 52%, #082f49 100%);
  border: 1px solid #7dd3fc;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.5), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Horizontal Fader (Mobile & Compact View) */
input[type=range].fader-horizontal {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

input[type=range].fader-horizontal::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 48%, #475569 52%, #1e293b 100%);
  border: 1px solid #334155;
  box-shadow: 0 2px 5px rgba(0,0,0,0.8);
  cursor: pointer;
}

input[type=range].fader-horizontal::-moz-range-thumb {
  width: 18px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 48%, #475569 52%, #1e293b 100%);
  border: 1px solid #334155;
  box-shadow: 0 2px 5px rgba(0,0,0,0.8);
  cursor: pointer;
}

/* Channel Strip Specific Styling */
.channel-strip {
  width: 60px;
  min-width: 60px;
  height: fit-content;
  background: linear-gradient(180deg, #182238 0%, #101726 100%);
  border: 1px solid #283754;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.channel-strip:hover {
  border-color: #3b5078;
}

.master-strip {
  width: 150px;
  min-width: 150px;
  height: fit-content;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #0284c7;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

/* Mute & Solo Glowing Buttons */
.btn-solo {
  background-color: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-solo:hover {
  background-color: #334155;
  color: #f1f5f9;
}

.btn-solo.active {
  background-color: #f59e0b !important;
  color: #000000 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
}

.btn-mute {
  background-color: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-mute:hover {
  background-color: #334155;
  color: #f1f5f9;
}

.btn-mute.active {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6) !important;
}

/* Transport Buttons */
.btn-transport {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  transition: all 0.15s ease;
}

.btn-transport:hover {
  background-color: #334155;
  color: #ffffff;
  border-color: #64748b;
}

.btn-transport:active {
  transform: translateY(1px);
}

.btn-transport-play.active {
  background-color: #10b981 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
}

.btn-transport-loop.active {
  background-color: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5) !important;
}

/* Timecode Display (Digital 7-segment look) */
.timecode-display {
  background-color: #050811;
  color: #38bdf8;
  border: 1px solid #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Timeline & Scrubber */
.timeline-scrubber {
  position: relative;
  height: 28px;
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(14, 165, 233, 0.25);
  pointer-events: none;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  pointer-events: none;
  transform: translateX(-50%);
}

/* Waveform Lane Styling */
.waveform-lane {
  background-color: #101726;
  border: 1px solid #1e293b;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Meter Canvas */
.meter-canvas {
  background-color: #050811;
  border-radius: 3px;
  border: 1px solid #1e293b;
}

/* Modals */
.modal-backdrop {
  background-color: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease-out;
}

.modal-content {
  background: linear-gradient(180deg, #1a233a 0%, #111827 100%);
  border: 1px solid #334155;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.1);
  animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.98); }
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Responsive Audio Viewport Toggles */
@media (max-width: 1023px) {
  .console-strip-container {
    overflow-x: auto;
    padding-bottom: 12px;
  }
}
