/* WhisperScribe AI — shared custom styles (supplements Tailwind CDN) */

:root {
  color-scheme: light;
}

/* Smooth base */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Slim, branded scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  background-clip: content-box;
}

/* ---- Waveform (record page) ---- */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 96px;
}
.waveform .bar {
  width: 5px;
  border-radius: 9999px;
  background: linear-gradient(to top, #6366f1, #818cf8);
  height: 14px;
  transform-origin: center;
}
.waveform.is-recording .bar {
  animation: wave 1s ease-in-out infinite;
}
.waveform.is-paused .bar {
  animation-play-state: paused;
}
.waveform .bar:nth-child(odd) {
  animation-duration: 0.85s;
}
.waveform .bar:nth-child(3n) {
  animation-duration: 1.15s;
}
@keyframes wave {
  0%, 100% { height: 14px; opacity: 0.7; }
  50% { height: 72px; opacity: 1; }
}

/* Recording pulse ring */
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.35);
  animation: pulse-ring 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Upload zone drag highlight */
.dropzone.is-dragover {
  border-color: #6366f1;
  background-color: #eef2ff;
}

/* Fade-in for injected content */
.fade-in {
  animation: fadeIn 0.35s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active (playing) transcript segment */
.seg.is-playing {
  background-color: #eef2ff;
  box-shadow: inset 3px 0 0 #6366f1;
}

/* Recorder dotted waveform */
.recdots {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  overflow: hidden;
}
.recdots .recdot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 9999px;
  background: #cbd5e1;
}
.recdots.is-recording .recdot {
  background: #6366f1;
  animation: recdot 1s ease-in-out infinite;
}
@keyframes recdot {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(4); opacity: 1; }
}

/* Countdown number */
.countdown-num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #cbd5e1;
  transition: color 0.2s ease;
}
.countdown-num.is-active {
  color: #0f172a;
}

/* Modal tabs (pill style) */
.mtab {
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.15s ease;
}
.mtab:hover {
  color: #475569;
}
.mtab.is-active {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Nav active state */
.nav-link.is-active {
  background-color: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}
.nav-link.is-active svg {
  color: #6366f1;
}
