    #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;
    }

    

    .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;
    }
     
    #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) { /* Adjusts for tablet size */
        #exit-chat-nav {
            display: inline-block;
        }
        .nav-chat{
            /* margin: 0 0.5px; */
            /* margin-top: -2rem; */
            padding-top: 12px !important;
            padding-bottom: 0px !important;
            height: 90vh !important; /* Make it fill the viewport height on tablets */
            max-height: 90vh !important;
            display: flex; /* Optional: Flex layout to help with alignment */
            flex-direction: column; 
        }

        .chat-dashboard{
            height: 90vh !important; /* Make it take the full height of the parent */
            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 1s 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: red;
    }

    .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;
    }
    
    #thetable::-webkit-scrollbar-track,
    #chat-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    #thetable::-webkit-scrollbar-thumb,
    #chat-list::-webkit-scrollbar-thumb {
        background: #888;
    }
    
    #thetable::-webkit-scrollbar-thumb:hover,
    #chat-list::-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: 3px solid rgba(0, 0, 0, 0.1); /* Warna border yang tidak aktif */
        border-top: 3px 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);
        }
    }