/* ================= CHATBOT CSS ================= */

#chatbot-mascot {
  position: fixed;
  bottom: 40px;
  right: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
}

/* Robot */
#chatbot-mascot img {
  width: 120px;
  animation: floatBot 2.5s ease-in-out infinite;
}

/* Bubble near mascot */
.chat-bubble {
  background: #cc0000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-right: 6px;
  font-size: 13px;
  white-space: nowrap;
}

/* Chat Box */
#chatbot-box {
  display: none;
  position: fixed;
  bottom: 160px;
  right: 20px;
  width: 360px;
  max-width: 95%;
  height: 420px;
  background: #f0f2f5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  flex-direction: column;
}

/* Header */
.chat-header {
  background: #0084ff;
  color: #fff;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Messages */
#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Message bubbles */
.user-msg,
.bot-msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  word-wrap: break-word;
}

/* Bot message */
.bot-msg {
  background: #e4e6eb;
  color: #000;
  align-self: flex-start;
  border-top-left-radius: 5px;
}

/* User message */
.user-msg {
  background: #0084ff;
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 5px;
}

/* Input area */
.chat-input {
  display: flex;
  padding: 8px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 20px;
  background: #f0f2f5;
  outline: none;
}

.chat-input button {
  background: #0084ff;
  color: #fff;
  border: none;
  margin-left: 6px;
  padding: 0 16px;
  border-radius: 50%;
  cursor: pointer;
}

/* Floating animation */
@keyframes floatBot {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Mobile */
@media(max-width:600px){
  #chatbot-box {
    width: 95%;
    right: 2.5%;
    bottom: 140px;
  }
  #chatbot-mascot img {
    width: 70px;
  }
}



 