/* Voice Assistant Modal Styles */
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4757;
  animation: pulse 2s infinite;
  display: inline-block;
}

.status-dot.connected {
  background: #2ed573;
}

.status-dot.speaking {
  background: #ff6b6b;
  animation: speechPulse 0.8s infinite;
}

.status-dot.ai-responding {
  background: #4ecdc4;
  animation: aiPulse 1s infinite;
}

.vad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95a5a6;
  transition: all 0.3s ease;
  display: inline-block;
}

.vad-dot.active {
  background: #ff6b6b;
  animation: vadPulse 0.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes speechPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes aiPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes vadPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.voice-record-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(var(--bs-primary-rgb), 0.3);
  background: linear-gradient(
    135deg,
    var(--bs-primary),
    var(--bs-primary)
  );
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.voice-record-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.voice-record-btn.active {
  background: linear-gradient(135deg, #2ed573, #17a085);
  animation: recordPulse 1.5s infinite;
}

.voice-record-btn.disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

@keyframes recordPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.audio-visualizer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  gap: 2px;
}

.bar {
  width: 3px;
  background: linear-gradient(
    to top,
    var(--bs-primary),
    var(--bs-primary)
  );
  border-radius: 2px;
  transition: height 0.1s ease;
}

.conversation-area {
  background: rgba(var(--bs-secondary-rgb), 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.conversation-area.ai-responding {
  border: 2px solid var(--bs-primary);
  box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.4);
}

.message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}

.message.user {
  background: rgba(var(--bs-primary-rgb), 0.2);
  border-left: 4px solid var(--bs-primary);
}

.message.assistant {
  background: rgba(var(--bs-success-rgb), 0.2);
  border-left: 4px solid var(--bs-success);
}

.message.system {
  background: rgba(var(--bs-secondary-rgb), 0.2);
  border-left: 4px solid var(--bs-secondary);
  font-style: italic;
}

.message.interrupted {
  background: rgba(var(--bs-warning-rgb), 0.2);
  border-left: 4px solid var(--bs-warning);
  font-style: italic;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


