/* Message container - holds individual message bubbles */
.message-container {
    width: 90%;  /* Use percentage instead of fixed width */
    margin: 0 auto 16px auto;  /* Center the message container */
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Message content - the actual text bubble */
.message-content {
    flex: 1;  /* Take up remaining space */
    line-height: 1.6;
    font-size: 14px;
    color: #1F2937;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;  /* Allow text to wrap properly */
}

/* Avatar styling for the bot icon */
.avatar-container {
    flex-shrink: 0;  /* Prevent avatar from shrinking */
    width: 32px;
    height: 32px;
    margin-top: 4px;
}

.bot-avatar {
    width: 100%;
    height: 100%;
    background-color: #001E60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 500;
}

/* Alternate message styling */
.message-container:nth-child(odd) {
    background-color: #f8f9fa;
}

.message-container:nth-child(odd) .avatar-container {
    display: none;
}

/* Warning message styling */
.alert-warning {
    width: 90%;  /* Match message container width */
    margin: 8px auto;  /* Center the warning */
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    font-size: 12px;
}

/* Source button styling */
.source-button {
    margin: 8px 0;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #0d6efd;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.source-button:hover {
    background-color: #e9ecef;
}

/* Ensure messages container has proper width */
.messages-container {
    width: 100%;  /* Take full width of chat panel */
    padding: 16px 0;  /* Add vertical padding only */
} 