/* 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(180deg,#2563eb,#1d4ed8);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  box-shadow: 0 6px 18px rgba(16,24,40,.2);
  cursor: pointer;
  font-weight: 600;
}

#chatbot-panel {
  width: 320px;
  max-height: 480px;
  background: #0b1220;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,6,23,.6);
  overflow: hidden;
  display: none;
  flex-direction: column;
  margin-bottom: 12px;
  color: #e6edf3;
}

/* Header */
#chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #071025;
  color: #fff;
  font-size: 14px;
}

/* 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: rgba(255,255,255,0.08);
  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;
  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 rgba(0,0,0,0.04);
}

/* Form */
#chatbot-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: #071025;
}
#chatbot-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #284155;
  background: #071025;
  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;
}
