/* Chatbot Button */
.chatbot-btn {
  position: fixed;
  right: 20px;
  bottom: 30px;
  background: #2e7eed;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 26px;
  text-align: center;
  line-height: 55px;
  cursor: pointer;
  z-index: 9999;
}

/* Chatbot Window */
.chatbot-window {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
}

/* Header */
.chatbot-header {
  background: #2e7eed;
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

.chatbot-header span {
  cursor: pointer;
  font-size: 22px;
}

/* Body */
.chatbot-body {
  padding: 12px;
  height: 260px;
  overflow-y: auto;
  font-size: 14px;
}

.bot-message {
  background: #f1f5ff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Input */
.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

.chatbot-input button {
  background: #2e7eed;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 576px) {
  .chatbot-window {
    width: 90%;
    right: 5%;
  }
}
/* Ensure it doesn't cover the 'To Top' button */
.chatbot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Standard placement */
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

/* Chat options button styling */
.chat-opt {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 575px) {
    .chatbot-window {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}