/* ---------- GLOBAL ---------- */
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  margin: 0;
  /* background handled by main style.css */
}

/* ---------- FLOATING BUTTON ---------- */
#chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f3ff, #bc13fe);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
}

/* ---------- CHAT WINDOW ---------- */
#chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  height: 520px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  z-index: 9998;
}

/* HIDDEN CLASS - Controls visibility */
#chatbot-window.hidden {
  display: none !important;
}

/* ---------- HEADER ---------- */
.chat-header {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  font-weight: 600;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.chat-header button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.chat-header button:hover {
  color: white;
}

/* ---------- BODY ---------- */
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.bot-message,
.user-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  animation: fadeInUp 0.25s ease;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bot-message {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message {
  background: linear-gradient(135deg, #00f3ff, #007aff);
  color: #000;
  align-self: flex-end;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 243, 255, 0.2);
}

/* ---------- FOOTER ---------- */
.chat-footer {
  display: flex;
  align-items: center;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.chat-footer input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  transition: 0.3s;
}

.chat-footer input:focus {
  border-color: #00f3ff;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.chat-footer button {
  margin-left: 10px;
  background: linear-gradient(135deg, #00f3ff, #007aff);
  border: none;
  border-radius: 50%;
  color: white;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-footer button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WhatsApp handoff styling */
.whatsapp-handoff {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 14px;
}

.whatsapp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 50%;
}

.whatsapp-icon-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}