/* Floating Chatbot Styles */
:root {
  /* Base Colors - Professional Syntia Theme */
  --chatbot-primary: #ffffff;
  --chatbot-primary-rgb: 99, 102, 241;
  --chatbot-primary-light: #818cf8;
  --chatbot-primary-dark: #4f46e5;
  --chatbot-secondary: #008cff;
  --chatbot-accent: #ffffff;
  --chatbot-neon: #00d4ff;
  --chatbot-neon-glow: rgba(0, 212, 255, 0.4);

  /* Background Colors */
  --chatbot-bg: #0f172a;
  --chatbot-card-bg: rgba(30, 41, 59, 0.8);
  --chatbot-hover-bg: rgba(51, 65, 85, 0.5);

  /* Text Colors */
  --chatbot-text: #f8fafc;
  --chatbot-text-secondary: #94a3b8;

  /* Message Colors */
  --user-message-bg: rgba(59, 130, 246, 0.2);
  --bot-message-bg: rgba(30, 41, 59, 0.7);

  /* UI Elements */
  --chatbot-border-radius: 12px;
  --chatbot-border: 1px solid rgba(148, 163, 184, 0.2);
  --chatbot-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --chatbot-glow: 0 0 15px rgba(58, 134, 255, 0.3);
}

/* Floating Chatbot Button */
.floating-chatbot-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--chatbot-primary) 0%,
    var(--chatbot-secondary) 50%,
    var(--chatbot-accent) 100%
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--chatbot-neon-glow),
    0 0 40px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: floatingGlow 4s ease-in-out infinite;
}

.floating-chatbot-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), 0 0 60px var(--chatbot-neon-glow),
    0 0 100px rgba(0, 212, 255, 0.3), 0 0 140px rgba(0, 212, 255, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(0, 212, 255, 0.8);
  animation: floatingGlowHover 3s ease-in-out infinite;
}

.chatbot-btn-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.chatbot-btn-avatar img {
  height: 90%;
  object-fit: contain;
}

.chatbot-btn-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--chatbot-neon-glow) 0%,
    transparent 70%
  );
  animation: btnPulse 2.5s infinite;
  z-index: 1;
}

/* Wave Animation Layers */
.floating-chatbot-btn::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.2) 0%,
    rgba(99, 102, 241, 0.15) 50%,
    transparent 70%
  );
  animation: waveExpand 4s ease-in-out infinite;
  z-index: -1;
  filter: blur(2px);
}

.floating-chatbot-btn::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 40%,
    rgba(0, 212, 255, 0.1) 60%,
    rgba(99, 102, 241, 0.1) 80%,
    transparent 100%
  );
  animation: waveExpand 6s ease-in-out infinite reverse;
  z-index: -2;
  filter: blur(4px);
}

/* Additional Wave Ring */
.floating-chatbot-btn .wave-ring {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(
      45deg,
      rgba(0, 212, 255, 0.3) 0%,
      transparent 25%,
      rgba(99, 102, 241, 0.3) 50%,
      transparent 75%,
      rgba(0, 212, 255, 0.3) 100%
    )
    border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  animation: waveExpand 8s ease-in-out infinite;
  z-index: -3;
}

.chatbot-btn-pulse::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--chatbot-neon),
    var(--chatbot-primary),
    var(--chatbot-secondary)
  );
  animation: neonRotate 3s linear infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes neonRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes btnPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
    box-shadow: 0 0 0 0 var(--chatbot-neon-glow);
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
    box-shadow: 0 0 0 0 var(--chatbot-neon-glow);
  }
}

/* New Wave Animations */
@keyframes floatingGlow {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--chatbot-neon-glow),
      0 0 40px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5), 0 0 35px var(--chatbot-neon-glow),
      0 0 70px rgba(0, 212, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@keyframes floatingGlowHover {
  0%,
  100% {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4),
      0 0 60px var(--chatbot-neon-glow), 0 0 100px rgba(0, 212, 255, 0.3),
      0 0 140px rgba(0, 212, 255, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5),
      0 0 80px var(--chatbot-neon-glow), 0 0 120px rgba(0, 212, 255, 0.4),
      0 0 160px rgba(0, 212, 255, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
}

@keyframes waveExpand {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.2;
  }
}

/* Add a subtle scale to the avatar on hover */
.floating-chatbot-btn:hover .chatbot-btn-avatar {
  transform: scale(1.05);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Floating Chatbot Widget */
.floating-chatbot-widget {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 420px;
  height: min(var(--floating-chatbot-height, 680px), calc(100vh - 150px));
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.9) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(100%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.floating-chatbot-widget.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  animation: slideUpEnhanced 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-chatbot-widget .chatbot-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

@keyframes slideUpEnhanced {
  0% {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
  }
  60% {
    transform: translateY(-5px) scale(1.02);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Chatbot Header */
.floating-chatbot-widget .chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(99, 102, 241, 0.05) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
}

.floating-chatbot-widget .chatbot-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.5) 50%,
    transparent 100%
  );
}

.floating-chatbot-widget .chatbot-avatar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.floating-chatbot-widget .chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgb(255, 255, 255) 0%,
    #008cffa4 50%,
    rgb(254, 254, 255) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.floating-chatbot-widget .chatbot-avatar img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.floating-chatbot-widget .chatbot-info h2 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin: 0;
  color: var(--chatbot-text);
  background: linear-gradient(
    135deg,
    var(--chatbot-text) 0%,
    rgba(0, 212, 255, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-chatbot-widget .chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  font-family: var(--font-ui);
  color: var(--chatbot-text-secondary);
}

.floating-chatbot-widget .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--chatbot-accent);
}

.floating-chatbot-widget .chatbot-controls {
  display: flex;
  gap: 8px;
}

.floating-chatbot-widget .control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--chatbot-text-secondary);
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: var(--font-size-sm);
  font-family: var(--font-ui);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.floating-chatbot-widget .control-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.floating-chatbot-widget .control-btn:hover {
  color: var(--chatbot-text);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.floating-chatbot-widget .control-btn:hover::before {
  left: 100%;
}

.floating-chatbot-widget .minimize-btn {
  background: none;
  border: none;
  color: var(--chatbot-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.floating-chatbot-widget .minimize-btn:hover {
  color: var(--chatbot-text);
  background: var(--chatbot-hover-bg);
}

/* Chatbot Messages */
.floating-chatbot-widget .chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--chatbot-primary) transparent;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    transparent 10%,
    transparent 90%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

.floating-chatbot-widget .chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.floating-chatbot-widget .chatbot-messages::-webkit-scrollbar-track {
  background: var(--chatbot-bg);
}

.floating-chatbot-widget .chatbot-messages::-webkit-scrollbar-thumb {
  background-color: var(--chatbot-primary);
  border-radius: 20px;
}

.floating-chatbot-widget .message {
  display: flex;
  gap: 1rem;
  max-width: 85%;
  animation: fadeIn 0.3s ease-out;
}

.floating-chatbot-widget .user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.floating-chatbot-widget .bot-message {
  align-self: flex-start;
}

.floating-chatbot-widget .message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-chatbot-widget .user-message .message-avatar {
  background: var(--chatbot-primary);
  color: white;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-ui);
}

.floating-chatbot-widget .bot-message .message-avatar {
  background: linear-gradient(
    135deg,
    var(--chatbot-primary) 0%,
    var(--chatbot-secondary) 100%
  );
}

.floating-chatbot-widget .message-avatar img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.floating-chatbot-widget .message-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.floating-chatbot-widget .message-text {
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--chatbot-text);
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-chatbot-widget .user-message .message-text {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(99, 102, 241, 0.1) 100%
  );
  border-bottom-right-radius: 0.25rem;
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.floating-chatbot-widget .bot-message .message-text {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-bottom-left-radius: 0.25rem;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-chatbot-widget .message-time {
  font-size: var(--font-size-xs);
  font-family: var(--font-ui);
  color: var(--chatbot-text-secondary);
  align-self: flex-end;
}

.floating-chatbot-widget .user-message .message-time {
  text-align: right;
}

.floating-chatbot-widget .message-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-chatbot-widget .bot-message:hover .message-actions {
  opacity: 1;
  transform: translateY(-2px);
}

.floating-chatbot-widget .action-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--chatbot-text-secondary);
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  font-weight: 400;
}

.floating-chatbot-widget .action-btn i {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  font-size: inherit;
  color: inherit;
  transform: none;
  left: auto;
  top: auto;
  z-index: auto;
  pointer-events: auto;
}

.floating-chatbot-widget .action-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(99, 102, 241, 0.08) 100%
  );
  color: var(--chatbot-text);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

/* Settings Panel */
.floating-chatbot-widget .settings-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(30, 41, 59, 0.95) 50%,
    rgba(15, 23, 42, 0.98) 100%
  );
  border-radius: 20px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.floating-chatbot-widget .settings-panel.active {
  transform: translateX(0);
  animation: slideInSettings 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInSettings {
  0% {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.floating-chatbot-widget .settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: var(--chatbot-border);
}

.floating-chatbot-widget .settings-header h3 {
  margin: 0;
  color: var(--chatbot-text);
  font-size: 18px;
  font-weight: 600;
}

.floating-chatbot-widget .close-settings {
  background: none;
  border: none;
  color: var(--chatbot-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.floating-chatbot-widget .close-settings:hover {
  color: var(--chatbot-text);
  background: var(--chatbot-hover-bg);
}

.floating-chatbot-widget .settings-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: calc(100% - 80px);
}

.floating-chatbot-widget .settings-content::-webkit-scrollbar {
  width: 6px;
}

.floating-chatbot-widget .settings-content::-webkit-scrollbar-track {
  background: var(--chatbot-bg);
}

.floating-chatbot-widget .settings-content::-webkit-scrollbar-thumb {
  background-color: var(--chatbot-primary);
  border-radius: 20px;
}

.floating-chatbot-widget .settings-section {
  margin-bottom: 24px;
  padding: 2rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.floating-chatbot-widget .settings-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

.floating-chatbot-widget .settings-section h4 {
  margin: 0 0 1.5rem 0;
  color: var(--chatbot-text);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(
    135deg,
    var(--chatbot-text) 0%,
    rgba(0, 212, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.5rem;
}

.floating-chatbot-widget .settings-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 212, 255, 0.8) 0%,
    rgba(99, 102, 241, 0.6) 100%
  );
  border-radius: 1px;
}

.floating-chatbot-widget .mode-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--chatbot-text-secondary);
  font-size: 14px;
}

.floating-chatbot-widget .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.floating-chatbot-widget .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.floating-chatbot-widget .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--chatbot-hover-bg);
  transition: 0.3s;
  border-radius: 24px;
}

.floating-chatbot-widget .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--chatbot-text);
  transition: 0.3s;
  border-radius: 50%;
}

.floating-chatbot-widget input:checked + .slider {
  background-color: var(--chatbot-primary);
}

.floating-chatbot-widget input:checked + .slider:before {
  transform: translateX(26px);
}

.floating-chatbot-widget .theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.floating-chatbot-widget .theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.floating-chatbot-widget .theme-option:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(99, 102, 241, 0.04) 100%
  );
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.floating-chatbot-widget .theme-option.active {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(99, 102, 241, 0.08) 100%
  );
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1),
    0 8px 25px rgba(0, 212, 255, 0.15);
}

.floating-chatbot-widget .theme-preview {
  width: 40px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.floating-chatbot-widget .theme-preview::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 2px;
  background: inherit;
  opacity: 0.8;
}

.floating-chatbot-widget .default-theme {
  background: linear-gradient(135deg, #3a86ff 0%, #8b5cf6 100%);
}

.floating-chatbot-widget .purple-theme {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.floating-chatbot-widget .teal-theme {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.floating-chatbot-widget .dark-theme {
  background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

.floating-chatbot-widget .theme-option span {
  color: var(--chatbot-text);
  font-size: 12px;
  font-weight: 500;
}

.floating-chatbot-widget .language-select {
  width: 100%;
  padding: 10px 12px;
  border: var(--chatbot-border);
  border-radius: 8px;
  background: var(--chatbot-bg);
  color: var(--chatbot-text);
  font-size: 14px;
  cursor: pointer;
}

.floating-chatbot-widget .language-select:focus {
  outline: none;
  border-color: var(--chatbot-primary);
  box-shadow: var(--chatbot-glow);
}

/* API Key and Provider Inputs */
.floating-chatbot-widget input[type="password"],
.floating-chatbot-widget select {
  width: 100%;
  padding: 10px 12px;
  border: var(--chatbot-border);
  border-radius: 8px;
  background: var(--chatbot-bg);
  color: var(--chatbot-text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.floating-chatbot-widget input[type="password"]:focus,
.floating-chatbot-widget select:focus {
  outline: none;
  border-color: var(--chatbot-primary);
  box-shadow: var(--chatbot-glow);
}

/* Font Size Slider */
.floating-chatbot-widget input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-chatbot-widget input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--chatbot-primary) 0%,
    var(--chatbot-secondary) 100%
  );
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3),
    0 0 0 2px rgba(0, 212, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-chatbot-widget input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4),
    0 0 0 4px rgba(0, 212, 255, 0.15);
}

.floating-chatbot-widget input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--chatbot-primary) 0%,
    var(--chatbot-secondary) 100%
  );
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3),
    0 0 0 2px rgba(0, 212, 255, 0.1);
}

/* High Contrast Mode */
.floating-chatbot-widget.high-contrast {
  --chatbot-bg: #000000;
  --chatbot-card-bg: #000000;
  --chatbot-text: #ffffff;
  --chatbot-text-secondary: #cccccc;
  --chatbot-border: 2px solid #ffffff;
  --chatbot-hover-bg: #333333;
  --user-message-bg: #ffffff;
  --bot-message-bg: #000000;
}

.floating-chatbot-widget.high-contrast .message.user-message .message-text {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.floating-chatbot-widget.high-contrast .message.bot-message .message-text {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
}

/* Settings actions */
.floating-chatbot-widget .settings-actions {
  display: flex;
  gap: 1rem;
  padding: 2rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(99, 102, 241, 0.02) 100%
  );
  backdrop-filter: blur(10px);
  position: relative;
  margin-top: auto;
  border-radius: 0 0 20px 20px;
}

.floating-chatbot-widget .settings-actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.3) 50%,
    transparent 100%
  );
}

.floating-chatbot-widget .settings-btn-action {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.floating-chatbot-widget .settings-btn-action i {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  font-size: inherit;
  color: inherit;
  transform: none;
  left: auto;
  top: auto;
  z-index: auto;
  pointer-events: auto;
}

.floating-chatbot-widget .save-btn {
  background: linear-gradient(
    135deg,
    var(--chatbot-primary) 0%,
    var(--chatbot-secondary) 100%
  );
  color: white;
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.floating-chatbot-widget .save-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.floating-chatbot-widget .save-btn:hover {
  background: linear-gradient(
    135deg,
    var(--chatbot-primary-dark) 0%,
    var(--chatbot-secondary) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.3);
}

.floating-chatbot-widget .save-btn:hover::before {
  left: 100%;
}

.floating-chatbot-widget .restore-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  color: var(--chatbot-text-secondary);
}

.floating-chatbot-widget .restore-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  color: var(--chatbot-text);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.floating-chatbot-widget .action-btn.liked {
  color: var(--chatbot-primary);
  background: rgba(var(--chatbot-primary-rgb, 0, 123, 255), 0.1);
}

/* Typing Indicator */
.floating-chatbot-widget .typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  border-bottom-left-radius: 0.25rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-chatbot-widget .typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.6) 0%,
    rgba(99, 102, 241, 0.4) 100%
  );
  animation: typingBounceEnhanced 1.6s infinite ease-in-out both;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.floating-chatbot-widget .typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.floating-chatbot-widget .typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.floating-chatbot-widget .typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes typingBounceEnhanced {
  0%,
  80%,
  100% {
    transform: scale(0.3);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
  }
}

/* Sample Questions */
.floating-chatbot-widget .sample-questions {
  margin-top: 1rem;
  align-self: flex-start;
  width: 100%;
}

.floating-chatbot-widget .sample-questions p {
  font-size: 0.9rem;
  color: var(--chatbot-text-secondary);
  margin-bottom: 0.75rem;
  text-align: left;
}

.floating-chatbot-widget .question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.floating-chatbot-widget .question-chip {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--chatbot-text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  font-weight: 400;
}

.floating-chatbot-widget .question-chip:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(99, 102, 241, 0.08) 100%
  );
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.1);
}

/* Chatbot Input */
.floating-chatbot-widget .chatbot-input {
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(99, 102, 241, 0.02) 100%
  );
  backdrop-filter: blur(10px);
  position: relative;
}

.floating-chatbot-widget .chatbot-input::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.3) 50%,
    transparent 100%
  );
}

.floating-chatbot-widget .input-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 0.75rem 1rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.floating-chatbot-widget .input-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(99, 102, 241, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.floating-chatbot-widget .input-container:focus-within {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1),
    0 8px 25px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.floating-chatbot-widget .input-container:focus-within::before {
  opacity: 1;
}

.floating-chatbot-widget .input-container input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--chatbot-text);
  font-size: 0.95rem;
  padding: 0.75rem;
  outline: none;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.floating-chatbot-widget .input-container input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.floating-chatbot-widget .voice-btn {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(99, 102, 241, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--chatbot-text-secondary);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
}

.floating-chatbot-widget .voice-btn i {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  font-size: 1rem;
  color: inherit;
  transform: none;
  left: auto;
  top: auto;
  z-index: auto;
  pointer-events: auto;
}

.floating-chatbot-widget .voice-btn:hover {
  color: var(--chatbot-text);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2) 0%,
    rgba(99, 102, 241, 0.1) 100%
  );
  border-color: rgba(0, 212, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.floating-chatbot-widget .voice-btn.active {
  color: var(--chatbot-primary);
  background: var(--chatbot-hover-bg);
  animation: pulse 1s infinite;
}

.floating-chatbot-widget .mic-btn {
  background: transparent;
  border: none;
  color: var(--chatbot-text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.floating-chatbot-widget .mic-btn:hover {
  color: var(--chatbot-primary);
  background: var(--chatbot-hover-bg);
}

.floating-chatbot-widget .mic-btn.active {
  color: var(--chatbot-primary);
  background: var(--chatbot-hover-bg);
  animation: pulse 1.5s infinite;
}

.floating-chatbot-widget .send-btn {
  background: var(--chatbot-bg);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.floating-chatbot-widget .send-btn i {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  font-size: 1rem;
  color: white;
  transform: none;
  left: auto;
  top: auto;
  z-index: auto;
  pointer-events: auto;
}

.floating-chatbot-widget .send-btn:hover {
  background: var(--user-message-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.floating-chatbot-widget .chatbot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0 0.5rem;
}

.floating-chatbot-widget .powered-by {
  font-size: 0.8rem;
  color: var(--chatbot-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.floating-chatbot-widget .powered-by strong {
  color: var(--chatbot-primary);
}

.floating-chatbot-widget .chatbot-actions {
  display: flex;
  gap: 0.5rem;
}

.floating-chatbot-widget .action-btn {
  background: transparent;
  border: none;
  color: var(--chatbot-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.floating-chatbot-widget .action-btn:hover {
  color: var(--chatbot-text);
  background: var(--chatbot-hover-bg);
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--chatbot-primary-rgb), 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--chatbot-primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--chatbot-primary-rgb), 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-chatbot-widget {
    width: calc(100vw - 40px);
    height: min(
      var(--floating-chatbot-height-tablet, 640px),
      calc(100vh - 200px)
    );
    right: 20px;
    bottom: 80px;
  }

  .floating-chatbot-widget .theme-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .floating-chatbot-widget .settings-content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .floating-chatbot-widget {
    width: calc(100vw - 20px);
    height: min(
      var(--floating-chatbot-height-mobile, 640px),
      calc(100vh - 255px)
    );
    right: 10px;
    bottom: 70px;
  }

  .floating-chatbot-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .floating-chatbot-widget .chatbot-header {
    padding: 16px;
  }

  .floating-chatbot-widget .chatbot-info h2 {
    font-size: 16px;
  }

  .floating-chatbot-widget .settings-header {
    padding: 16px;
  }

  .floating-chatbot-widget .settings-content {
    padding: 12px;
  }

  .floating-chatbot-widget .theme-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
