/* public/css/chat.css — dark theme */
.chat-widget {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 360px; max-height: 520px;
  background: #13161e;
  border: 1px solid #252a38;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  z-index: 1000;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: .9rem;
}
.chat-widget.hidden { display: none; }

.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid #252a38;
  font-weight: 500; color: #e8ecf0; font-size: .875rem;
  background: #1a1e28; border-radius: 12px 12px 0 0;
}
.chat-header button { background: none; border: none; cursor: pointer; font-size: 1rem; color: #7a8394; transition: color .15s; }
.chat-header button:hover { color: #e8ecf0; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: .75rem 1rem;
  display: flex; flex-direction: column; gap: .65rem;
}
.chat-msg { padding: .5rem .75rem; border-radius: 10px; max-width: 85%; line-height: 1.5; font-size: .875rem; }
.chat-msg.user { background: #39d98a; color: #000; align-self: flex-end; border-radius: 10px 10px 2px 10px; font-weight: 500; }
.chat-msg.bot  { background: #1a1e28; color: #bcc4ce; align-self: flex-start; border-radius: 10px 10px 10px 2px; border: 1px solid #252a38; }

.chat-input-row {
  display: flex; gap: .5rem; padding: .75rem 1rem;
  border-top: 1px solid #252a38;
}
.chat-input-row input {
  flex: 1; background: #1a1e28; border: 1px solid #252a38;
  border-radius: 6px; padding: .45rem .75rem;
  font-size: .875rem; color: #e8ecf0; outline: none;
  font-family: inherit;
}
.chat-input-row input::placeholder { color: #7a8394; }
.chat-input-row input:focus { border-color: #1f7a4e; }
.chat-input-row button {
  background: #39d98a; color: #000; border: none;
  border-radius: 6px; padding: .45rem .9rem;
  cursor: pointer; font-size: .8rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .04em;
  transition: opacity .15s;
}
.chat-input-row button:hover { opacity: .85; }
