/* Global Voice Settings Modal Styles */

/* Smooth slider styles for better mobile experience */
.slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.slider::-webkit-slider-track {
  background: #d1d5db; /* Gray-300 */
  height: 4px;
  border-radius: 2px;
}

.dark .slider::-webkit-slider-track {
  background: #4b5563; /* Gray-600 */
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #4f46e5; /* Indigo-600 */
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-webkit-slider-thumb:hover {
  background: #4338ca; /* Indigo-700 */
}

.slider::-moz-range-track {
  background: #d1d5db; /* Gray-300 */
  height: 4px;
  border-radius: 2px;
  border: none;
}

.dark .slider::-moz-range-track {
  background: #4b5563; /* Gray-600 */
}

.slider::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #4f46e5; /* Indigo-600 */
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-moz-range-thumb:hover {
  background: #4338ca; /* Indigo-700 */
}

/* Focus states for accessibility */
.slider:focus {
  outline: none;
}

.slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Modal backdrop animation */
.modal-backdrop {
  backdrop-filter: blur(2px);
  transition: opacity 0.2s ease-in-out;
}

/* Global controls layout enhancement */
.global-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Voice settings button hover state */
.voice-settings-btn:hover svg {
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
}

/* Better mobile touch targets */
@media (max-width: 768px) {
  .global-controls button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .slider {
    height: 6px; /* Larger touch target */
  }
  
  .slider::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
  }
  
  .slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
  }
}
