/**
 * ShiftHandler Loading Skeletons
 * Shared pulse/shimmer placeholders for tables, cards, and lists.
 */

/* ============================================================
   BASE SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sh-skeleton-loading 1.5s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}

.skeleton-rect {
    border-radius: 4px;
}

.skeleton-circle {
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes sh-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-bs-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #2b2b40 25%, #323248 50%, #2b2b40 75%);
    background-size: 200% 100%;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
        background: #f0f0f0;
    }

    [data-bs-theme="dark"] .skeleton {
        background: #2b2b40;
    }
}

/* ============================================================
   TABLE / LIST HELPERS (used by SHLoading.showSkeleton)
   ============================================================ */
.sh-skeleton-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.sh-skeleton-row:last-child {
    margin-bottom: 0;
}

.sh-skeleton-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.sh-skeleton-list-item:last-child {
    margin-bottom: 0;
}

.sh-skeleton-list-item .sh-skeleton-lines {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
