@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #f7f5f0;
  --card-bg: #ffffff;
  --primary-red: #e1492b;
  --primary-red-hover: #c93a1e;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --border-dark: #1a1a1a;
  --active-highlight: #fef2f2;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.serif-font {
  font-family: 'Newsreader', Georgia, serif;
}

.mono-font {
  font-family: 'JetBrains Mono', monospace;
}

/* Modern clean card shadow and subtle borders */
.shadow-brutal {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shadow-brutal-lg {
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
}

.shadow-brutal-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.border-black-thick {
  border: 1px solid #e6e2d8;
}

/* Active transcript segment */
.active-transcript-line {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(225, 73, 43, 0.1);
}

/* Selected Character Range Highlight (Matching Blue Selection Style) */
mark,
.char-selected,
mark.char-selected,
span.char-selected {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 2px !important;
  padding: 1px 2px !important;
  display: inline !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

::selection {
  background-color: #2563eb;
  color: #ffffff;
}

::-moz-selection {
  background-color: #2563eb;
  color: #ffffff;
}

.active-transcript-line .time-tag {
  color: #e1492b !important;
  font-weight: 700 !important;
}

.transcript-row {
  transition: all 0.15s ease;
  border-bottom: 1px solid #f0eee6;
}

.transcript-row:hover {
  background-color: #faf9f6;
}

.transcript-row:last-child {
  border-bottom: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f7f5f0;
}
::-webkit-scrollbar-thumb {
  background: #d1cdc4;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b3ad9f;
}

.search-highlight {
  background-color: #fed7aa;
  color: #9a3412;
  padding: 0 3px;
  border-radius: 2px;
}

/* Sound wave equalizer loader */
@keyframes soundWave {
  0%, 100% { height: 8px; transform: scaleY(0.4); }
  50% { height: 32px; transform: scaleY(1); }
}

.wave-bar {
  display: inline-block;
  width: 4px;
  height: 28px;
  background-color: #e1492b;
  border-radius: 9999px;
  animation: soundWave 1s ease-in-out infinite;
}
.wave-bar:nth-child(1) { animation-delay: 0.0s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }
.wave-bar:nth-child(6) { animation-delay: 0.75s; }
.wave-bar:nth-child(7) { animation-delay: 0.9s; }

/* Pulse ripple effect */
@keyframes rippleGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 73, 43, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(225, 73, 43, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 73, 43, 0); }
}

.ripple-btn {
  animation: rippleGlow 2s infinite ease-in-out;
}

/* Modern Pulse Loader */
@keyframes modernPulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

.modern-pulse-dot {
  animation: modernPulse 1.4s ease-in-out infinite;
}

/* Animated Upload Icon (No Background Box) */
@keyframes iconFloatBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 2px 4px rgba(225, 73, 43, 0.2));
  }
  50% {
    transform: translateY(-8px) scale(1.08);
    filter: drop-shadow(0 8px 12px rgba(225, 73, 43, 0.35));
  }
}

.animate-upload-icon {
  display: inline-block;
  animation: iconFloatBounce 2.2s ease-in-out infinite;
}

/* Ensure disabled buttons strictly show not-allowed cursor */
button:disabled,
button[disabled],
.btn-disabled {
  cursor: not-allowed !important;
  pointer-events: auto !important;
}

/* Round Loader Spinner */
@keyframes roundSpinPulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-round-spin {
  animation: roundSpinPulse 0.9s linear infinite;
}


