/* Floating Chatbot */
.chat-container {
  position: fixed;
  bottom: 80px;   /* leaves space for the toggle button */
  right: 20px;
  width: 320px;
  height: 450px;
  display: none;  /* hidden by default, will open with toggle */
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* Chatbot Header */
.chat-header {
  background: #0096C7;   /* matches your brand color */
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
}

/* Chatbox area */
.chat-box {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f4f7fc;
  display: flex;
  flex-direction: column;
}

/* Messages */
.message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.4;
  font-size: 14px;
  margin: 5px 0;
  display: inline-block;
  clear: both;
  word-wrap: break-word;
}

/* User messages (Right side) */
.user-message {
  background: #0096C7;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  text-align: right;
}

/* Bot messages (Left side) */
.bot-message {
  background: #e0e0e0;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  text-align: left;
}

/* Input area */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.chat-input button {
  background: #0096C7;
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.chat-input button:hover {
  background: #0077b6;
}

/* Toggle Button */
#chatToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0096C7;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  z-index: 10000;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatToggle:hover {
  background: #0077b6;
}
