/* FILE: css/voice.css */
#voice-recording-ui {
  display: none;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-accent);
  animation: slideInUp 0.2s ease;
}

#voice-recording-ui:not(.hidden) {
  display: flex;
  flex-direction: column;
}

.voice-recording-top {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
}

.voice-rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #ffd2d2;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.8px;
}

.voice-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-danger);
  animation: pulse 1s ease-in-out infinite;
}

#voice-timer {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.voice-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 150px;
  height: 34px;
  padding: 0 var(--space-2);
}

.wave-bar {
  width: 5px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
  transform-origin: bottom center;
}

.wave-bar:nth-child(1) { animation: waveformBar1 1.1s ease-in-out infinite; }
.wave-bar:nth-child(2) { animation: waveformBar2 1s ease-in-out infinite; }
.wave-bar:nth-child(3) { animation: waveformBar3 1.3s ease-in-out infinite; }
.wave-bar:nth-child(4) { animation: waveformBar4 0.95s ease-in-out infinite; }
.wave-bar:nth-child(5) { animation: waveformBar5 1.2s ease-in-out infinite; }
.wave-bar:nth-child(6) { animation: waveformBar2 1.05s ease-in-out infinite; }
.wave-bar:nth-child(7) { animation: waveformBar1 1.4s ease-in-out infinite; }

.voice-control-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.voice-control-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#voice-stop-btn {
  background: rgba(255, 82, 82, 0.18);
  color: var(--accent-danger);
  border: 1px solid rgba(255, 82, 82, 0.3);
}

#voice-stop-btn:hover {
  background: rgba(255, 82, 82, 0.25);
}

#voice-cancel-btn {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

#voice-cancel-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.voice-live-transcript {
  margin-top: var(--space-3);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  min-height: 40px;
}

.voice-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.voice-progress-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.voice-progress-text .spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-secondary);
  animation: spin 0.8s linear infinite;
}

.voice-warning {
  color: var(--accent-warning);
}

.voice-transcript-original {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}
