@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f3f6fa;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.6;
}

/* Smooth Splash Screen Overlay */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #ffffff 0%, #eef3f9 65%, #e2e8f0 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-pulse-ring {
  animation: splashPulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.28);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 18px rgba(37, 99, 235, 0);
  }
}

/* Voice card active highlight */
.voice-card {
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.voice-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.voice-card.is-selected {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.045);
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.18);
}

/* Dropzone active state */
.srt-dropzone.is-dragover {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.06);
}

/* Toast entrance animation */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.studio-toast-item {
  animation: toastSlideIn 0.24s ease-out;
}

/* Audio equalizer bars for playing preview */
.eq-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 99px;
  background: currentColor;
  animation: eqBounce 0.75s ease-in-out infinite alternate;
}

.eq-bar:nth-child(2) {
  animation-delay: 0.2s;
  height: 16px;
}

.eq-bar:nth-child(3) {
  animation-delay: 0.4s;
  height: 10px;
}

@keyframes eqBounce {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}
