/* Apple Music-style volume slider - Override Tailwind defaults */
.daw-volume-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 6px !important;
  border-radius: 3px !important;
  background: #e5e5e5 !important; /* Gray background */
  outline: none !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  touch-action: manipulation !important;
  margin: 0 !important; /* Remove extra margins that cause spacing */
  padding: 0 !important; /* Remove padding that causes spacing */
  border: none !important; /* Remove any default borders */
  /* Width and sizing */
  min-width: 120px !important; /* Better width for mobile */
  max-width: 180px !important; /* Better max width for mobile */
  width: 100% !important; /* Ensure it fills container properly */
  flex: 1 1 auto !important; /* Work well with Tailwind flex-1 */
}

.daw-volume-slider:focus {
  outline: none !important;
  box-shadow: none !important;
}

.daw-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important; /* Smaller for better mobile experience */
  height: 20px !important;
  border-radius: 50% !important; /* Back to circle */
  background: #93c5fd !important; /* Blue 300 */
  border: none !important; /* Remove blue border */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  margin-top: -7px !important; /* Better centering to remove extra space */
  outline: none !important;
}

.daw-volume-slider::-webkit-slider-thumb:focus {
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.daw-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.daw-volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.daw-volume-slider::-webkit-slider-runnable-track {
  height: 6px !important;
  border-radius: 3px !important;
  background: #e5e5e5 !important;
  border: none !important;
}

/* WebKit volume fill (this creates the blue progress) */
.daw-volume-slider::-webkit-slider-track {
  height: 6px !important;
  border-radius: 3px !important;
  background: linear-gradient(to right, #60a5fa 0%, #60a5fa 100%) !important;
  border: none !important;
}

/* Firefox styles */
.daw-volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%; /* Back to circle */
  background: #93c5fd; /* Blue 300 */
  border: none; /* Remove blue border */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.daw-volume-slider::-moz-range-thumb:focus {
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.daw-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.daw-volume-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #e5e5e5;
  border: none;
}

.daw-volume-slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: #60a5fa; /* Blue for volume level */
  border: none;
}

/* Edge/IE styles */
.daw-volume-slider::-ms-thumb {
  width: 20px;
  height: 20px;
 /* Back to circle */
  background: #93c5fd; /* Blue 300 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.daw-volume-slider::-ms-track {
  height: 6px;
  border-radius: 3px;
  background: #e5e5e5;
  border: none;
  color: transparent;
}

.daw-volume-slider::-ms-fill-lower {
  background: #60a5fa; /* Blue for volume level */
  border-radius: 3px;
}

.daw-volume-slider::-ms-fill-upper {
  background: #e5e5e5;
  border-radius: 3px;
}

.daw-volume-slider::-ms-tooltip {
  display: none;
}
/* daw.css - Optional custom styles for DAW component */
#dawContainer {
  /* You can add custom box-shadow, border, or background here if needed */
  background: #374151; /* Tailwind gray-700 */
}

@media (min-width: 640px) {
  .daw-volume-slider {
    min-width: 140px;
    max-width: 220px;
  }
}

/* Fix mobile volume slider height */
@media (max-width: 640px) {
  .daw-volume-slider {
    height: 6px !important; /* Thinner on mobile */
  }
  
  .daw-volume-slider::-webkit-slider-thumb {
    width: 20px !important; /* Smaller thumb on mobile */
    height: 20px !important;
    margin-top: -7px !important; /* Better centering */
  }
}

.daw-mute-btn.bg-red-500 {
  border: 2px solid #b91c1c; /* Tailwind red-700 */
  min-height: 44px; /* Touch-friendly minimum */
  min-width: 44px;
}

.daw-solo-btn.bg-yellow-400 {
  border: 2px solid #f59e42; /* Tailwind yellow-400 */
  min-height: 44px; /* Touch-friendly minimum */
  min-width: 44px;
}

/* Mobile-specific DAW improvements */
@media (max-width: 1023px) {
  #dawStems {
    /* Better spacing for stem controls on mobile */
    gap: 1rem;
  }
  
  .daw-stem-row {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .daw-stem-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }
  
  .daw-stem-name {
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Make waveforms more compact on mobile */
  .daw-waveform {
    height: 60px !important; /* Smaller waveforms on mobile */
    margin: 0.5rem 0;
  }
}

@media (min-width: 1024px) {
  .daw-stem-row {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
  }
  
  .daw-waveform {
    height: 80px !important; /* Larger waveforms on desktop */
  }
}
