/* css-bolhas.css — bolhas de mensagem e botões de ação */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px 10px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.messages::-webkit-scrollbar { width: 3px; }
.messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.date-divider {
  text-align: center; font-size: 11px;
  color: var(--muted); letter-spacing: .06em;
  text-transform: uppercase; opacity: .55;
}

.msg-row {
  display: flex; flex-direction: column; gap: 5px;
  animation: fadeUp .28s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.msg-row.user { align-items: flex-end; }
.msg-row.ai   { align-items: flex-start; }

/* Bolha — largura 80% (igual ao chat antigo) */
.bubble {
  width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}
.msg-row.user .bubble {
  background: #005c4b;
  margin-right: 5px;
  border-radius: 12px 12px 2px 12px;
}
.msg-row.ai .bubble {
  background: var(--surface2);
  margin-left: 5px;
  border-radius: 12px 12px 12px 2px;
}

/* Botões de ação (Copiar / Compartilhar) embaixo do texto */
.bubble-actions {
  display: flex; gap: 14px;
  padding: 2px 6px;
  align-items: center;
}
.action-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted);
  transition: color .2s, transform .15s;
}
.action-btn:hover { color: var(--neon-cyan); transform: scale(1.08); }
.action-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.action-btn span { font-size: 9px; letter-spacing: .02em; white-space: nowrap; }
