.voiceInputContainer {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.voiceButton {
  position: relative;
  padding: 0.375rem;
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ced2d8; /* light-blue-3 */
  width: 32px;
  height: 32px;
}

.voiceButton:hover {
  color: #22d3ee; /* light-blue-2 */
  background-color: rgba(34, 211, 238, 0.1);
}

.voiceButton.recording {
  background: rgba(220, 38, 38, 0.2);
  color: #ef4444;
}

.voiceButton.recording:hover {
  background: rgba(220, 38, 38, 0.3);
}

.recordingIndicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ef4444;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.transcriptionContainer {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 1000;
}

.recordingLabel {
  font-size: 0.75rem;
  color: #ef4444;
  white-space: nowrap;
  background: rgba(239, 68, 68, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  animation: fadeInUp 0.3s ease-out;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.interimTranscript {
  font-size: 0.75rem;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.3);
  max-width: 200px;
  text-align: center;
  animation: fadeInUp 0.3s ease-out;
  font-style: italic;
  word-wrap: break-word;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 0.5rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Add a subtle glow effect when recording */
.voiceButton.recording::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 9999px;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.2), transparent 70%);
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
} 