/* Custom styles for Email Voice Builder */

/* Enhanced slider styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  background: #475569; /* slate-600 */
  height: 8px;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #3b82f6; /* blue-500 */
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid #1e293b; /* slate-800 */
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  background: #475569;
  height: 8px;
  border-radius: 4px;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  background: #3b82f6;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid #1e293b;
  cursor: pointer;
}

/* Enhanced radio button styles */
input[type="radio"] {
  accent-color: #3b82f6;
  transform: scale(1.2);
}

/* Smooth transitions */
.transition-colors {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Custom scrollbar for textareas */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #334155; /* slate-700 */
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: #64748b; /* slate-500 */
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #475569; /* slate-600 */
}

/* Gradient animation for progress bar */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.progress-gradient {
  background: linear-gradient(-45deg, #3b82f6, #6366f1, #8b5cf6, #3b82f6);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
}

/* Enhanced focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Improved button hover effects */
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* Card hover effects */
.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .text-4xl {
    font-size: 2rem;
  }
  
  .text-5xl {
    font-size: 2.5rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-before: always;
  }
}