/* ------------------------
   Chat Container Position
------------------------ */
#chat-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* ------------------------
   Chat Toggle Icon
------------------------ */
#chat-toggle {
  width: 60px !important;
  height: 60px !important;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

#chat-toggle:hover {
  transform: scale(1.05);
}

/* ------------------------
   Chat Popup Box
------------------------ */
#chat-popup {
  width: 320px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Dark mode override */
.dark #chat-popup {
  background: #1e293b;
  border-color: #334155;
}

/* ------------------------
   Header
------------------------ */
#chat-popup .bg-violet-600 {
  background: #7c3aed; /* Tailwind violet-600 */
  color: #fff;
  font-size: 16px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-close {
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  color: #fff;
}

/* ------------------------
   Messages Area
------------------------ */
#chat-messages {
  height: 260px;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  color: #374151; /* Gray 700 */
}

.dark #chat-messages {
  color: #d1d5db;
}

/* ------------------------
   Input Section
------------------------ */
#chat-popup .border-t {
  display: flex;
  padding: 8px;
  border-top: 1px solid #d1d5db;
  background: #f9fafb;
}

.dark #chat-popup .border-t {
  border-color: #334155;
  background: #1e293b;
}

/* Input box */
#chat-input {
  flex: 1;
  height: 30px;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 6px 0 0 6px;
  outline: none;
}

/* Send button */
#chat-send {
  padding: 5px 12px;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#chat-send:hover {
  background: #6d28d9;
}
