#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 400px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transition: height 0.3s ease;
}

#chatbot.minimized {
  height: 40px;
  overflow: hidden;
}

#chatbot-header {
  background: linear-gradient(135deg, #ff6f61 0%, #ff8a65 50%, #ffb74d 100%);
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

#minimize-chat {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}

.user-message {
  background-color: #e3f2fd;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.bot-message {
  background-color: #f1f1f1;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

#chat-input-container {
  display: flex;
  padding: 10px;
  background-color: white;
  border-top: 1px solid #ddd;
}

#user-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 5px;
}

#send-btn {
  padding: 8px 8px 8px 10px;
  background-color: #f06292;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 70px;
  font-weight: bold;
  text-align: left;
  text-indent: 2px;
  font-size: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

#send-btn:hover {
  background-color: #e91e63;
}

/* Typing indicator */
.typing-indicator {
  color: #666;
  font-style: italic;
  opacity: 0.8;
}

.typing-indicator::after {
  content: '...';
  display: inline-block;
  animation: typing 1.5s infinite;
  width: 20px;
  text-align: left;
}

@keyframes typing {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* Scrollbar styling */
#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: #555;
}
