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

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

    100% {
        background-position: -200% 0;
    }
}

/* Size variants */
.skeleton-text {
    height: 1em;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5em;
    width: 50%;
    margin-bottom: 1rem;
}

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

.skeleton-card {
    min-height: 120px;
}

.skeleton-btn {
    height: 38px;
    width: 100px;
}

.skeleton-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content visibility */
.skeleton-wrapper {
    display: block;
}

/* 
   We use !important here because some elements might have display: flex 
   or other display properties set via utility classes that we want to override 
   when in the loading state.
*/
.content-wrapper.loading {
    display: none !important;
}