/* ===========================
   BIBLEBOT CHATBOX (WSHS)
   =========================== */

#chatbox {
  width: 100%;
  max-width: 360px;
  height: 460px;
  background: #0b1f33;
  color: #eaeaea;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

#chatbox-header {
  padding: 12px 16px;
  background: #132c46;
  font-weight: 600;
  text-align: center;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

#chatbox-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-msg {
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-msg.user { text-align: right; }
.chat-msg.bot  { text-align: left; }

.chat-msg span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-msg.user span {
  background: #1da1f2;
  color: #fff;
}

.chat-msg.bot span {
  background: #1f3b5c;
  color: #eaeaea;
}

#chatbox-input {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
}

#chatbox-text {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  background: #0b1f33;
  color: #eaeaea;
}

#chatbox-send {
  padding: 0 16px;
  border: none;
  background: #f1c40f;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

#chatbox-send:hover {
  background: #ffcf4d;
}
