/* AI Voicebot Widget CSS */

.voice-bot-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.voice-trigger {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
}

.voice-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0, 174, 239, 0.3);
}

.voice-trigger.listening {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
}

.voice-trigger.processing {
  background: linear-gradient(135deg, #2b5876, #4e4376);
  box-shadow: 0 10px 25px rgba(78, 67, 118, 0.4);
}

.voice-trigger.speaking {
  background: linear-gradient(135deg, #00aeef, #0076a3);
  box-shadow: 0 10px 25px rgba(0, 174, 239, 0.4);
}

.icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mic-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.voice-trigger:active .mic-icon {
  transform: scale(0.9);
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.3);
  animation: pulse-out 1.5s infinite ease-out;
  pointer-events: none;
}

.voice-trigger.listening .pulse-ring {
  background: rgba(79, 172, 254, 0.4);
}

.voice-trigger.processing .pulse-ring {
  background: rgba(78, 67, 118, 0.4);
  animation-duration: 1s;
}

.voice-trigger.speaking .pulse-ring {
  background: rgba(0, 174, 239, 0.4);
}

@keyframes pulse-out {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.loader {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

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

.status-tooltip {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  pointer-events: none;
  position: absolute;
  top: -75px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.state-label {
  margin: 0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 700;
}

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

.welcome-popup {
  position: absolute;
  bottom: 85px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 100000;
  animation: welcome-float 4s infinite ease-in-out;
}

.welcome-bubble {
  background: #ffffff;
  color: #1e293b;
  padding: 12px 20px;
  border-radius: 18px 18px 0 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.15);
  position: relative;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 15px;
  border-width: 10px 0 0 10px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.welcome-bubble::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 14px;
  border-width: 12px 0 0 12px;
  border-style: solid;
  border-color: rgba(0, 174, 239, 0.15) transparent transparent transparent;
  z-index: -1;
}

@keyframes welcome-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
