/* ==========================================================================
   KITAVOTE Universal Skeleton Shimmer Engine (Light & Dark Mode)
   High-performance, GPU-accelerated placeholder loading animations.
   ========================================================================== */

@keyframes kitavote-shimmer-light {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes kitavote-shimmer-dark {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Light Theme Skeleton Elements (Admin, Superadmin, Public Views) */
.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: kitavote-shimmer-light 1.75s ease-in-out infinite;
    border-radius: 0.65rem;
    will-change: background-position;
}

/* Dark Theme Skeleton Elements (Layar Guru / Auditor, Bilik Suara Siswa) */
.skeleton-shimmer-dark {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    animation: kitavote-shimmer-dark 1.75s ease-in-out infinite;
    border-radius: 0.75rem;
    will-change: background-position;
}

/* Structural Skeleton Primitives */
.skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.skeleton-card-dark {
    background: rgba(8, 26, 66, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 1.25rem;
    backdrop-filter: blur(16px);
}

.skeleton-circle {
    border-radius: 9999px !important;
}

.skeleton-fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.skeleton-fade-in {
    animation: kitavote-skeleton-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kitavote-skeleton-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

