/* =========================
   BUTTONS
   ========================= */

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: #1e4ed8;
  transform: translateY(-2px);
}

/* =========================
   NAVBAR LINKS
   ========================= */

.navbar a {
  color: var(--text-secondary);
  font-weight: 500;
}

.navbar a:hover {
  color: var(--primary);
}

/* =========================
   CARDS (STATS & FEATURES)
   ========================= */

.stat,
.feature {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover,
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* =========================
   HERO IMAGE PLACEHOLDER
   ========================= */

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
}
/* =========================
   VOICE INPUT (DARK MODE SAFE)
   ========================= */

.voice-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.voice-btn {
  flex: 1;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

/* START BUTTON */
.voice-start {
  background: #3b82f6; /* bright blue */
  color: #ffffff;
  border-color: #60a5fa;
}

.voice-start:hover {
  background: #2563eb;
}

/* STOP BUTTON */
.voice-stop {
  background: #ef4444; /* strong red */
  color: #ffffff;
  border-color: #f87171;
}

.voice-stop:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Recording indicator */
.voice-status {
  display: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #22c55e;
}

/* Dark mode reinforcement */
body.dark .voice-btn {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08),
              0 0 18px rgba(59,130,246,0.35);
}
/* =========================
   VOICE INPUT BUTTONS
   ========================= */

.voice-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.voice-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* Start button */
.voice-start {
  background: var(--accent);
  color: white;
}

.voice-start:hover {
  opacity: 0.9;
}

/* Stop button */
.voice-stop {
  background: #dc2626;
  color: white;
  opacity: 0.6;
}

/* Enabled stop button */
.voice-stop.active {
  opacity: 1;
}

/* 🎤 Recording indicator */
.voice-status {
  display: none;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: #22c55e;
}

/* 🌙 DARK MODE FIX */
body.dark .voice-start {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15),
              0 0 12px rgba(99,102,241,0.5);
}

body.dark .voice-stop.active {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15),
              0 0 12px rgba(239,68,68,0.6);
}
