/* Tip Banner fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WaveSurfer Region Crop Handle Styling */

/* Make region handles larger and more visible */
[data-part="region-handle"] {
  width: 14px !important;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%) !important;
  border: 2px solid #16a34a !important;
  border-radius: 4px !important;
  opacity: 0.9 !important;
  cursor: ew-resize !important;
  transition: all 0.15s ease !important;
}

/* Hover state */
[data-part="region-handle"]:hover {
  width: 18px !important;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6) !important;
  opacity: 1 !important;
}

/* Active/dragging state */
[data-part="region-handle"]:active {
  width: 20px !important;
  background: #16a34a !important;
  cursor: grabbing !important;
}

/* Mobile: larger touch targets */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  [data-part="region-handle"] {
    width: 20px !important;
    min-height: 100% !important;
  }

  [data-part="region-handle"]:hover,
  [data-part="region-handle"]:active {
    width: 24px !important;
  }
}

/* Region highlight on hover */
[data-part="region"]:hover {
  background-color: rgba(74, 222, 128, 0.3) !important;
}

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

::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Range Slider Track Styling for Dark Theme */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 8px;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: #374151; /* gray-700 */
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  margin-top: -4px;
  cursor: pointer;
}

/* Color-specific thumbs */
input[type="range"].accent-cyan-500::-webkit-slider-thumb { background: #06b6d4; }
input[type="range"].accent-purple-500::-webkit-slider-thumb { background: #8b5cf6; }
input[type="range"].accent-yellow-500::-webkit-slider-thumb { background: #eab308; }
input[type="range"].accent-blue-500::-webkit-slider-thumb { background: #3b82f6; }
input[type="range"].accent-orange-500::-webkit-slider-thumb { background: #f97316; }

/* Firefox */
input[type="range"]::-moz-range-track {
  background: #374151;
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

input[type="range"].accent-cyan-500::-moz-range-thumb { background: #06b6d4; }
input[type="range"].accent-purple-500::-moz-range-thumb { background: #8b5cf6; }
input[type="range"].accent-yellow-500::-moz-range-thumb { background: #eab308; }
input[type="range"].accent-blue-500::-moz-range-thumb { background: #3b82f6; }
input[type="range"].accent-orange-500::-moz-range-thumb { background: #f97316; }
