    ::-webkit-scrollbar {
        width: 5px;
    }

    /* Track */
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Handle */
    ::-webkit-scrollbar-thumb {
        background: #bec4c4;
    }

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    #chat-box {
        position: fixed;
        bottom: 50px;
        right: 20px;
        max-height: 500px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999 !important;
    }

    #chat-box .card-header {
        background-color: #007bff;
        color: white;
    }

    #close-chat {
        cursor: pointer;
        font-size: 20px;
    }

    .avatar {
        border: 2px solid #F3F3F3;
    }

    .message-area {
        height: 100vh;
        overflow: hidden;
        padding: 30px 0;
    }

    .chat-area {
        position: relative;
        width: 100%;
        border-radius: 0.3rem;
        height: 90vh;
        overflow: hidden;
        min-height: calc(100% - 1rem);
    }

    .chatlist {
        outline: 0;
        height: 100%;
        overflow: hidden;
        width: 250px;
        height: 500px;
        float: left;
        background: white;
        border-radius: 15px 15px 0px 0px;
    }

    .chat-area .modal-content {
        border: none;
        border-radius: 0;
        outline: 0;
        height: 100%;
    }

    .chat-area .modal-dialog-scrollable {
        height: 100% !important;
    }

    .chatbox {
        background-color: #fff;
        width: 400px;
        overflow: hidden;
        height: 500px;
        border-radius: 15px 15px 0px 0px;
    }

    .chatbox .modal-dialog,
    .chatlist .modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    .msg-search {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-radius: 15%;
    }

    .chat-area .form-control {
        display: block;
        width: 80%;
        padding: 0.375rem 0.75rem;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        color: #222;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ccc;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0.25rem;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

    .chat-area .form-control:focus {
        outline: 0;
        box-shadow: inherit;
    }

    a.add img {
        height: 36px;
    }

    .chat-area .nav-tabs {
        border-bottom: 1px solid #dee2e6;
        align-items: center;
        justify-content: space-between;
        flex-wrap: inherit;
    }

    .chat-area .nav-tabs .nav-item {
        width: 100%;
    }

    .chat-area .nav-tabs .nav-link {
        width: 100%;
        color: #180660;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.5;
        text-transform: capitalize;
        margin-top: 5px;
        margin-bottom: -1px;
        background: 0 0;
        border: 1px solid transparent;
        border-top-left-radius: 0.25rem;
        border-top-right-radius: 0.25rem;
    }

    .chat-area .nav-tabs .nav-item.show .nav-link,
    .chat-area .nav-tabs .nav-link.active {
        color: #222;
        background-color: #fff;
        border-color: transparent transparent #000;
    }

    .chat-area .nav-tabs .nav-link:focus,
    .chat-area .nav-tabs .nav-link:hover {
        border-color: transparent transparent #000;
        isolation: isolate;
    }

    .chat-list h3 {
        color: #000;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.5;
        text-transform: capitalize;
        margin-bottom: 0;
    }

    .chat-list p {
        color: #000;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
        /* text-transform: capitalize; */
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .chat-list a.d-flex {
        margin-bottom: 15px;
        position: relative;
        text-decoration: none;
    }

    .chat-list .active {
        display: block;
        content: '';
        clear: both;
        position: absolute;
        bottom: 3px;
        left: 34px;
        height: 12px;
        width: 12px;
        background: #00DB75;
        border-radius: 50%;
        border: 2px solid #fff;
    }

    .msg-head h3 {
        color: #222;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .msg-head a {
        color: #222;
    }

    .msg-head p {
        color: #343434;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        text-transform: capitalize;
        margin-bottom: 0;
    }

    .msg-head {
        padding: 15px;
        border-bottom: 1px solid #f3f3f3;
    }

    .moreoption {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .moreoption .navbar {
        padding: 0;
    }

    .moreoption li .nav-link {
        color: #222;
        font-size: 16px;
    }

    .moreoption .dropdown-toggle::after {
        display: none;
    }

    .moreoption .dropdown-menu[data-bs-popper] {
        top: 100%;
        left: auto;
        right: 0;
        margin-top: 0.125rem;
    }

    .msg-body ul {
        padding-left: 0;
        overflow: hidden;
    }

    .msg-body ul li {
        list-style: none;
        margin: 15px 0;
    }

    .msg-body ul li.sender {
        display: block;
        width: 100%;
        position: relative;
    }

    /*.msg-body ul li.sender:before {*/
    /*    display: block;*/
    /*    clear: both;*/
    /*    content: '';*/
    /*    position: absolute;*/
    /*    top: -6px;*/
    /*    left: -7px;*/
    /*    width: 0;*/
    /*    height: 0;*/
    /*    border-style: solid;*/
    /*    border-width: 0 12px 15px 12px;*/
    /*    border-color: transparent transparent #0095E8 transparent;*/
    /*    -webkit-transform: rotate(-37deg);*/
    /*    -ms-transform: rotate(-37deg);*/
    /*    transform: rotate(-37deg);*/
    /*}*/

    .msg-body ul li.sender p {
        color: #000;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 400;
        padding: 15px;
        background: #fff;
        display: inline-block;
        /*border-bottom-left-radius: 10px;*/
        /*border-top-right-radius: 10px;*/
        /*border-bottom-right-radius: 10px;*/
        border-radius: 10px;
        margin-bottom: 0;
    }

    .msg-body ul li.sender p b {
        display: block;
        color: #180660;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 500;
    }

    .msg-body ul li.repaly {
        display: block;
        width: 100%;
        text-align: right;
        position: relative;
    }

    /*.msg-body ul li.repaly:before {*/
    /*    display: block;*/
    /*    clear: both;*/
    /*    content: '';*/
    /*    position: absolute;*/
    /*    bottom: 15px;*/
    /*    right: -7px;*/
    /*    width: 0;*/
    /*    height: 0;*/
    /*    border-style: solid;*/
    /*    border-width: 0 0px 15px 12px;*/
    /*    border-color: transparent transparent #fff transparent;*/
    /*    -webkit-transform: rotate(37deg);*/
    /*    -ms-transform: rotate(37deg);*/
    /*    transform: rotate(37deg);*/
    /*}*/

    .msg-body ul li.repaly p {
        color: #fff;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 400;
        padding: 15px;
        background: #0095E8;
        display: inline-block;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 10px;
        margin-bottom: 0;
    }

    .msg-body ul li.repaly p b {
        display: block;
        color: #061061;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 500;
    }

    .msg-body ul li.repaly:after {
        display: block;
        content: '';
        clear: both;
    }

    .time {
        display: block;
        color: #000;
        font-size: 12px;
        line-height: 1.5;
        font-weight: 400;
    }

    li.repaly .time {
        margin-right: 20px;
    }

    .divider {
        position: relative;
        z-index: 1;
        text-align: center;
    }

    .msg-body h6 {
        text-align: center;
        font-weight: normal;
        font-size: 14px;
        line-height: 1.5;
        color: #222;
        display: inline-block;
        padding: 0 5px;
        margin-bottom: 0;
    }

    .divider:after {
        display: block;
        content: '';
        clear: both;
        position: absolute;
        top: 12px;
        left: 0;
        border-top: 1px solid #EBEBEB;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

    .send-box {
        padding: 0px 15px 13px 15px;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    }

    .send-box form {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* margin-bottom: 15px; */
    }

    .send-box .form-control {
        display: block;
        padding: 0.375rem 0.75rem;
        width: 100%;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        color: #222;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ccc;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0.25rem;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }


    .send-btns .button-wrapper {
        position: relative;
        height: auto;
        width: auto;
        text-align: left;
        margin: 0 auto;
        display: block;
        border-radius: 3px;
        float: left;
        margin-right: 5px;
        margin-bottom: 5px;
        overflow: hidden;
    }

    .send-btns .button-wrapper span.label {
        position: relative;
        z-index: 1;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: 100%;
        cursor: pointer;
        color: #343945;
        font-weight: 400;
        text-transform: capitalize;
        font-size: 13px;
    }

    #upload {
        display: inline-block;
        position: absolute;
        z-index: 1;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        cursor: pointer;
    }

    .send-btns .attach .form-control {
        display: inline-block;
        width: 120px;
        height: auto;
        padding: 5px 8px;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
        color: #343945;
        background-color: #F6F7FA;
        background-clip: padding-box;
        border: 1px solid #F6F7FA;
        border-radius: 3px;
        margin-bottom: 5px;
    }

    .send-btns .button-wrapper span.label img {
        margin-right: 5px;
    }

    .button-wrapper {
        position: relative;
        width: 100px;
        height: 100px;
        text-align: center;
        margin: 0 auto;
    }

    button:focus {
        outline: 0;
    }

    .add-apoint {
        display: inline-block;
        margin-left: 5px;
    }

    .add-apoint a {
        text-decoration: none;
        background: #F6F7FA;
        border-radius: 8px;
        padding: 8px 8px;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.2;
        color: #343945;
    }

    .add-apoint a svg {
        margin-right: 5px;
    }

    .chat-icon {
        display: none;
    }

    .closess i {
        display: none;
    }



    @media (max-width: 767px) {
        .chat-icon {
            display: block;
            margin-right: 5px;
        }

        .chatlist {
            width: 100%;
        }

        .chatbox {
            width: 100%;
            position: absolute;
            left: 1000px;
            right: 0;
            background: #fff;
            transition: all 0.5s ease;
            border-left: none;
            transform: none;

        }

        .showbox {
            left: 0 !important;
            transition: all 0.5s ease;
            transform: none;

        }

        .msg-head h3 {
            font-size: 14px;
        }

        .msg-head p {
            font-size: 12px;
        }

        .chat-list h3 {
            font-size: 14px;
        }

        .chat-list p {
            font-size: 12px;
        }

        .msg-body ul li.sender p {
            max-width: 80%;
            text-align: left;
            font-size: 13px;
            padding: 8px;
            border-bottom-left-radius: 6px;
            border-top-right-radius: 6px;
            border-bottom-right-radius: 6px;
        }

        .msg-body ul li.repaly p {
            max-width: 80%;
            text-align: left;
            font-size: 13px;
            padding: 8px;
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
            border-bottom-left-radius: 6px;
        }

        #chat-box {
            width: 100%;
            padding-left: 21px;
            padding-right: 0px;
        }
    }

    #chat-form {
        display: flex;
        flex-direction: column;
        gap: 5px;
        /* Smaller gap between images and textarea */
        align-items: flex-start;
        /* Align everything to the left */
    }

    #image-preview-container {
        display: flex;
        gap: 5px;
        /* Reduced space between images */
        flex-wrap: wrap;
        align-items: center;
        padding-top: 10px;
    }

    .image-preview-wrapper {
        position: relative;
        display: inline-block;
        padding: 4px;
        /* Padding around each image */
        background-color: #f1f1f1;
        /* Optional background color for padding visibility */
        border-radius: 8px;
        /* Rounded corners */
    }

    .image-preview-wrapper img {
        max-height: 40px;
        /* Smaller image height */
        max-width: 40px;
        /* Smaller image width */
        border-radius: 4px;
        /* Rounded corners for images */
    }

    .delete-btn {
        position: absolute;
        top: -4px;
        right: -4px;
        background-color: black;
        color: white;
        border: none;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        font-size: 10px;
        cursor: pointer;
    }

    #input-message {
        font-size: 14px;
        /* Smaller font size for the textarea */
        padding: 6px;
        /* Padding inside the textarea */
        width: 100%;
        /* Full width */
        resize: none;
        /* Disable resizing if preferred */
    }

    .bg-select-chat {
        background: #F3F3F3;

    }

    .loading-overlay {
        position: absolute;
        top: 50;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .spinner-border {
        width: 3rem;
        height: 3rem;
    }

    .chat-loading-overlay {
        position: absolute;
        top: 50;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .welcome-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
        background-color: var(--light) !important;
    }

    .sender p {
        display: inline-block;
        max-width: 80%;
        text-align: left;
        word-break: break-word;
        padding: 10px;
        background-color: #0099ff;
        color: white;
        border-radius: 10px;
        white-space: normal;
    }

    .sender a {
        color: black;
    }

    .repaly a {
        color: white;
    }


    .repaly p {
        display: inline-block;
        max-width: 80%;
        text-align: left;
        word-break: break-word;
        padding: 10px;
        background-color: #0099ff;
        color: white;
        border-radius: 10px;
        white-space: normal;
    }

    .unread-count {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 20px;
        height: 20px;
        position: absolute;
        top: 20px;
        right: 0;
        border-radius: 50%;
        background: #EC1E1E;
        color: white;
        font-size: 8px;
        font-weight: bold;
    }

    .new-message-noti{
        position: sticky;
        bottom: 10px;
        text-align: center;
    }

    .new-message-noti:hover{
        cursor: pointer;
    }

    .noti-new-message-text{
        padding: 10px 15px;
        background: var(--primary);
        color: var(--secondary);
        border-radius: 12px;
    }

    .notification-chat-badge {
        display: inline-block;
        width: 32px;
        height: 17px;
        border-radius: 100px;
        background: #EC1E1E;
        color: #fff;
        text-align: center;
        line-height: 17px;
        font-size: 12px;
        font-weight: bold;
    }

    .fancybox-container {
        z-index: 99999 !important;
    }

    .hidden-important {
        display: none !important;
    }

    .chat-header .input-group-text {
        border-radius: 8px;
        font-size: 13px;
    }

    .search-chat {
        border-top-right-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
    }