/* Custom scrollbar for modern subtle appearance */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- NEW ANIMATIONS FOR NEXPOS --- */

/* Bounce effect untuk item baru masuk ke cart */
@keyframes bounceInRight {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    40% {
        opacity: 1;
        transform: translateX(-7px);
    }

    60% {
        transform: translateX(3px);
    }

    80% {
        transform: translateX(-2px);
    }

    90% {
        transform: translateX(1px);
    }
}

.animate-bounce-in-right {
    animation: bounceInRight 0.6s ease;
}

/* Flip effect untuk card analytics saat toggle dark/light */
@keyframes flip3d {
    0% {
        transform: perspective(600px) rotateY(0deg);
        opacity: 1;
    }

    50% {
        transform: perspective(600px) rotateY(90deg);
        opacity: 0;
    }

    100% {
        transform: perspective(600px) rotateY(180deg);
        opacity: 1;
    }
}

.animate-flip3d {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    animation: flip3d 0.5s ease forwards;
}

/* Pulse halus untuk status pending/loading */
@keyframes pulse-smooth {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse-smooth {
    animation: pulse-smooth 2s ease-in-out infinite;
}

/* Shimmer effect untuk skeleton loading */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

.animate-shimmer {
    background-size: 400px 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.2s infinite;
}   