#chatMessages-Newchat {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}
.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.bot {
    align-self: flex-start;
    background-color: #ffffff;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user {
    align-self: flex-end;    
}
/* Typing indicator */
.typing-indicator {
    display: flex;
    padding: 8px 13px;
    background-color: #f0f2f5;
    border-radius: 15px;
    align-self: flex-start;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.3s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}
/* Table styles */
.chat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}

.chat-table th,
.chat-table td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: left;
}

.chat-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.bot .chat-table th {
    background-color: #FFFFFF;
}

/* List styles */
.chat-list {
    margin: 8px 0;
    padding-left: 20px;
}

.chat-list li {
    margin-bottom: 5px;
}

/* Adjust message styling for HTML content */
.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
}

.message p {
    margin: 0 0 8px 0;
}

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

/* Style for code or pre-formatted text */
.message pre,
.message code {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 4px;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message pre {
    padding: 8px;
    margin: 8px 0;
}

/* Remove any list or paragraph margins for the first/last elements */
.message>ul:first-child,
.message>ol:first-child,
.message>p:first-child {
    margin-top: 0;
}

.message>ul:last-child,
.message>ol:last-child,
.message>p:last-child {
    margin-bottom: 0;
}