:root {
  --primary-color: #2563eb; /* Tailwind Blue-600 */
}

.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
}

.chatbot-button img {
  width: 55px;
  height: 55px;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--primary-color);
}

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.chatbot-header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-chatbot {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.chatbot-messages {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  display: flex;
  padding: 8px;
  gap: 5px;
  border-top: 1px solid #ddd;
}

#userInput {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 2px solid #ccc;
  font-size: 14px;
}

#userInput:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.4);
  outline: none;
}

#sendButton {
  background: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

#voiceBtn {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.message {
  max-width: 75%;
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.user {
  align-self: flex-end;
  background-color: var(--primary-color);
  color: white;
}

.message.bot {
  align-self: flex-start;
  background-color: #e0e0e0;
  color: black;
}
