/* =========================
   CHATBOT FLOAT BUTTON
========================= */
#chatbot-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff1313, #ff4d4d);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(255, 19, 19, 0.4);
}

/* =========================
   CHATBOT CONTAINER
========================= */
#chatbot {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 350px;
  height: 520px;
  display: none;
  flex-direction: column;
  border-radius: 18px;
  backdrop-filter: blur(16px);
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Light mode */
#chatbot.light {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

/* =========================
   HEADER
========================= */
.chat-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #ff1313, #ff4d4d);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chat-header button,
.chat-header span {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   FAQ + QUICK BUTTONS
========================= */
.faq-buttons,
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.faq-buttons button,
.quick-replies button {
  padding: 6px 12px;
  border-radius: 18px;
  border: none;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  cursor: pointer;
  transition: 0.2s;
}

#chatbot.light .faq-buttons button,
#chatbot.light .quick-replies button {
  background: rgba(0, 0, 0, 0.08);
}

.faq-buttons button:hover,
.quick-replies button:hover {
  background: rgba(255, 19, 19, 0.25);
}

/* =========================
   CHAT BODY
========================= */
.chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.bot-msg,
.user-msg {
  max-width: 82%;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.4;
  font-size: 14px;
}

.bot-msg {
  background: rgba(255, 255, 255, 0.12);
}

.user-msg {
  background: linear-gradient(135deg, #ff1313, #ff4d4d);
  color: #fff;
  margin-left: auto;
}

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

/* =========================
   INPUT AREA
========================= */
.chat-input {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 14px;
}

.chat-input button {
  background: linear-gradient(135deg, #ff1313, #ff4d4d);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 480px) {
  #chatbot {
    width: 92%;
    right: 4%;
    height: 500px;
  }
}
