* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* Hide scrollbar for presets */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sound wave animation */
@keyframes wave {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.5);
  }
}

.animate-wave {
  animation: wave 0.8s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Custom slider styles */
.slider-custom {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(to right, #1f2937, #374151);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-custom::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.6);
}

.slider-custom::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.slider-custom::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-custom::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.6);
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Glassmorphism cards */
.backdrop-blur-xl {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Gradient text */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .slider-custom::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }
  
  .slider-custom::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
}

/* Ping animation for sarcasm mode indicator */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}