* {
    box-sizing: border-box;
}
body{
    /* direction: rtl; */
}
a {
    text-decoration: none;
    display: block;
    color: #fff;
}

.chats-list {
    height: 80px;
    padding: .5rem 1.9rem;
    margin: .25rem;
}
.bg-main{
    background-color: #faf8f5;
}
.main-img-wrapper {
    position: relative;

    & .img-wrapper {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0px 5px 5px 0px rgba(44, 44, 44, 0.2);
        overflow: hidden;
    }
}


.content-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.date-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.time-text {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.text-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
}


.cursor-pointer {
    cursor: pointer;
}

.chat-link {
    display: block;
    padding: 1rem 0;
    cursor: pointer;
    line-height: 1;
}

.badge-success {
    background-color: rgb(67, 243, 67);
}

.recent-message {
    background-color: #D6C1B8;
    border-radius: .5rem;

    & .text-heading, & .time-text ,& .date-text{
        color: #fff !important;
    }
}

.add-chats-btn {
    background-color: #D6C1B8;
    border: 0;
    color: #fff;
    transition: all .3s ease-in-out;

    &:hover {
        transform: scale(0.9);
    }
}

.list-unstyle {
    list-style: none;
}

.btn-main {
    background-color: #D6C1B8;
    transition: all .3s ease-in-out;
    color: #fff;

    &:hover {
        background-color: #b86cdd;
        color: #fff;
    }
}
.body-scroll{
    height: 79vh;
    padding: 1rem 0;
    &::-webkit-scrollbar {
        width: 5px;
        height: 0;
        background-color: #878a99;
    }
    &::-webkit-scrollbar-thumb{
        background-color: #D6C1B8;
        border-radius: 10px;
    }
}










/* Chat Send Css Start */
.go-back-icon {
    font-size: 32px;
    color: #fff;
}

.user-img-wrapper {
    position: relative;

    & .img-wrapper {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0px 5px 5px 0px rgba(44, 44, 44, 0.2);
        overflow: hidden;
    }

    &.active {
        position: relative;

        &::before {
            content: "";
            position: absolute;
            top: 70%;
            right: 0;
            width: 12px;
            height: 12px;
            background-color: rgb(67, 243, 67);
            border-radius: 50%;
            box-shadow: 2px 2px 2px 0px #b86cdd;
        }
    }
}

.content-wrapper {
    & .text-heading {
        font-size: 18px;
        font-weight: 600;
        color: #000;
        text-align: left !important;
    }

    & .date-text {
        font-size: 12px;
        font-weight: 600;
        color: #000;
        text-align: left !important;
    }
}

.send-box-wrapper {
    width: 100%;
    height: 100vh;
}

.chat-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;

    & .chat-header {
        height: 10%;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #D6C1B8;
        background-color: #fff;
        padding: 0 1rem;
    }

    & .chat-body {
        height: 80%;
        width: 100%;
        overflow-y: auto;
        position: relative;
        overflow-x: hidden;
        padding-top: 1.5rem;

        &::-webkit-scrollbar {
            width: 5px;
            background-color: #878a99;
        }
        &::-webkit-scrollbar-thumb{
            background-color: #D6C1B8;
            border-radius: 10px;
        }
    }

    & .chat-footer {
        height: 30%;
    }
}

.text-input {
    padding-right: 43px;
    padding-left: 43px;
}

.upload-btn {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    left: 0%;
    background-color: transparent;
    border: 0;
}

.send {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    right: 0%;
    background-color: transparent;
    border: 0;
}

.my-chat-area {
    width: 100%;
    display: flex;
    justify-content: end;
    position: relative;

    & .current-time {
        color: #878a99;
        font-size: 10px;
        margin: 0;
        position: absolute;
        bottom: -0%;
        right: 1%;
    }
}

.chat-text-area {
    position: relative;
    margin-bottom: 1.5rem;
    background-color: #C0BBB3;
    color: #fff;
    width: fit-content;
    /* border-radius: 6px; */
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;

    &::after {
        display: block;
        clear: both;
        content: '';
        position: absolute;
        bottom: -8px;
        right: -6px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 10px 14px 20px;
        border-color: transparent transparent #C0BBB3 transparent;
        transform: rotate(37deg);
    }
}

.user-text-area {
    width: 100%;
    position: relative;

    &.active {
        & .chat-user-text {
            position: relative;

            &::before {
                content: "";
                position: absolute;
                background: rgb(51 155 51);
                ;
                width: 12px;
                height: 12px;
                border-radius: 50%;
                top: -5px;
                right: -5px;
                z-index: 1;
                box-shadow: 0px 5px 5px 0px #b86cdd;
            }
        }
    }

    .current-time {
        color: #878a99;
        font-size: 10px;
        margin: 0;
        position: absolute;
        bottom: -40%;
        left: 0%;
    }

    & .sender-user-img {
        position: absolute;
        content: "";
        width: 30px;
        height: 30px;
        overflow: hidden;
        border-radius: 50%;
        bottom: 0;
        left: 0;
    }
}

.chat-user-text {
    position: relative;
    margin-bottom: 1.5rem;
    background-color: #D6C1B8;
    color: #fff;
    width: fit-content;
    text-align: left;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    margin-left: 2.75rem;

    &::after {
        display: block;
        clear: both;
        content: '';
        position: absolute;
        bottom: -15px;
        left: 1px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 7px 18px 15px;
        border-color: transparent transparent transparent #D6C1B8;
        transform: rotate(-7deg);
    }
}

.btn-icon {
    background-color: transparent;
    border: 0;
    font-size: 1.5rem;
    color: #D6C1B8;
    width: 40px;
    height: 40px;
    line-height: 40px;
    transition: all .3s ease-in-out;

    &:hover {
        background-color: #dda7f8;
        color: #fff;
    }
}

.bg-view-img {
    height: 150px;
    background-image: url(../img/img-9.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 6rem;
}

.view-modal-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    height: 99vh;
    padding: 0;
    margin: 0;
    z-index: 1;
    width: 0%;
    overflow: hidden;
    max-width: 100%;
    background-color: #393636c9;
    transition: all .3s ease-in-out;

    .view-modal {
        position: absolute;
        right: 0;
        left: 70.2%;
        top: 0%;
        max-width: 30%;
        width: 100%;
        height: 100%;
        z-index: 2;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.user-pic {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translateX(-50%);

    & .user-img {
        width: 6rem;
        height: 6rem;
        border-radius: 50%;
        border: .25rem solid #D6C1B8;
        overflow: hidden;

        & img {
            width: 100%;
            height: 100%;
        }
    }
}

.online-text {
    color: #D6C1B8;
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        background-color: rgb(67, 243, 67);
        border-radius: 50%;
    }
}

.text-custom-light {
    color: #878a99;
}

.btn-download {
    background-color: transparent;
    border: 0;
}

/* Chat Send Css End */