/* Custom Styling for AI Voice Studio */

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0d14;
}
::-webkit-scrollbar-thumb {
  background: #1f293d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Engine Active Tab Styling */
.engine-tab.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* Preset buttons hover */
.preset-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: #f1f5f9;
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8b5cf6;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
  transition: transform 0.1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Toast animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
.toast-enter {
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-exit {
  animation: fadeOutRight 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Audio waveform canvas glow */
#waveformCanvas {
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.35));
}
