.chat ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.chat ::-webkit-scrollbar-thumb {
    cursor: pointer;
    background: #c2c4c7;
    border-radius: 0px;
}

.chat ::selection {
    background-color: #c2c4c7;
    color: #fff;
}

.chat -webkit-::selection {
    background-color: #c2c4c7;
    color: #fff;
}

.chat ::-moz-selection {
    background-color: #c2c4c7;
    color: #fff;
}


/****     chat      ***/

.chat .h_text {
    font-size: 17px;
    color: #000;
    padding-left: 65px;
}

.side-chat {
    background-color: #fff;
    margin-bottom: 15px;
    position: relative;
}

.side-chat li {
    width: 100%;
    border-bottom: 1px solid #ebf0f6;
}

.side-chat li:last-child {
    border-bottom: 0;
}

.nav-position {
    height: 651px;
    overflow: hidden;
    overflow-y: auto;
    border-bottom: 1px solid #dddddd;
}

.search-chat {
    cursor: pointer;
    margin-bottom: 0px;
    height: 40px;
    padding-right: 20px;
    border: 0;
    background-color: #f5f5f5;
    border-radius: 0;
    position: relative;
}



.search-chat:focus {
    background-color: #f5f5f5
}

.search-chat::placeholder {
    color: #9b9b9b;
}


.chat-list .nav-link:hover,
.chat-list .nav-link:active,
.chat-list .nav-link:focus {
    background-color: #f6f6f6;
}


.chat-list .profile-user {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-list .online {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: var(--Color);
    font-size: 10px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
}

.chat-list .time-messege {
    /* position: absolute;
    right: 15px;
    top: 0; */
    font-size: 13px;
    color: #898989;
    float: left;
    margin-top: 3px;
    font-weight: normal;
}

.chat .nav-link .pra_text {
    color: #7a7a7a;
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 0;
}


.right-side-chat {
    margin-bottom: 15px;
    overflow: hidden;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}


.dropdown-setting.btn-color {
    position: absolute;
    left: 25px;
    top: 20px;
    background-color: var(--mainColor);
    padding: 7px 0;
    font-size: 13px
}

.top-nav-chat {
    padding: 25px;
    border-bottom: 1px solid #ddd;
}

.top-nav-chat h5 {
    font-size: 17px;
    color: #000;
    margin-bottom: 5px;
}

.top-nav-chat p {
    font-size: 12px;
    color: #555;
    margin-bottom: 0;
}

.top-nav-chat img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 20px;
}

.chat hr {
    border-top: 1px solid #ebf0f6 !important;
    border: 0;
    margin: 5px auto;
}

.text-title {
    position: relative;
    top: -29px;
    background-color: #fff;
    padding: 0px 26px;
    text-align: center;
    margin: 10px auto;
}

.bottom-nav-chat {
    position: absolute;
    bottom: 0;
    border-radius: 13px;
}

.bottom-nav-chat .text-message {
    width: 100%;
    height: 50px !important;
    background-color: #f1f1f1;
    padding-left: 150px;
    padding-right: 15px;
    resize: none !important;
    font-size: 16px;
    border: 0;
    border-radius: 10px;
    padding-top: 14px;
}

.bottom-nav-chat .line {
    width: 1px;
    height: 27px;
    background-color: #898989;
    position: absolute;
    top: 12px;
    left: 115px;
}

.send-icon {
    position: absolute;
    left: 18px;
    top: 11px;
    background-color: transparent;
    color: #898989;
    padding: 0;
    border-radius: 50%;
    border: 0;
    font-size: 18px;
    cursor: pointer
}

.style-bottom {
    padding: 25px 15px;
}


/*  new  */

.content-messege {
    padding-right: 25px;
    padding-left: 25px;
    height: 534px;
}

.message {
    list-style: none;
}

.messages {
    position: relative;
    list-style: none;
    background-color: #F2FBFB;
    padding: 25px;
    overflow: hidden;
    overflow-y: auto;
    height: 550px;
}

.messages .message {
    clear: both;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.5s linear;
    opacity: 0;
}

.messages .message img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    max-width: 50px;
    min-width: 50px;
}

.messages .message.left .text_wrapper {
    float: right;
    margin-right: 10px;
    width: 53%;
    color: #3d3a3a
}

.messages .message .text_wrapper h3 {
    font-size: 17px;
    font-weight: bold;
}

.messages .message .text_wrapper .text {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
}

.messages .message.left img {
    float: right;
}

/* .messages .message.left .text_wrapper::before {
    content: "";
    position: absolute;
    top: 19%;
    right: 100%;
    margin-top: -5px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent #000 transparent transparent;
} */

.messages .message.right .text_wrapper {

    float: left;
    margin-left: 10px;
    width: 53%;
    color: #000
}

.messages .message.right img {
    float: left;
}

.messages .message.right .text_wrapper .text {
    background-color: var(--mainColor);
    color: #fff;
    text-align: left;
}

.messages .message.right .text_wrapper h3 {
    text-align: left;
}

.message.right .time {
    text-align: left;
}

/* .messages .message.right .text_wrapper::after {
    content: "";
    position: absolute;
    top: 19%;
    left: 100%;
    margin-top: -5px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #eee;
} */

.messages .message.appeared {
    opacity: 1;
}

.messages .message .text_wrapper {
    display: inline-block;
    padding: 5px 15px 13px;
    border-radius: 6px;
    width: calc(100% - 85px);
    min-width: 100px;
    position: relative;
}


.send_message {
    width: 140px;
    height: 50px;
    display: inline-block;
    border-radius: 50px;
    background-color: #a3d063;
    border: 2px solid #a3d063;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s linear;
    text-align: center;
    float: left;
}

.message_template {
    display: none;
}

.message .text {
    margin-bottom: 10px;
    font-size: 17px;
    padding: 0
}

.message .time {
    font-size: 13px;
    padding: 0;
    color: var(--grayColor);
}

.chat .dropdown-menu.show {
    right: -50px !important;
    box-shadow: 0px 1px 3px #cbcbcb;
    border: 0;
}

.chat .dropdown-toggle::after {
    content: "\f142";
    font-family: 'Font Awesome 5 Pro';
    border: 0;
    margin-right: 0;
    font-size: 21px;
    padding: 0 7px;
}

.chat .dropdown-item {
    font-size: 13px;
    color: #626262;
    padding-top: 6px;
    padding-bottom: 4px;
    padding-right: 18px;
}

.chat .dropdown-item i {
    width: 27px;
}

.chat .dropdown-menu {
    padding-top: 8px;
    padding-bottom: 8px;
}

.chat .paragrah-limit {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media(max-width:768px) {
    .side-chat:before {
        right: 13px !important
    }
}

@media(max-width:600px) {
    .right-side-chat .dropdown-setting.btn-color {
        position: unset;
        padding: 10px;
        margin-top: 10px !important;
        display: block;
        max-width: 140px;
        margin-right: auto;

    }

    .top-nav-chat {
        padding: 12px 25px !important;
    }
}

.modal .close {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    z-index: 5;
    opacity: 1;
}

.chat_search {
    border-bottom: 1px solid #ddd;
    padding: 0px;
    position: relative;
}


.chat_search:after {
    content: "\f002";
    font-family: 'Font Awesome 5 Pro';
    position: absolute;
    left: 30px;
    bottom: 8px;
    color: #9b9b9b;
    z-index: 1;
}

.chat-list h6 {
    font-size: 18px;
    font-weight: bold;
    font-family: "Tajawal";
    color: #000;
    margin-bottom: 10px;
}

.chat-list .paragrah-limit {
    font-size: 16px;
    font-family: "Tajawal";
    color: #343434;
    margin: 0;
}

@media(max-width:768px) {
    .chat-list .user_image {
        text-align: right !important;
        margin-bottom: 20px;
    }
}

/* file input */
.file_input {
    height: 0;
}

.file_input #file-input {
    display: none;
}

.file_input label[for='file-input'] * {
    vertical-align: middle;
    cursor: pointer;
}

.file_input label[for='file-input'] span {
    margin-right: 10px;
    font-size: 12px;
    color: #888;
}

.file_input i.remove {
    vertical-align: middle;
    margin-right: 5px;
    cursor: pointer;
    display: none;
    color: red;
    font-size: 13px;
}

.file_input .fa-paperclip {
    position: absolute;
    left: 60px;
    top: 15px;
    font-size: 20px;
    color: #898989;
}
