/* Streaming Voice Recorder Styles */

.streaming-voice-recorder {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recorder-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recorder-button {
  font-size: 20px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recorder-button:hover {
  transform: scale(1.1);
}

.mic-button {
  color: #00ff00;
}

.stop-button {
  color: #ff4444;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.settings-button {
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.5);
}

.settings-button:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Live Transcript Display */

.live-transcript {
  position: absolute;
  bottom: 40px;
  right: 0;
  min-width: 300px;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(0, 212, 170, 0.5);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

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

.transcript-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #00D4AA;
  font-weight: 600;
}

.equalizer-icon {
  font-size: 16px !important;
  animation: equalize 1s ease-in-out infinite;
}

@keyframes equalize {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.3);
  }
}

.execution-icon {
  font-size: 16px !important;
  color: #4caf50 !important;
  animation: checkPulse 0.6s ease-in-out;
}

@keyframes checkPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.confidence-badge {
  margin-left: auto;
  background: rgba(0, 212, 170, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: #00D4AA;
}

.transcript-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  min-height: 40px;
  max-height: 200px;
  overflow-y: auto;
}

.final-text {
  color: #fff;
  font-weight: 500;
}

.partial-text {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 12px;
}

/* Voice Suggestions */

.voice-suggestions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item {
  color: rgba(0, 212, 170, 0.8);
  font-size: 11px;
  padding: 4px 0;
  line-height: 1.4;
}

/* Scrollbar for transcript */
.transcript-text::-webkit-scrollbar {
  width: 6px;
}

.transcript-text::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.transcript-text::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 170, 0.3);
  border-radius: 3px;
}

.transcript-text::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 170, 0.5);
}

/* Error Display */

.streaming-error {
  position: absolute;
  bottom: 40px;
  right: 0;
  background: rgba(255, 68, 68, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  max-width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* Streaming State */

.streaming-voice-recorder.streaming {
  position: relative;
}

.streaming-voice-recorder.streaming::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00D4AA, #00ff88);
  border-radius: 50%;
  opacity: 0.2;
  animation: glow 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

/* Mobile Responsiveness */

@media (max-width: 768px) {
  .live-transcript {
    min-width: 250px;
    max-width: 90vw;
  }
  
  .transcript-text {
    font-size: 13px;
  }
}
