/* Webfix — dicteer-microfoon. Uniforme, rustige opnamebalk (zie wf-dictation.js).
   Verschijnt in plaats van de mic-knop tijdens het opnemen: rode puls + teller + live waveform + ✕/✓. */

.wf-dictation-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: #f2f3f5;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  color: #1c1d21;                 /* stuurt de waveform-kleur (canvas leest 'color') */
  vertical-align: middle;
  max-width: 100%;
  animation: wf-dictation-in .18s ease;
}

@keyframes wf-dictation-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: none; }
}

.wf-dictation-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  flex: 0 0 auto;
  animation: wf-dictation-pulse 1.2s ease-in-out infinite;
}

@keyframes wf-dictation-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.wf-dictation-time {
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  color: #6b7280;
  min-width: 34px;
  flex: 0 0 auto;
}

.wf-dictation-wave {
  display: block;
  height: 28px;
  flex: 1 1 auto;
  min-width: 80px;
}

.wf-dictation-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  transition: background-color .15s ease, transform .1s ease, color .15s ease;
}
.wf-dictation-btn:active { transform: scale(.92); }

.wf-dictation-cancel {
  background: transparent;
  color: #6b7280;
}
.wf-dictation-cancel:hover { background: rgba(0, 0, 0, .06); color: #1c1d21; }

.wf-dictation-confirm {
  background: #1c1d21;
  color: #fff;
}
.wf-dictation-confirm:hover { background: #000; }

.wf-dictation-bar.is-busy { padding-right: 14px; color: #6b7280; }

/* ── Donker ── */
@media (prefers-color-scheme: dark) {
  .wf-dictation-bar { background: #26282e; border-color: rgba(255, 255, 255, .12); color: #e8eaed; }
  .wf-dictation-time { color: #9aa0a6; }
  .wf-dictation-cancel { color: #9aa0a6; }
  .wf-dictation-cancel:hover { background: rgba(255, 255, 255, .08); color: #e8eaed; }
  .wf-dictation-confirm { background: #e8eaed; color: #1c1d21; }
  .wf-dictation-confirm:hover { background: #fff; }
}
:root[data-bs-theme="dark"] .wf-dictation-bar { background: #26282e; border-color: rgba(255, 255, 255, .12); color: #e8eaed; }
:root[data-bs-theme="dark"] .wf-dictation-time { color: #9aa0a6; }
:root[data-bs-theme="dark"] .wf-dictation-cancel { color: #9aa0a6; }
:root[data-bs-theme="dark"] .wf-dictation-cancel:hover { background: rgba(255, 255, 255, .08); color: #e8eaed; }
:root[data-bs-theme="dark"] .wf-dictation-confirm { background: #e8eaed; color: #1c1d21; }
:root[data-bs-theme="dark"] .wf-dictation-confirm:hover { background: #fff; }
:root[data-bs-theme="light"] .wf-dictation-bar { background: #f2f3f5; border-color: rgba(0, 0, 0, .08); color: #1c1d21; }
