/* chat */
* {
    scroll-behavior: smooth;
}

/* left user list box */

.left_box .form_group {
    padding: 16px;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
}

.left_box .form_group i {
    position: absolute;
    top: 29px;
    right: 32px;
    font-size: 16px;
    opacity: 0.5;
}

.user_list::-webkit-scrollbar {
    display: none;
}

.user_list {
    margin-top: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /*! border-radius: 1rem; */
    /*! padding: 1rem; */
    height: calc(601px - 52px);
    /*! border: 1px solid #E9E9E9; */
}

.user_list h5 {
    font-size: 0.875rem;
    /* margin: 0 5px; */
    display: flex;
    margin-bottom: 4px !important;
}

.user_list p {
    font-size: 12px;
    margin: 2px 0 0 !important;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    color: #AAAAAA;
}

.user_list .list-group-item.active p {
    color: white;
}

.user_list .list-group-item {
    padding: 10px 15px;
    background: #fff;
    border-color: transparent;
    border-top: 1px solid #efefef;
    cursor: pointer;
}

.user_list .list-group-item:hover {
    background: #e4f5ff;
}

.user_list .list-group-item.active {
    background-color: var(--theme);
    border-color: var(--theme);
    border-radius: 0px;
}

.user_list small {
    font-size: 10px;
    font-weight: 400;
}

.user_img {
    max-width: 2.75rem;
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    margin-right: 10px;
}

.user_img i {
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: 10px;

}

i.offline {
    color: red;
}

i.online {
    color: rgb(24, 202, 24);
}

i.block,
i.delete {
    color: red;
}

.user_img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.user_list .user_name {
    display: flex;
    justify-content: start;
    align-items: center;
}

.user_list .user_name small {
    margin-left: auto;
    display: block;
    color: #AAAAAA;
    font-size: 0.625rem;
    white-space: nowrap;
    margin-top: 4px;
}

.user_list .list-group-item.active small {
    color: white;
}

.ch_beg_box {
    margin-left: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.ch_beg_box span {
    max-width: 1.3rem;
    width: 98%;
    aspect-ratio: 1/1;
    background-color: var(--theme);
    color: #fff;
    border-radius: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
}

.chl_dots_btn {
    min-width: 2.5rem;
    max-width: 2.5rem;
    width: 100%;
    aspect-ratio: 1/1;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.938rem;
    border-radius: 50%;

}

/* Right chet box  */

.rigth_box_chat {
    position: relative;
    background: #fff;
    border-radius: 1.438rem;
    padding: 0px;
    border: none;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    overflow: hidden;
}

.chat_head {
    /* padding: 6px 10px; */
    display: flex;
    justify-content: start;
    align-items: center;
    /* border-bottom: 1px solid #e5e5e5; */
    /* min-height: ; */
    gap: 0.813rem;
    background: #F5F5F5;
    padding: 15px;
}

.chat_head img {
    max-width: 2.75rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.chat_head h5 {
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
}


.chat_head h5 span {
    color: #4BFD96;
    font-size: .75rem;
}

.chat_head .btn-group {
    margin-left: auto;
}

.chat_body::-webkit-scrollbar {
    display: none;
}

.chat_body {
    /* padding: 36px 16px 16px; */
    height: calc(601px - 130px);
    overflow-y: auto;
    margin-bottom: 0px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    padding: 20px;
}


.date_chat {
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    display: block;
    margin: 21px auto;
    width: fit-content;
}

.message {
    display: block;
    width: 60%;
    /* width: fit-content; */
    margin-bottom: 30px;
}



.message img {
    max-width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    width: 100%;
}


.message .mssg {
    margin: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #E9E9E9;
    border-radius: 1rem 1rem 1rem 0rem !important;
    color: var(--black);
    font-size: 15px;
    max-width: 100%;
    position: relative;
    min-width: 65px;
    font-weight: 500;
    z-index: 0;
    display: inline-block;
}

.message .mssg p {
    font-size: 0.90rem;
    margin-bottom: 0;
    width: fit-content;
}

.message .time_msg {
    width: 100%;
    font-size: 0.425rem;
    display: block;
    color: #888888;
    margin-top: 0.175rem;
}

.message .msgpik {
    width: 100%;
    max-width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.send {
    margin-left: auto;
    text-align: right;
}

.send .mssg {
    background-color: var(--theme);
    margin-left: auto;
    color: #fff;
    border-radius: 1rem 1rem 0rem 1rem !important;
    border: none;
    display: inline-block;
    text-align: left;
}

.send .mssg h5 {
    color: #000;
}

.send .mssg p {
    color: #fff;
}

.message.send .time_msg {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.4rem;
}

.chat_footer {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    background: transparent;
    gap: 1rem;
    margin-top: auto;

    padding: 15px;
}

.chat_footer .input_group label i {
    width: 30px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.chat_footer button {
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: var(--black);
    width: 100%;
    padding: 0 2px 0px 0px;
    font-size: 1.5rem;
    font-weight: 500;
}



.left_box {
    background: #fff;
    border-radius: 1.438rem;
    border: 1px solid #e1e1e1;
    padding: 0;
    overflow: hidden;
}

.form_control {
    background-color: #fff;
    height: 50px;
    padding: 1rem 1rem 1rem 2.2rem;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    border: 1px solid #E1E1E1;
    border-radius: 1.50rem;
}

.form_control:focus {
    outline: none;
    box-shadow: none;
}

.chat_tab li {
    max-width: 284px;
    width: 100%;
    margin: 0 10px;
}

.chat_tab li button {
    width: 100%;
    height: 60px;
    font-size: 22px;
    color: #000;
    background-color: #e5e5e5 !important;
}

.chat_tab li button:hover {
    color: #000;
}

.chat .nav-pills .nav-link.active,
.chat .nav-pills .show>.nav-link {
    color: var(--bs-nav-pills-link-active-color);
    background-color: #cd1716 !important;
}


.chat_b_top {
    padding: 0 0 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat_b_top span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: black;
}

.input_group input, .input_group select {
    border-radius: 50px;
    border: 1px solid #E9E9E9;
    background: #FFF;
    padding: 16px 20px;
    width: 100%;
    font-size: .7rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ls_in_icon, .rs_in_icon {
    position: absolute;
    right: 2rem !important;
    top: 50% !important;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #888;
    display: flex;
    z-index: 6;
}

.chat_b_top a {
    /*! padding: 10px 15px; */
    font-size: 26px;
    font-weight: 500;
    /*! background-color: #000; */
    color: black;
    border-radius: 10px;
    text-decoration: none;
    margin-left: 10px;
    line-height: 26px;
}


.chat_drop_btn {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    padding: 0 20px;
    cursor: pointer;
}

.input_group {
    position: relative;
    margin-bottom: .75rem;
    width: 100%;
}

.chat_footer .input_group i {
    color: #0D0D0D;
    font-size: 2.0rem;
}

.dropdown-menu .dropdown-item {
    font-size: 14px;
}

.ls_in_icon img, .rs_in_icon img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.left_voice {
    display: flex;
}

.left_voice i {
    background: var(--theme);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    font-size: 20px;
    margin-right: 6px;
}

.chat_footer button {
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: var(--theme);
    width: 100%;
    padding: 0 2px 0px 0px;
    font-size: 1.5rem;
    font-weight: 500;
}

/* /chat */



@media (max-width: 1199.98px) {

    /* chat */
    #mobi .chat_list {
        width: 0;
        position: absolute;
        top: 0;
        left: 0;
        /* background-color: white; */
        overflow: hidden;
        transition: all 0.3s;
        opacity: 0;
    }

    /* .left_box {
        border-left: none;
    } */


    .chat_border {
        border: none;
        padding: 0 10px;
    }

    .rigth_box_chat {
        position: absolute;
        bottom: 0;
        left: 50%;
        z-index: 8;
        width: calc(100% - 20px);
        transform: translate(-50%);
        border-right: 1px solid #ddd;
        border-left: 1px solid #ddd;
        display: none;
    }

    .showChat .rigth_box_chat {
        display: flex;
    }

    .showChat .right_ssbox {
        height: 0 !important;
    }

    .chat_footer {
        border-right: 1px solid #FFF;
    }

    /* .chat_body {
        height: calc(601px - 129px);
    } */

    .user_list .list-group-item.active {
        border-radius: 0px;
    }

    .left_box .form_group {
        padding: 16px 0;
    }

    .chat_b_top {
        padding: 0px 0px 0.5rem;
    }

    .message .msgpik {
        max-width: 80px;
        height: 80px;
    }

    .chat_footer button {
        max-width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    /* .left_box {
        padding: 0.5rem;
    } */

    .user_list {
        padding: 0rem;
    }

    .user_list .list-group-item {
        padding: 4px 8px;
    }

    .ch_beg_box span {
        max-width: 1.2rem;
        font-size: 0.65rem;
    }

    .chat_head {
        padding: 10px;
    }
}