/* ─── KRISHIRENT VOICE CONTROL ─── */
/* This file is ONLY for voice UI — never edit existing style.css */

.voice-fab {
  position: absolute;
  bottom: 90px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #F5A623;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.5);
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.voice-fab:active {
  transform: scale(0.93);
}

.voice-fab svg {
  width: 26px;
  height: 26px;
  fill: #0A1F0E;
}

/* Listening state — pulsing gold ring */
.voice-fab.listening {
  animation: voicePulse 1s infinite;
  background: #ff6b35;
}

@keyframes voicePulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,166,35,0.7); }
  70%  { box-shadow: 0 0 0 16px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}

/* Voice result toast */
.voice-toast {
  position: absolute;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,31,14,0.97);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 260px;
  max-width: 320px;
  z-index: 9998;
  display: none;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.voice-toast.visible {
  display: flex;
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.voice-toast-status {
  font-size: 11px;
  color: #F5A623;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.voice-toast-text {
  font-size: 14px;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
}

.voice-toast-action {
  font-size: 12px;
  color: #F5A623;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
}

/* Waveform bars */
.voice-waveform {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
  margin-top: 4px;
}

.voice-waveform.active {
  display: flex;
}

.voice-waveform span {
  display: inline-block;
  width: 3px;
  background: #F5A623;
  border-radius: 2px;
  animation: waveBar 0.8s ease-in-out infinite;
}

.voice-waveform span:nth-child(1) { height: 6px;  animation-delay: 0.0s; }
.voice-waveform span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.voice-waveform span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.voice-waveform span:nth-child(4) { height: 14px; animation-delay: 0.3s; }
.voice-waveform span:nth-child(5) { height: 8px;  animation-delay: 0.4s; }
.voice-waveform span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.voice-waveform span:nth-child(7) { height: 10px; animation-delay: 0.6s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50%       { transform: scaleY(1.2); opacity: 1; }
}

/* Language indicator pill */
.voice-lang-pill {
  position: absolute;
  bottom: 156px;
  right: 16px;
  background: rgba(10,31,14,0.9);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  color: #F5A623;
  font-family: 'DM Sans', sans-serif;
  z-index: 9997;
  display: none;
}

.voice-lang-pill.visible {
  display: block;
}
