/* Skeleton Loading Styles */

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

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

/* Skeleton text variants */
.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

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

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

/* Skeleton header */
.skeleton-header {
    height: 24px;
    width: 60%;
    margin-bottom: 1rem;
}

/* Skeleton section (mimics accordion) */
.skeleton-section {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.skeleton-section-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.skeleton-section-title {
    height: 20px;
    width: 150px;
}

.skeleton-section-badge {
    height: 16px;
    width: 60px;
}

.skeleton-section-content {
    padding: 1rem;
}

/* Skeleton statement item */
.skeleton-statement {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.skeleton-statement:last-child {
    border-bottom: none;
}

.skeleton-checkbox {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.skeleton-statement-content {
    flex: 1;
}

/* Skeleton info card */
.skeleton-info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.skeleton-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skeleton-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.skeleton-info-label {
    height: 12px;
    width: 60px;
}

.skeleton-info-value {
    height: 18px;
    width: 80%;
}

/* Pulse animation variant (alternative to shimmer) */
.skeleton.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
