/* ── Shared chat-bubble styles ────────────────────────────────────────────────
   Single source of truth for index.html (intake chat) and the admin session
   modal. Requires DM Sans + DM Mono loaded from Google Fonts.

   Activate by adding class="chat-theme" to the scrollable chat area container.
   All selectors are scoped so nothing bleeds into the host page's own styles.
─────────────────────────────────────────────────────────────────────────────── */

.chat-theme {
  background: #f5f0e8;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

.chat-theme .message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: chat-fade-up 0.3s ease forwards;
  opacity: 0;
}
@keyframes chat-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-theme .message.user      { align-items: flex-end; }
.chat-theme .message.assistant { align-items: flex-start; }

.chat-theme .message-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a7f72;
  padding: 0 4px;
}

.chat-theme .bubble {
  max-width: 88%;
  padding: 16px 20px;
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.75;
  word-wrap: break-word;
  font-family: 'DM Sans', sans-serif;
}
.chat-theme .message.user .bubble {
  background: #1a1612;
  color: #f5f0e8;
  border-radius: 2px 2px 0 2px;
}
.chat-theme .message.assistant .bubble {
  background: #ffffff;
  color: #1a1612;
  border: 1px solid #e0d8cc;
  border-radius: 2px 2px 2px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chat-theme .typing-dots {
  display: flex;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #e0d8cc;
  padding: 14px 18px;
  border-radius: 2px 2px 2px 0;
}
.chat-theme .dot {
  width: 7px;
  height: 7px;
  background: #8a7f72;
  border-radius: 50%;
  animation: chat-bounce 1.2s infinite;
}
.chat-theme .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-theme .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}
