/* Custom styles for Timeline Scrubber, Handles, and Waveform (Tailwind complements this) */

/* Waveform bars */
.wave-bar {
  width: 3px;
  background: #3f3f46;
  border-radius: 2px;
  transition: height 0.2s ease;
}

/* Timeline selection window */
.timeline-selection-window {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  cursor: grab;
  z-index: 20;
}

.timeline-selection-window:active {
  cursor: grabbing;
}

/* Handles */
.timeline-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: #ffffff;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  touch-action: none;
}

.timeline-handle::after {
  content: '';
  width: 2px;
  height: 16px;
  background: #000000;
  border-radius: 1px;
}

.timeline-handle.handle-start {
  left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.timeline-handle.handle-end {
  right: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Playhead marker */
.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 40;
}

/* Modal animations */
.modal-enter {
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Spinner */
.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid #27272a;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
