/* Chatbot Box (Positioned above WhatsApp + visible on scroll) */
.chatbot-box {
  position: fixed;
  bottom: 100px; /* Space above WhatsApp icon */
  left: 80px; /* Move slightly right */
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999; /* Make sure it's above navbar and everything else */
  overflow: hidden;
}

/* Chat Toggle Button (Icon) */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

/* Chat Icon Wrapper (Your Custom Style - preserved) */
.chat-icon-wrapper {
  background-color: #198754;
  border: 4px solid #85490a;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  animation: bounce 3s infinite;
  position: relative;
}

/* Inner Icon */
.chat-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

/* Pulse Ring Effect */
.pulse-ring::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(133, 73, 10, 0.5);
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: pulseGlow 2s infinite ease-in-out;
  z-index: -1;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

/* Responsive Fixes */
@media (max-width: 576px) {
  .chatbot-box {
    width: 90%;
    left: 5%;
    bottom: 90px;
  }
  #chat-toggle {
    left: 20px;
    bottom: 20px;
  }
}


/* Chat Message Bubbles */
.chat-body .msg {
  max-width: 80%;
  margin-bottom: 0.5rem;
  padding: 10px 14px;
  border-radius: 16px;
  clear: both;
  display: inline-block;
}

/* Bot message - align left */
.msg.bot {
  background-color: #f1f1f1;
  color: #333;
  float: left;
  border-top-left-radius: 0;
}

/* User message - align right */
.msg.user {
  background-color: #d1e7dd;
  color: #0f5132;
  float: right;
  text-align: right;
  border-top-right-radius: 0;
}

