#profile-page .new_chat {
    height: 850px;
}

#profile-page .new_chat .chat_messages .rsev_item,
#profile-page .new_chat .chat_messages .send_item {
    /*display: flex;*/
}

#profile-page .new_chat .chat_messages .rsev_item .avatar,
#profile-page .new_chat .chat_messages .send_item .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-inline-end: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

#profile-page .new_chat .chat_messages .rsev_item .avatar img,
#profile-page .new_chat .chat_messages .send_item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-page .new_chat .chat_content .user_info.group_info .user_card .user_img {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

#profile-page .new_chat .chat_content .user_info.group_info .user_card h6 {
    font-size: 9px;
    margin-bottom: 0 !important;
    line-height: 1.3;
}

#profile-page .new_chat .chat_content .user_info.group_info .user_card .inf small {
    font-size: 8px;
}

#profile-page .new_chat .chat_content .user_info.group_info .person {
    border: 1px solid #fff2;
    margin: 10px 0;
    border-radius: 10px;
    background-color: #fff2;
}

.new_chat .users .user_card {
    cursor: pointer;
}

.no-chats {
    background-color: #16c0e5;
    border-color: #16c0e5;
}

.unread-msg-badge {
    position: absolute;
    left: 0;
}

.no-chat-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.no-chat-selected {
    text-align: center;
    color: #888;
}

.no-chat-selected i {
    font-size: 48px;
    margin-bottom: 10px;
}

.chat_messages .load-more {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    border: none;
    color: #fff; /* Adjust color as needed */
    cursor: pointer;
    font-size: 1.5rem; /* Adjust size for visibility */
}

.chat_messages .load-more:hover {
    /*text-decoration: underline;*/
    color: #a99c9c;
}

.chat_messages {
    position: relative;
}

.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    position: absolute;
    left: 0;
    bottom: 230px;
    background-color: #f0f0f0;
    border-radius: 10px;
    /*padding: 15px;*/
    width: 94%;
    left: 3%;
    /*overflow: hidden;*/
    max-height: 200px;
    overflow: auto;
}

.file-preview-item {
    text-align: center;
    width: 85px;
    word-wrap: break-word;
    position: relative;
    padding: 10px;
    background-color: #fff;
    margin: 5px;
    overflow: hidden;
    font-size: 10px;
    border-radius: 5px;
}

.file-preview-item img {
    width: 100%;
    height: auto;
    max-width: 80px;
    max-height: 80px;
    display: block;
    margin-bottom: 5px;
    border-radius: 5px;
}

.file-preview-item .remove-file {
    color: red;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    position: absolute;
    top: 4px;
    right: 7px;
}

.file-preview-item span:not(.remove-file) {
    display: none;
}

.file-preview-item .remove-file:hover {
    color: darkred;
}

.new_chat .chat-loader,
.chat_messages .messages-spinner {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: var(--main-color);
    z-index: 2;
}

.chat_messages .messages-spinner {
    left: 50%;
}

.blocked .unblock-button {
    transform: rotateX(0deg);
}

.multi-delete-chats {
    background: transparent;
    border: unset;
}

.highlight-card {
    background-color: #234d5f !important;
    transition: background-color 0.5s ease;
}

@media screen and (max-width: 991px)  {
    .file-preview-container {
        bottom: 100px;
        right: 20px;
        width: calc(100% - 40px);
        border-radius: 12px;
    }
    .file-preview-item {
        width: 45%;
    }
}





