body.modal-open {
    overflow: hidden; /* Prevent body scrolling when modal is open */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1052;
    display: none;
    overflow-y: auto;
    justify-content: center;
    align-items: flex-end;
}

.modal-content-assistent {
    background-color: #1C252E;
    border-top-left-radius: 13px; 
    border-top-right-radius: 13px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh; 
    overflow: hidden; 
    display: flex;
    flex-direction: column; 
}

#assistant-chat-area {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    /* position: relative;
    align-items: flex-start; */
    max-height: 90vh;
}

.assistant-block {
    /* ... your existing styles ... */
    max-width: 95%; /* Adjust as needed */
    /* background-color: #EAEBEA; */
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    /* color: #1C2E3D; */
    box-sizing: border-box; /* Add this */
    height: auto; /* Ensure height is determined by content */
    max-height: none; /* Remove any max-height restrictions */
    white-space: normal; /* Ensure text wraps */
}

.chat-textarea {
    width: 100%;
    padding: 17px;
    border: 1px solid #141A21;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    resize: vertical; /* Allow vertical resizing */
    overflow-y: auto; /* Show scrollbar if needed */
    font-size: 16px;
    line-height: 1.5; /* Adjust line height for better spacing */
    min-height: 62px; /* Minimum height */
}

@media screen and (max-width: 767px) {/*bootstrap col-md*/

    .modal-content-assistent {
        max-height: 100vh;
    }
}