/* ================================================= */
/* UI Improvements (Skeleton, Animations, etc.)      */
/* ================================================= */

/* 1. Skeleton Loading */
.skeleton {
    background: #e2e5e7;
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: skeleton-shine 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
}

@keyframes skeleton-shine {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 6px;
    width: 100%;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
}


/* 2. Staggered Animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUpFade 0.4s ease-out forwards;
}

/* Stagger delays helper - JS will assign these or use nth-child */
.stagger-1 {
    animation-delay: 0.05s;
}

.stagger-2 {
    animation-delay: 0.1s;
}

.stagger-3 {
    animation-delay: 0.15s;
}

.stagger-4 {
    animation-delay: 0.2s;
}


/* 3. Pulse Effect for Online Status */
@keyframes pulse-green-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(52, 199, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

.status-active-pulse {
    animation: pulse-green-ring 2s infinite;
    border-radius: 34px;
    /* Matches switch border radius */
}


/* 4. Glassmorphism Depth */
.glass-card,
.vendor-order-card {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
}

/* 5. Sticky Date Header */
.date-header-sticky {
    position: sticky;
    top: 80px;
    /* Adjust based on header height */
    z-index: 900;
    background: rgba(243, 243, 248, 0.95);
    /* Matches bg-body */
    backdrop-filter: blur(10px);
    padding: 8px 0;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}