/* X0 Start Chat Interface Styles */
/* Shared styles for all chat tools to ensure consistency */

/* Message Container */
.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
    width: 100%;
}

/* User Message Alignment */
.message.user {
    flex-direction: row-reverse;
    /* justify-content: flex-start; Default is flex-start, which for row-reverse starts from right */
}

/* Avatar Styles */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message.assistant .avatar {
    background: white;
    border: 1px solid #e1e4e8;
}

.message.user .avatar {
    background: #0d6efd;
    color: white;
}

/* Message Content Bubble */
.content {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 1rem;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message.assistant .content {
    background: white;
    color: #212529;
    border: 1px solid #f0f0f0;
    border-top-left-radius: 4px;
}

.message.user .content {
    background: #0d6efd;
    color: white;
    border-top-right-radius: 4px;
    border: none;
}

/* Markdown Content Styling */
.content p {
    margin-bottom: 0.5em;
}

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

.content ul,
.content ol {
    margin-left: 20px;
    margin-bottom: 0.5em;
}

.content strong {
    font-weight: 600;
}

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