.ai-chatbot-root {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 99999;
}

/* Floating Button */
.ai-chatbot-toggle {
  background: linear-gradient(135deg, #05708a 0%, #0891b2 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chatbot-toggle::before {
  content: "\f086";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
}

.ai-chatbot-toggle:hover {
  background: linear-gradient(135deg, #035368 0%, #06748f 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.45);
}

/* Chat Popup Panel */
.ai-chatbot-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  right: 25px;
  bottom: 90px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(7, 31, 40, 0.25);
  border: 1px solid rgba(8, 145, 178, 0.15);
  z-index: 99999;
}

.ai-chatbot-panel.ai-chatbot-visible {
  display: flex !important;
  animation: chatbotFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatbotFadeIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.ai-chatbot-header {
  background: linear-gradient(135deg, #092c3a 0%, #0c4a5e 60%, #0891b2 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chatbot-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

/* Close button */
.ai-chatbot-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* History area */
.ai-chatbot-history {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message items */
.ai-chatbot-message-item {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-chatbot-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #05708a, #0891b2);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.ai-chatbot-assistant {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border-bottom-left-radius: 4px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Input row */
.ai-chatbot-input-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  gap: 10px;
}

.ai-chatbot-message {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  resize: none;
  height: 42px;
  outline: none;
  transition: all 0.2s ease;
}

.ai-chatbot-message:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.ai-chatbot-send {
  background: linear-gradient(135deg, #05708a, #0891b2);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chatbot-send:hover {
  background: linear-gradient(135deg, #035368, #06748f);
}

/* FAQ Chips */
.ai-chatbot-chips-wrapper button {
  white-space: normal;
  text-align: left;
  border-color: #0891b2 !important;
  color: #05708a !important;
  transition: all 0.2s ease !important;
}

.ai-chatbot-chips-wrapper button:hover {
  background: #0891b2 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}