
/* ===== CHAT CONTAINER ===== */
.chat-container {
  height: 300px;
  overflow-x: hidden !important;
  overflow-y: auto;
  word-break: break-word;
}

/* ===== CHATBOT ===== */
#chatbot-toggle {
  position: fixed;
  right: 16px;
  bottom: 70px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: white;
  font-size: 16px;
  background: linear-gradient(135deg, cyan, #2563eb, purple);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

#chatbot-toggle:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

#chatbot-window {
  position: fixed;
  right: 20px;
  bottom: 125px;
  z-index: 50;
  width: 320px;
  overflow: hidden;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#chatbot-window.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 300px;
  padding: 16px;
  overflow-y: auto;
}

#chatbot-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 24px 0 0 24px;
  outline: none;
}

#chatbot-input:focus {
  border-color: #2563eb;
}

#chatbot-send {
  padding: 0 20px;
  color: white;
  background: #2563eb;
  border: 0;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
}

#chatbot-send:hover {
  background: #1d4ed8;
}

#chatbot-speak {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 4px 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ===== DARK MODE - CHATBOT ===== */
html[data-theme="dark"] #chatbot-window {
  color: #f9fafb !important;
  background-color: #1f2937 !important;
}

html[data-theme="dark"] #chatbot-window .bg-gray-50,
html[data-theme="dark"] #chatbot-window .bg-gray-100 {
  color: #f9fafb !important;
  background-color: #374151 !important;
}

html[data-theme="dark"] #chatbot-window input {
  color: #f9fafb !important;
  background-color: #111827 !important;
  border-color: #4b5563 !important;
}

/* ===== ADMIN PANEL - HIDE CHATBOT ===== */
body:has(#admin-dashboard) #chatbot-toggle,
body:has(#admin-dashboard) #chatbot-window,
body:has(#admin-dashboard) .mobile-floating-chatbot {
  display: none !important;
}

@media (min-width: 1024px) {
  .mobile-floating-chatbot {
    display: none;
  }
}
