/* Message and transcript component styles */

.message { display: flex; align-items: flex-start; gap: 12px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.message.user { flex-direction: row-reverse; }
.message-content { flex: 1; min-width: 0; }
.message-bubble { background: #e2e2e2; border-radius: 18px; padding: 12px 16px; max-width: 70%; position: relative; margin-bottom: 4px; }
.message.system .message-bubble { background: #e8f4fd; color: #2c3e50; }
.message.ai .message-bubble { background: #e2e2e2; color: #2c3e50; border-radius: 14px 14px 14px 0; }
.message.user .message-bubble { background: var(--ta-brand); color: #fff; margin-left: auto; border-radius: 16px 16px 0 16px; }
.message-text { font-size: 15px; line-height: 1.4; word-wrap: break-word; font-family: var(--ta-font); }
.message-info { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8e9aaf; margin-top: 4px; }
.message.user .message-info { justify-content: flex-end; }

.transcript { 
  flex: 1; 
  overflow-y: auto; 
  overflow-x: visible; 
  padding: 16px 16px 0 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  min-height: 0; 
}
.transcript::-webkit-scrollbar { width: 4px; }
.transcript::-webkit-scrollbar-track { background: transparent; }
.transcript::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 2px; }
.transcript { scroll-behavior: smooth; overflow-anchor: none; }

.transcript-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #8e9aaf;
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
  padding: 60px 40px;
}
/* Remove emoji bubble; avatar will be used instead */
.transcript-empty::before { content: none; }

/* Empty state layout */
.empty-state-container { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.empty-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.empty-text { color: #8e9aaf; }

/* Improve inline link legibility inside empty state */
.transcript-empty .connect-link {
  color: var(--ta-brand, #0A4D78);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 600;
}
.transcript-empty .connect-link:hover { color: #003f63; }


