/* Minimal dark-themed chatbot styles for bottom-right widget */
#site-chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#chatbot-toggle {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  border: 2px solid rgba(46, 204, 113, 0.5);
  border-radius: 999px;
  width: 56px;
  height: 56px;
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#chatbot-toggle:hover {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
}

#chatbot-panel {
  width: 320px;
  max-height: 480px;
  background: #0b1220 !important;
  background-color: #0b1220 !important;
  opacity: 1 !important;
  border-radius: 12px;
  box-shadow: 0 12px 40px #020617;
  overflow: hidden;
  display: none;
  flex-direction: column;
  margin-bottom: 12px;
  color: #e6edf3;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Header */
#chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #071025 !important;
  background-color: #071025 !important;
  opacity: 1 !important;
  color: #fff;
  font-size: 14px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Header action buttons (maximize + close) */
#chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
#chatbot-maximize,
#chatbot-close {
  background: transparent;
  border: none;
  color: #9fb7d8;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}
#chatbot-maximize:hover,
#chatbot-close:hover {
  background: #1b2c45;
  color: #fff;
}

/* Maximized state — desktop only. On phones the panel keeps its default
   size (the min-width guard below leaves the mobile layout untouched). */
@media (min-width: 769px) {
  #chatbot-panel.maximized {
    width: 40vw;
    height: 60vh;
    max-height: 60vh;
  }
  /* Let the messages area absorb the extra height when maximized. */
  #chatbot-panel.maximized #chatbot-messages {
    height: auto;
    flex: 1 1 auto;
  }
}

/* Messages area */
#chatbot-messages {
  padding: 12px;
  height: 320px;
  overflow-y: auto;
  background: #041024 !important;
  background-color: #041024 !important;
  opacity: 1 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Message bubbles */
.chatbot-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.3;
}

.chatbot-msg.user {
  align-self: flex-end;
  background: #2563eb;
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-msg.assistant {
  align-self: flex-start;
  background: #072033;
  color: #e6edf3;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 0 #04101f;
}

/* Form */
#chatbot-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #1b2c45;
  background: #071025 !important;
  background-color: #071025 !important;
  opacity: 1 !important;
}
#chatbot-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #284155;
  background: #0b1723 !important;
  background-color: #0b1723 !important;
  opacity: 1 !important;
  color: #e6edf3;
}
#chatbot-form button {
  background: #1f2937;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.pick-chip {
  background: #0b1723;
  color: #9fb7d8;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
