/* ===== Voice Input UI ===== */

.voice-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mic-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  background: #fff;
  color: var(--text2);
  border: 2px solid var(--border);
  white-space: nowrap;
  position: relative;
}

.mic-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.mic-btn.recording {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  animation: micPulse 1s infinite;
}

/* HD voice badge */
.mic-btn .hd-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.mic-btn.recording .hd-badge {
  background: #fff;
  color: var(--red);
}

.mic-icon {
  font-size: 20px;
}

.mic-status {
  font-size: 12px;
}

/* Recording indicator */
.rec-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(192,57,43,0.08);
  border-radius: 20px;
  font-size: 12px;
  color: var(--red);
  animation: fadeIn 0.3s;
}

.rec-indicator.show {
  display: flex;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: micPulse 1s infinite;
}

/* Live preview area */
.live-preview {
  padding: 8px 12px;
  background: #fefefe;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text2);
  min-height: 28px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.6;
  margin-bottom: 8px;
  display: none;
}

.live-preview.show {
  display: block;
}

.live-preview .interim {
  color: #999;
  font-style: italic;
}

.live-preview .final-text {
  color: var(--text);
}

/* Filter badge */
.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  background: rgba(41,128,185,0.08);
  color: var(--blue);
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Voice toast */
.voice-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 9999;
  color: #fff;
  animation: fadeIn 0.2s;
}

.voice-toast.error { background: var(--red); }
.voice-toast.info { background: var(--blue); }
.voice-toast.success { background: var(--green); }
