/* Chatbot Icon */
#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1000;
}

#chatbot-icon img {
  width: 50px;
  height: 50px;
}

/* Chat Window */
#chat-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default */
  z-index: 1000;
}

/* Chat Header */
.chat-header {
  background: rgba(0, 0, 0, 0.9);
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  color: white;
}

#close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Chat Messages */
.chat-messages {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  color: white;
}

/* Individual Messages */
.message {
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  max-width: 80%;
  word-wrap: break-word;
}

.user {
  background: #4CAF50; /* User message color */
  align-self: flex-end;
  margin-left: auto;
}

.bot {
  background: #007bff; /* Bot message color */
  align-self: flex-start;
  margin-right: auto;
}

/* Typing Indicator */
#typing-indicator {
  font-style: italic;
  color: #ccc;
  padding: 10px;
  text-align: left;
}

/* Chat Input Area */
.chat-input {
  display: flex;
  padding: 10px;
  background: rgba(0, 0, 0, 0.9);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#user-input {
  flex: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

#user-input::placeholder {
  color: #ccc;
}

#send-message {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 5px;
  cursor: pointer;
}

#send-message:hover {
  background-color: #45a049;
}
