/* Voice Assistant Widget Styles */
#voice-assistant-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.voice-assistant-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-assistant-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.voice-assistant-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.voice-assistant-header {
  text-align: center;
  margin-bottom: 20px;
}

.voice-assistant-header h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.voice-assistant-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.voice-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.voice-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.voice-btn-start {
  background: #10b981;
}

.voice-btn-start:hover {
  background: #059669;
  transform: scale(1.1);
}

.voice-btn-listening {
  background: #ef4444;
  animation: pulse 1.5s infinite;
}

.voice-btn-processing {
  background: #3b82f6;
  cursor: not-allowed;
}

.voice-btn-speaking {
  background: #8b5cf6;
  animation: pulse 1.5s infinite;
}

.voice-btn svg {
  color: white;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.status-messages {
  text-align: center;
  margin-bottom: 16px;
  min-height: 20px;
}

.status-message {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}

.status-listening { color: #10b981; }
.status-processing { color: #3b82f6; }
.status-speaking { color: #8b5cf6; }
.status-error { color: #ef4444; }

.conversation {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.message {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.message-user {
  background: #f3f4f6;
  border-left: 3px solid #6b7280;
}

.message-assistant {
  background: #dbeafe;
  border-left: 3px solid #3b82f6;
}

.message-label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.instructions {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  line-height: 1.3;
}

.instructions p {
  margin: 2px 0;
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 480px) {
  .voice-assistant-panel {
    width: calc(100vw - 48px);
    right: -12px;
  }
}