.chatbot-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

#chatToggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #123b70;
  color: white;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 5px 20px #0003;
}

.chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 30px #0003;
  overflow: hidden;
  flex-direction: column;
}

.chat-window:not([hidden]) {
  display: flex;
}

.chat-window[hidden] {
  display: none;
}

.chat-header {
  background: #123b70;
  color: white;
  padding: 18px;
  display: flex;
  justify-content: space-between;
}

#chatClose {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.bot-message,
.user-message {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  max-width: 85%;
  line-height: 1.5;
}

.bot-message {
  background: #f0f3f8;
  color: #222;
}

.user-message {
  background: #123b70;
  color: white;
  margin-left: auto;
}

.chat-input {
  display: flex;
  padding: 12px;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.chat-input button {
  background: #123b70;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chat-window {
    width: min(350px, calc(100vw - 30px));
    height: min(450px, calc(100dvh - 110px));
  }
}