/* Skeleton Loading Styles */

.skeleton-animation {
    position: relative;
    overflow: hidden;
}

.skeleton-text,
.skeleton-circle,
.skeleton-image,
.skeleton-badge,
.skeleton-button {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

.skeleton-badge {
    border-radius: 8px;
}

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

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

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .skeleton-text,
    .skeleton-circle,
    .skeleton-image,
    .skeleton-badge,
    .skeleton-button {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
}

/* Loading overlay */
.skeleton-container {
    position: relative;
}

.skeleton-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: dark) {
    .skeleton-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}
