/* Toggle Button */
#chat-toggle {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #007B8A;
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
}

/* Chat Window */
#chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 500px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

#chat-header {
  background-color: #007B8A;
  color: #fff;
  padding: 12px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-message {
  margin-bottom: 10px;
  word-wrap: break-word;
}

.chat-user {
  text-align: right;
  color: #333;
}

.chat-bot {
  text-align: left;
  color: #007B8A;
}

#typing-indicator {
  font-style: italic;
  color: #888;
  text-align: left;
  padding-left: 12px;
  padding-bottom: 6px;
  display: none;
}

#chat-input-area {
  padding: 10px;
  display: flex;
  border-top: 1px solid #ccc;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#send-btn {
  margin-left: 6px;
  background-color: #007B8A;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#send-btn:hover {
  background-color: #005f6b;
}

@media (max-width: 400px) {
  #chatbot-container {
    width: 90%;
    right: 5%;
    bottom: 100px;
  }
}
