#chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
}

#chatbot-box {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 340px;
  height: 480px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  animation: fadeIn ease 0.3s;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

#chatbot-header {
  background: #007bff;
  color: white;
  padding: 12px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

#chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f5f5;
}

.msg-wrapper {
  display: flex;
  margin-bottom: 14px;
}

.msg-wrapper.bot { flex-direction: row }
.msg-wrapper.user { flex-direction: row-reverse }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.msg {
  padding: 10px 12px;
  max-width: 70 percent;
  border-radius: 6px;
  margin: 0 8px;
}

.bot-msg {
  background: white;
  border: 1px solid #ddd;
}

.user-msg {
  background: #d1e7ff;
}

.typing-indicator {
  padding: 8px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-style: italic;
  opacity: 0.7;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid #ccc;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: none;
}

#chatbot-send {
  background: #007bff;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
}
