/* ── 录音按钮样式 ── */
#record-btn {
  position: absolute;
  right: 52px;  /* 在发送按钮左边 (10px + 34px + 8px间隙) */
  bottom: 7px;  /* 与发送按钮对齐 */
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  transition: color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}

#record-btn:hover:not(:disabled) {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.08);
}

#record-btn:active:not(:disabled) {
  transform: scale(0.92);
}

#record-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 录音中状态 */
#record-btn.recording {
  color: #ef4444;
  animation: recordPulse 1.5s ease-in-out infinite;
}

#record-btn.recording:hover {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

@keyframes recordPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 转写中状态 */
#record-btn.processing {
  color: var(--accent);
}

#record-btn.processing .record-icon svg {
  animation: spin 1s linear infinite;
}

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

.record-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
