/* /chat page — minimal ChatGPT-esque */

body { background: white; }

textarea { font-family: inherit; }

/* Chat bubble layout */
.chat-msg-row {
  display: flex;
  animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-msg-row.role-user { justify-content: flex-end; }
.chat-msg-row.role-assistant { justify-content: flex-start; }

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-bubble.user {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-right-radius: 6px;
}
.chat-bubble.assistant {
  background: white;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 6px;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.chat-typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #94a3b8;
  animation: typingBounce 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Reveal panel */
#reveal-panel.open { width: 340px; }

.reveal-section {
  padding: 8px 10px;
  border-left: 3px solid #475569;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 4px;
  margin-bottom: 8px;
}
.reveal-section-title {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.reveal-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 3px;
  margin-bottom: 2px;
}
.reveal-tag.info { background: #1e40af; color: #dbeafe; }
.reveal-tag.warn { background: #92400e; color: #fef3c7; }
.reveal-tag.danger { background: #991b1b; color: #fee2e2; }
.reveal-tag.good { background: #166534; color: #d1fae5; }
.reveal-tag.neutral { background: #334155; color: #cbd5e1; }

/* Reveal button pulse when has updates */
#reveal-toggle.has-updates {
  color: #F59E0B;
  animation: revealPulse 2s ease-in-out infinite;
}
@keyframes revealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Reveal scrollbar */
#reveal-panel ::-webkit-scrollbar { width: 5px; }
#reveal-panel ::-webkit-scrollbar-track { background: transparent; }
#reveal-panel ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
