/* Audio Waveform Styles */
#musicWaveformContainer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

#musicWaveformContainer:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#musicWaveformCanvas {
  display: block;
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

#musicWaveformCanvas:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-color: #4A90E2;
}

#musicWaveformCanvas:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#musicPreview {
  border-radius: 4px;
  background: #fff;
  border: 1px solid #dee2e6;
}

#musicMetadata {
  display: flex;
  align-items: center;
  gap: 8px;
}

#musicMetadata strong {
  color: #495057;
}

/* Play/Pause button */
#musicPlayPauseBtn {
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#musicPlayPauseBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  filter: brightness(1.1);
}

#musicPlayPauseBtn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Animation for waveform container appearance */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#musicWaveformContainer {
  animation: slideDown 0.3s ease;
}

/* Processing spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#musicProcessingOverlay {
  backdrop-filter: blur(2px);
}

/* Trim Mode Styling */
#musicTrimModeBtn {
  transition: all 0.2s ease;
  font-weight: 500;
}

#musicTrimModeBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

#trimHandleLeft,
#trimHandleRight {
  transition: background 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#trimHandleLeft:hover,
#trimHandleRight:hover {
  background: #20c997 !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

#trimHandleLeft:active,
#trimHandleRight:active {
  background: #1ea776 !important;
}

#musicTrimControls {
  animation: slideDown 0.2s ease;
}

#musicTrimControls button {
  transition: all 0.2s ease;
}

#musicTrimControls button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

#musicTrimControls button:active {
  transform: translateY(0);
}
