/* AI Conversation and Messaging Styles */

/* AI page container - proper flexbox layout */
.ai-page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* AI bar wrapper - no longer fixed */
.ai-bar-wrapper {
    flex-shrink: 0;
    background: white;
}

/* Chat messages container */
.chat-container {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0 6px 0;
}

/* Message bubble base styles */
.message-bubble {
    max-width: 76%;
    width: fit-content;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    font-family: "Circular Std";
    font-size: 15.2px;
    font-weight: 300;
    line-height: 23px;
    letter-spacing: 0.334px;
}

/* User message (right-aligned, bubble) */
.user-message {
    align-self: flex-end;
    background: #54474F;
    color: white;
}

/* AI message (left-aligned, no bubble) */
.ai-message {
    align-self: flex-start;
    max-width: 100%;
    padding: 0;
    background: none;
    border-radius: 0;
    margin: 8px 0;
}

/* AI message content styling */
.ai-message-content {
    color: #000;
    -webkit-text-stroke-width: 0.1px;
    -webkit-text-stroke-color: #000;
    font-family: "Circular Std";
    font-size: 15.2px;
    font-style: normal;
    font-weight: 300;
    line-height: 29px;
    letter-spacing: 0.334px;
}

/* Structured content support */
.ai-message-content h1,
.ai-message-content h2,
.ai-message-content h3 {
    margin: 16px 0 8px 0;
    font-weight: 500;
}

.ai-message-content ul,
.ai-message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ai-message-content li {
    margin: 4px 0;
}

.ai-message-content p {
    margin: 8px 0;
}

.ai-message-content strong {
    font-weight: 500;
}

/* Typing indicator */
.typing-indicator {
    opacity: 0.7;
}

.typing-indicator em {
    font-style: italic;
    color: #666;
}