/* Chat bubble styles for conversation history */
.chat-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #f9fafb;
}

.chat-bubble.left {
  align-self: flex-start;
  border-bottom-left-radius: 0; /* Remove radius on avatar side */
  max-width: 600px; /* Limit bubble width */
}

.chat-bubble.right {
  align-self: flex-end;
  background: #2563eb; /* blue-600 */
  border-color: #2563eb;
  border-bottom-right-radius: 0; /* Remove radius on avatar side */
  max-width: 600px; /* Limit bubble width */
}

.chat-bubble__author {
  font-weight: 600;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.chat-bubble.right .chat-bubble__author {
  color: #e0e7ff; /* light blue for user messages */
}

.chat-bubble__text {
  color: #111827;
  line-height: 1.5;
}

.chat-bubble.right .chat-bubble__text {
  color: #ffffff; /* white text for user messages */
}

/* Links in chat bubbles */
.chat-bubble__text a {
  text-decoration: underline;
  font-weight: 600;
}

.chat-bubble.left .chat-bubble__text a {
  color: #2563eb; /* blue for AI message links */
}

.chat-bubble.left .chat-bubble__text a:hover {
  color: #1d4ed8; /* darker blue on hover */
}

.chat-bubble.right .chat-bubble__text a {
  color: #e0e7ff; /* light blue for user message links */
}

.chat-bubble.right .chat-bubble__text a:hover {
  color: #ffffff; /* white on hover */
}

.chat-bubble__text p {
  margin: 0 0 0.5em 0;
}

.chat-bubble__text p:last-child {
  margin-bottom: 0;
}