/* Chat toggle button */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5c6bc0;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10000;
}

/* Chat container */
.chat-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Active state (visible) */
.chat-container.active {
  display: flex;
}

/* Chat header */
.chat-container header {
  background-color: #5c6bc0;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
}

/* Chat messages box */
.chat-box {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

/* User message */
.message.user {
  background-color: #d1e7dd;
  align-self: flex-end;
  padding: 8px;
  border-radius: 10px;
  margin: 5px;
  max-width: 80%;
}

/* Bot message */
.message.bot {
  background-color: #f1f1f1;
  align-self: flex-start;
  padding: 8px;
  border-radius: 10px;
  margin: 5px;
  max-width: 80%;
}

/* Input area */
#chatForm {
  display: flex;
  border-top: 1px solid #ccc;
}
#chatForm input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 14px;
  outline: none;
}
#chatForm button {
  background-color: #5c6bc0;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
}
#chatForm button:hover {
  background-color: #3f51b5;
}
.chat-container {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: none;  /* <---- hidden by default */
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5c6bc0;
  color: white;
  font-size: 22px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
header {
  position: relative;
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 6px;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.clear-btn:hover {
  color: #ffdddd;
}

/* Special greeting style */
.message.bot.special-greeting {
  background: linear-gradient(135deg, #6a5acd, #00bcd4);
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  padding: 12px 18px;
  text-align: center;
  margin: 10px auto;
  max-width: 80%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: popIn 0.5s ease-in-out;
}

/* little animation */
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* Tooltip bubble near toggle */
.chat-tooltip {
  position: fixed;
  bottom: 90px;   /* just above the toggle button */
  right: 80px;    /* adjust to match your toggle button position */
  background: #6a5acd;
  color: #fff;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeInUp 0.8s ease;
  z-index: 999;
}

/* Small arrow below bubble */
.chat-tooltip::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: #6a5acd transparent transparent transparent;
}

/* Entry animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-container {
  background: #f0f4ff; /* light blue */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family: Arial, sans-serif;
}



/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.chat-toggle {
  /* existing styles... */
  animation: float 2s ease-in-out infinite;
}


