/* ============================================
   GENZFLOW — SKELETON LOADING
   Shimmer placeholder effect for loading states
   ============================================ */

/* Base skeleton */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Text line */
.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 65%;
}

.skeleton-text.long {
    width: 90%;
}

/* Metric card skeleton */
.skeleton-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-card .sk-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.skeleton-card .sk-value {
    height: 28px;
    width: 60%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-card .sk-label {
    height: 12px;
    width: 45%;
    border-radius: 4px;
}

/* Chart skeleton */
.skeleton-chart {
    height: 280px;
    border-radius: 12px;
}

/* Avatar skeleton */
.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* Table row skeleton */
.skeleton-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skeleton-row .sk-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-row .sk-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-row .sk-badge {
    width: 70px;
    height: 22px;
    border-radius: 6px;
}

/* Skeleton grid (for metric cards) */
.skeleton-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Insight skeleton */
.skeleton-insight {
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.skeleton-insight .sk-icon-lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.skeleton-insight .sk-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Section skeleton */
.skeleton-section {
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-section .sk-header {
    height: 18px;
    width: 35%;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* Light mode adjustments */
[data-theme="light"] .skeleton {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.04) 25%,
            rgba(0, 0, 0, 0.08) 50%,
            rgba(0, 0, 0, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}