    #chat-float {
        position: fixed;
        bottom: 40px;
        right: 80px;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        transition: opacity 1s ease, visibility 0.5s ease, transform 0.5s ease;
        /* Smooth transition */
        visibility: visible;
    }

    .hide-hover {
        opacity: 0;
        cursor: default;
    }

    .hide-hover:hover {
        opacity: 0;
        cursor: default !important;
    }

    .chat-mobile {
        display: none;
    }

    .unread-chat {
        top: 30%;
        right: 8px;
        font-size: 11.5px !important;
        height: 20px;
        padding-bottom: 0.5px;
        padding-right: .5rem;
        padding-left: .45rem;
        /* Remove padding to maintain the circle size */
        max-width: 20.5px;
        /* Fixed width for the circle */
        /* Fixed height for the circle */
        border-width: 1.5px !important;
        border-color: #677788 !important;
        background-color: #e60019 !important;
        color: white;
        border-radius: 50%;
        line-height: 1;
        display: flex;
        /* Flexbox for centering content */
        justify-content: center;
        /* Center text horizontally */
        align-items: center;
        /* Center text vertically */
        text-align: center;
    }

    .float-unread {
        padding-bottom: 0px !important;
        top: -5px;
        right: -7px;
    }

    #chat-display {
        position: fixed;
        bottom: 40px;
        opacity: 0;
        visibility: hidden;
        right: 95px;
        height: 0vh;
        width: 600px;
        max-width: 600px;
        max-height: 55vh;
        z-index: 2000;
        background-color: white;
        transition: all 0.8s ease;
    }

    #chat-display.active {
        opacity: 1;
        height: 60vh;
        /* Adjust this height based on your chatbox size */
        transition: all 0.5s ease 0.1s;
        visibility: visible;
    }

    #chat-box {
        max-width: 100px !important;
    }

    #exit-chat-nav {
        display: none;
    }

    @media (max-width: 992px) {

        /* Adjusts for tablet size */
        #chat-float {
            bottom: 30px;
            right: 50px;
        }

        #chat-display {
            bottom: 30px;
            right: 65px;

        }
    }


    @media (max-width: 768px) {

        #exit-chat-nav {
            display: inline-block;
        }

        .nav-chat {
            padding-top: 12px !important;
            padding-bottom: 0px !important;
            height: 90vh !important;
            max-height: 90vh !important;
            display: flex;
            flex-direction: column;
        }

        .chat-dashboard {
            height: 90vh !important;
            max-height: 90vh !important;
            box-shadow: none !important;

        }

        .chat-lg {
            display: none !important;
        }

        #chat-list-nav {
            border: none !important;
        }

        #chat-float {
            /* background-color: #677788;
            color: white;
            border-radius: 0 !important;
            bottom: 0px;
            right: 0px; */
            display: none;
            bottom: 30px;
            right: 30px;
            padding: 0.5rem 0.75rem !important;
            font-size: 1.2rem !important;
            /* Removes the "fixed" right positioning */
        }

        /* #chat-sidebar{
            display:block !important;
        } */

        .chat-mobile {
            display: inline-block !important;
            color: #677788 !important;
        }

        .chat-mobile:hover {
            color: #dc3545 !important;
        }

        .icon-chat {
            display: none;
        }
    }

    @media (max-width: 550px) {
        .nav-chat {
            padding-top: 0px !important;
        }
    }

    #chat-sidebar {
        width: 18rem !important;
        /* right: 101% !important; */
    }

    #chatbox-sidebar {
        width: 100% !important;
        z-index: 1100;
    }


    #chat-float:hover {
        cursor: pointer;
        transform: scale(1.05);
        /* Increase size slightly */
        box-shadow: 0 6px 12px rgba(220, 53, 69, 0.8);
        transition: transform 0.5s ease;
        color: red;
        /* Change shadow to red (danger) */
    }

    #chat-float.hidden {
        bottom: 0px;
        opacity: 0;
        /* Make the button transparent */
        visibility: hidden;
        /* Hide the button */
        transform: scale(0.5);
        /* Optional: Slightly shrink the button for effect */
        transition: transform 1s ease;
        /* Smooth transition */
    }



    .textarea-chat {
        padding: 0.5rem 1rem !important;
        /* Override Bootstrap padding */
        height: auto !important;
        /* Ensure height adjusts automatically */
        box-sizing: border-box;
        /* Include padding/border in height */
    }



    #chat-float:hover {
        transform: scale(1.05);
        /* Increase size slightly */
        box-shadow: 0 6px 12px rgba(220, 53, 69, 0.8);
        transition: transform 1s ease;
        /* Change shadow to red (danger) */
    }

    #exit-chat:hover,
    #exit-chat-nav:hover {
        transform: scale(1.05);
        cursor: pointer;
        color: red;
    }


    .hover-send:hover {
        cursor: pointer;
        color: #dc3545;
        border: #dc3545;
    }

    .list-chat:hover {
        cursor: pointer;
        background-color: #F5F5F5;
    }

    [id^="list-chat-"].active {
        background-color: #F5F5F5;
    }

    [id^="list-mobile-chat-"].active {
        background-color: #F5F5F5;
    }

    .chat-card {
        position: relative;
        background-color: #ffffff;
        /* Light card background */
        border-radius: 0px 15px 15px 15px;
        padding: 5px 10px;
        margin: 10px 0;
        max-width: 75%;
        color: black;
        /* Restrict max width for a better chat layout */
    }

    .chat-card-right {
        background-color: #e60019;
        border-radius: 15px 0px 15px 15px;
        padding: 5px 10px;
        margin: 10px 0;
        max-width: 75%;
        color: white;
        margin-left: auto;
    }

    .chat-product {
        background-color: white;
        border-radius: 10px 10px 10px 10px;
        padding: 10px 10px;
        max-width: 75%;
        margin-left: auto;
        color: black;
        /* Align right for right-side bubble */
    }

    .chat-product-left {
        background-color: white;
        border-radius: 10px 10px 10px 10px;
        padding: 10px 10px;
        max-width: 17rem;
        min-width: 17rem;
        color: black;
        /* Align right for right-side bubble */
    }

    .wishlist-chat:hover {
        color: #e60019 !important;
        cursor: pointer;
    }

    .wishlist-chat {
        color: #677788 !important;
    }

    .wishlist-chat-checked {
        color: #e60019 !important;
    }

    .wishlist-chat-checked:hover {
        color: #e6001ba7 !important;
        cursor: pointer;
    }

    .avatar-product {
        margin-right: 10px;
        width: 4.5rem;
        min-width: 4.5rem;
        min-height: 4.5rem;
        height: 4.5rem;
        max-width: 100%;
        max-width: 100%;
    }

    .avatar-seller {
        border-radius: 50%;
        padding: 2px;
        margin: 5px;
        margin-right: 7px;
        width: 2.5rem;
        height: 2.5rem;
    }

    .avatar-product-show {
        margin-right: 10px;
        width: 3rem;
        min-width: 3rem;
        min-height: 3rem;
        height: 3rem;
        max-width: 100%;
        max-width: 100%;
    }

    .close-product {
        right: -10px;
        top: -5px;
        padding-right: .35rem;
        padding-left: .35rem;
        border-width: 1.5px !important;
        background-color: white !important;
        border-color: #677788 !important;
        color: #677788 !important;
    }

    .exca-chat {
        left: -40px;
        padding-right: .5rem;
        padding-left: .5rem;
        border-width: 2px !important;
        border-color: #e60019 !important;
        top: 50%;
        transform: translateY(-50%);
    }

    .exca-fail {
        padding: .125rem .4rem;
        border-width: 2px !important;
        border-color: #e60019 !important;
    }

    .close-product:hover {
        color: #e60019 !important;
        transform: scale(1.05);
        border-color: #e60019 !important;

    }

    .button-chat-product {
        display: block;
        /* Ensure the button is treated as a block element */
        text-align: left;
        border-radius: 10px;
        transition: transform 0.3s ease;
        /* Smooth transition for the scaling effect */
    }

    .button-chat-product:hover {
        transform: scale(1.005);
        color: white;
        /* Scale the button to 110% of its original size */
    }


    #tablechatbox_wrapper .dataTables_scrollHead {
        display: none !important;
    }

    #thetable::-webkit-scrollbar,
    #chat-list::-webkit-scrollbar {
        width: 4px;
    }

    #chatCareFileSection::-webkit-scrollbar {
        height: 4px;
    }

    #thetable::-webkit-scrollbar-track,
    #chat-list::-webkit-scrollbar-track,
    #chatCareFileSection::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #thetable::-webkit-scrollbar-thumb,
    #chat-list::-webkit-scrollbar-thumb,
    #chatCareFileSection::-webkit-scrollbar-thumb {
        background: #888;
    }

    #thetable::-webkit-scrollbar-thumb:hover,
    #chat-list::-webkit-scrollbar-thumb:hover,
    #chatCareFileSection::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* #tablechatbox {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        width: 100%;
        text-align: left;
        white-space: nowrap;
        vertical-align: middle;
    } */

    .table-xs td {
        padding: 0.08rem !important;
        /* table-xs equivalent (this targets table cell padding) */
    }

    .double-check {
        width: 100%;
        display: inline-flex;
        align-items: center;
        position: relative;
    }

    .double-check .fa-check {
        font-size: 10px !important;
        /* Adjust the size as needed */
        color: white;
        /* Set the color */
    }

    #auto-expand {
        height: auto;
        line-height: 1.5;
        /* Adjust to your liking */
        overflow-y: hidden;
        white-space: pre-wrap;
        /* Ensure text wraps in the input */
    }

    .chat-readed {
        opacity: 1 !important;
    }

    .blink {
        animation: blink-animation 1s infinite;
    }

    @keyframes blink-animation {
        0%, 100% {
            opacity: 0.1;
            /* Fully visible */
        }

        50% {
            opacity: 0.8;
            /* Fully transparent */
        }
    }

    .spin-chat {
        left: -40px;
        padding-right: .5rem;
        padding-left: .5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .chat-spinner {
        border: 10px solid rgba(0, 0, 0, 0.1);
        /* Warna border yang tidak aktif */
        border-top: 10px solid #dc3545;
        /* Warna merah yang berputar */
        border-radius: 50%;
        width: 16px;
        /* Ukuran lingkaran */
        height: 16px;
        animation: spin-chat 1s linear infinite;
    }

    @keyframes spin-chat {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .fa-plus.hover-send {
        border: 2px solid #71869d
    }

    .fa-plus.hover-send:hover {
        cursor: pointer;
        color: #dc3545;
        border: #dc3545 solid 2px;
    }

    .close-file-chat-care {
        right: -10px;
        top: -14px;
    }

    a.close-file-chat-care:hover svg circle,
    a.close-file-chat-care:hover svg line {
        stroke: #dc3545;
    }

    .modal-dialog-transparent {
        background-color: transparent !important;
        min-width: none !important;
        width: auto !important;
    }

    .modal-content-transparent {
        background-color: transparent !important;
        border: none !important;
        min-width: none !important;
        width: auto !important;
    }

    .status-chat {
        margin-right: 6px;
        font-weight: 900 !important;
        font-size: 10px !important;
    }


    .image-fit {
        object-fit: contain;
        max-width: none !important;
        max-height: 90vh;
        display: block;
        /* Tetap pertahankan ini */
    }

    #fullImagePreview {
        background-color: transparent !important;
    }

    .img-hover-wrapper {
        position: relative;
        width: 40px;
        height: 40px;
        overflow: hidden;
    }

    .img-hover-wrapper .overlay-eye {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(128, 128, 128, 0.5);
        opacity: 0;
        transition: 0.3s;
        font-size: 1rem;
    }

    .img-hover-wrapper:hover .overlay-eye {
        opacity: 1;
        cursor: pointer;
    }

    .chat-card-image {
        border-radius: 10px;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .chat-card-image .overlay-eye {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(128, 128, 128, 0.5);
        /* abu-abu semi transparan */
        opacity: 0;
        transition: 0.3s;
        font-size: 1rem;
    }

    .chat-card-image:hover .overlay-eye {
        opacity: 1 !important;
        cursor: pointer;
    }

    .upload-spinner {
        border: 8px solid rgba(0, 0, 0, 0.1);
        border-top: 8px solid #ff3f52;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin-load 1s linear infinite;
    }

    .chat-document .upload-spinner {
        border: 6px solid rgba(0, 0, 0, 0.1);
        border-top: 6px solid #ff3f52;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        animation: spin-load 1s linear infinite;
    }

    .chat-document .percent-progress-text {
        position: absolute;
        top: 50%;
        left: 55%;
        transform: translate(-50%, -50%);
        font-size: 11px;
        font-weight: bold;
    }

    @keyframes spin-load {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .percent-progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 14px;
        font-weight: bold;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .chat-image {
        width: 100%;
        height: 100%;
        max-height: 270px;
        object-fit: cover;
        /* Maintains aspect ratio while filling the container */
    }

    .chat-card-document {
        width: 100%;
        max-width: 280px;
        display: flex;
        flex-direction: column;
    }

    .my-shadow {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    }

    .chat-document {
        width: 100%;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1) !important;
        border: 0 !important;
    }

    .chat-document:hover {
        cursor: pointer;
    }

    .chat-document::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0);
        transition: background-color 0.3s ease;
        z-index: 1;
    }

    .chat-document:hover::before {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .chat-document.bg-overlay::before {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .chat-document .icon-file {
        font-size: 30px;
    }

    .info-care-file {
        flex-grow: 1;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    .name-document {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    #chatCareFileSection {
        max-width: 100%;
        overflow-x: auto;
    }

    .chat-check {
        position: absolute;
        top: 1.5px;
        right: 31px;
    }

    .chat-check.white path {
        stroke: #ffffff;
        fill: #ffffff;
    }

    .chat-clock {
        position: absolute;
        top: 1px;
        right: 30px;
    }

    .chat-clock.white circle,
    .chat-clock.white path {
        stroke: #ffffff;
    }

    .check-unread.white {
        opacity: 0.6;
    }

    .check-read.white {
        opacity: 1;
    }

    .check-unread {
        opacity: 0.35;
    }

    .check-read {
        opacity: 0.9;
    }

    .text-chat-message {
        line-height: 1.2;
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
    }

    .block-chat {
        margin-top: .5rem;
    }

    .block-chat.same-sender {
        margin-top: .15rem;
    }

    .chat-card,
    .chat-card-right {
        font-size: 12.8px !important;
    }

    .list-chat-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .list-chat-latest-message {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        font-size: 12.5px !important;
    }

