/* Floating Button */
.chat-toggle-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #0f0f0f;
  border: 2px solid #00eaff;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  padding: 0;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 0 15px #00eaff;
  transition: 0.3s;
}
.chat-toggle-btn:hover {
  box-shadow: 0 0 30px #00eaff;
  transform: scale(1.1);
  background-color: #efe4e4 !important;
}
.chatbot-icon {
  width: 32px;
  margin-top: 14px;
}

/* Widget Panel */
.ai-chatbot-wrapper {
  position: fixed;
  bottom: 95px;
  right: 22px;
  width: 340px;
  height: 480px;
  background: #0b0b0b;
  border: 2px solid #00eaff;
  border-radius: 15px;
  box-shadow: 0 0 20px #00eaff;
  display: flex;
  flex-direction: column;
  z-index: 99999;
}
.hidden {
  display: none;
}

/* Header */
.ai-chatbot-header {
  background: #000;
  padding: 14px;
  text-align: center;
  color: #00eaff;
  font-weight: bold;
  border-bottom: 1px solid #00eaff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ai-avatar {
  width: 22px;
  filter: drop-shadow(0 0 5px #00eaff);
}

/* Messages section */
.ai-chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  color: #fff;
  font-size: 14px;
}

/* Message bubbles */
.bot-msg,
.user-msg {
  max-width: 85%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  line-height: 1.4;
  word-wrap: break-word;
}

.bot-msg {
  background: #001f2b;
  border-left: 3px solid #00eaff;
  color: #a8f7ff;
  box-shadow: 0 0 10px #00eaff70;
  font-size: 18px;
  font-family: poppins;
}

.user-msg {
  background: #111;
  border-right: 3px solid #6aff00;
  color: #d1ffd1;
  margin-left: auto;
  box-shadow: 0 0 10px #6aff0080;
}

/* Input area */
.ai-chatbot-input-area {
  padding: 12px;
  display: flex;
  gap: 8px;
  background: #000;
  border-top: 1px solid #00eaff;
}
#chatInput {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #00eaff;
  background: #0a0a0a;
  color: #fff;
}
#chatInput:focus {
  outline: 1px solid #00eaff;
  box-shadow: 0 0 8px #00eaff;
}
#chatSend {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #00eaff;
  background: #00eaff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

/* Typing indicator */
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #00eaff;
  display: inline-block;
  border-radius: 50%;
  margin-right: 3px;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .ai-chatbot-wrapper {
    width: 90%;
    right: 5%;
    height: 70vh;
  }
}
