/* ─────────────────────────────────────────────
   VetAI Dashboard — Premium Dark Theme
   ───────────────────────────────────────────── */

/* ─── Reset & Variables ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color system */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-card-hover: rgba(26, 35, 50, 0.9);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #06b6d4;     /* Cyan */
  --accent-primary-glow: rgba(6, 182, 212, 0.3);
  --accent-success: #10b981;     /* Emerald */
  --accent-warning: #f59e0b;     /* Amber */
  --accent-danger: #ef4444;      /* Red */
  --accent-purple: #8b5cf6;      /* Purple */
  --accent-pink: #ec4899;        /* Pink */

  --border-color: rgba(148, 163, 184, 0.1);
  --border-active: rgba(6, 182, 212, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(148, 163, 184, 0.08);
  --glass-blur: 20px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background gradient */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Header ─── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-emoji {
  font-size: 1.5rem;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-danger);
  transition: background 0.3s ease;
}

.status-dot.connected {
  background: var(--accent-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulse-dot 2s infinite;
}

.status-dot.connecting {
  background: var(--accent-warning);
  animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.divider {
  color: var(--border-color);
}

.provider-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

.latency-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.timestamp {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}

/* ─── Main Content ─── */
.app-main {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
}

/* ─── Config Panel ─── */
.config-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.config-panel.minimized {
  max-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  border: none;
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.config-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.config-group select,
.config-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.config-group select:focus,
.config-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.config-group select option {
  background: var(--bg-secondary);
}

/* ─── Record Button ─── */
.record-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) 0;
}

.record-btn {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1a2332, #111827);
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease;
}

.record-btn:hover {
  transform: scale(1.05);
}

.record-btn:active {
  transform: scale(0.95);
}

.record-btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.record-btn.recording .record-btn-inner {
  border-color: var(--accent-danger);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.mic-icon {
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.record-btn.recording .mic-icon {
  color: var(--accent-danger);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-danger);
  opacity: 0;
  pointer-events: none;
}

.record-btn.recording .pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}

.record-btn.recording .ring-2 {
  animation-delay: 0.5s;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.record-hint {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Dashboard Grid ─── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

/* ─── Panel Base ─── */
.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
  border-color: var(--border-active);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--glass-border);
}

.panel-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-body {
  padding: var(--space-md) var(--space-lg);
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.panel-footer {
  padding: var(--space-sm) var(--space-lg);
  border-top: 1px solid var(--glass-border);
}

.disclaimer {
  font-size: 0.7rem;
  color: var(--accent-warning);
  font-style: italic;
}

/* Custom scrollbar */
.panel-body::-webkit-scrollbar {
  width: 6px;
}

.panel-body::-webkit-scrollbar-track {
  background: transparent;
}

.panel-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ─── Transcript Panel ─── */
.transcript-panel {
  grid-column: 1;
  grid-row: 1 / 3;
}

.transcript-panel .panel-body {
  max-height: 500px;
}

.segment-count {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.transcript-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.transcript-segment {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.segment-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 45px;
}

.segment-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.segment-text.partial {
  color: var(--text-secondary);
  font-style: italic;
}

/* ─── Clinical Signals ─── */
.clinical-panel {
  grid-column: 2;
  grid-row: 1;
}

.signal-section {
  margin-bottom: var(--space-md);
}

.signal-section:last-child {
  margin-bottom: 0;
}

.signal-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.symptom-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 500;
  animation: tagPop 0.3s ease;
}

@keyframes tagPop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.symptom-tag.severe {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.symptom-tag.moderate {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.symptom-tag.mild {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.symptom-tag.unknown {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.confidence-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.confidence-badge.high { color: var(--accent-success); }
.confidence-badge.moderate { color: var(--accent-warning); }
.confidence-badge.low { color: var(--accent-danger); }

.vital-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-size: 0.8rem;
}

.vital-name { color: var(--text-secondary); }
.vital-value {
  font-family: var(--font-mono);
  font-weight: 500;
}
.vital-value.abnormal { color: var(--accent-danger); }

.patient-info-item {
  display: flex;
  gap: var(--space-md);
  font-size: 0.825rem;
}

.patient-info-item .label {
  color: var(--text-muted);
  min-width: 60px;
}

.patient-info-item .value {
  font-weight: 500;
}

.history-item {
  padding: var(--space-xs) 0;
  font-size: 0.825rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-purple);
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
}

/* ─── Diagnosis Panel ─── */
.diagnosis-panel {
  grid-column: 2;
  grid-row: 2;
}

.diagnosis-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  margin-bottom: var(--space-sm);
  border-left: 3px solid transparent;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.diagnosis-card.high { border-left-color: var(--accent-danger); }
.diagnosis-card.moderate { border-left-color: var(--accent-warning); }
.diagnosis-card.low { border-left-color: var(--accent-success); }

.diagnosis-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.diagnosis-probability {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.diagnosis-card.high .diagnosis-probability { color: var(--accent-danger); }
.diagnosis-card.moderate .diagnosis-probability { color: var(--accent-warning); }
.diagnosis-card.low .diagnosis-probability { color: var(--accent-success); }

.diagnosis-reasoning {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.rule-outs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-xs);
}

.rule-out-tag {
  font-size: 0.675rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ─── SOAP Note Panel ─── */
.soap-panel {
  margin-top: var(--space-lg);
  animation: fadeIn 0.4s ease;
}

.soap-panel .panel-header {
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.soap-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.soap-status-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.soap-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soap-action-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.08);
}

.soap-action-btn:active {
  transform: scale(0.96);
}

.soap-action-btn.copied {
  border-color: var(--accent-success);
  color: var(--accent-success);
  background: rgba(16, 185, 129, 0.1);
}

.soap-body {
  max-height: none;
  min-height: 100px;
}

/* Loading spinner */
.soap-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.soap-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* SOAP sections */
.soap-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.soap-section {
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.soap-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(6, 182, 212, 0.06);
  border-bottom: 1px solid var(--glass-border);
}

.soap-section-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.soap-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.soap-section-body {
  padding: var(--space-md);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* Footer */
.soap-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.soap-confidence {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Empty State ─── */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.empty-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .transcript-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .clinical-panel,
  .diagnosis-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: var(--space-sm) var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .header-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .app-main {
    padding: var(--space-md);
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .record-btn {
    width: 64px;
    height: 64px;
  }

  .soap-actions {
    flex-wrap: wrap;
  }
}

/* ─── Stop Recording Button ─── */
.stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  padding: 12px 28px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.stop-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.stop-btn:active {
  transform: translateY(0) scale(0.97);
}

.stop-btn svg {
  flex-shrink: 0;
}

/* ─── Progress Tracker ─── */
.progress-tracker {
  max-width: 520px;
  margin: var(--space-lg) auto var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.progress-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Spinner */
.progress-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.progress-tracker.done .progress-spinner {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-purple));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Steps */
.progress-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.progress-step.active {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-primary);
}

.progress-step.done {
  color: var(--accent-success);
}

.step-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-icon.pending {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.step-icon.active {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
  animation: pulseStep 1.2s ease infinite;
}

.step-icon.done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
  border: 1.5px solid var(--accent-success);
}

@keyframes pulseStep {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

/* Processing state for record section — hide mic, show stop */
.record-section.processing .record-btn {
  pointer-events: none;
  opacity: 0.4;
}

