/* =========================
   SKELETON BASE
========================= */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb;
    border-radius: 6px;
}

/* Shimmer */
.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 150%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: skeleton-loading 1.4s infinite;
}

@keyframes skeleton-loading {
    100% {
        left: 150%;
    }
}

/* =========================
   VARIANTS
========================= */
.skeleton-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.skeleton-input {
    height: 42px;
    width: 100%;
}

.skeleton-select {
    height: 42px;
    width: 100%;
}

.skeleton-textarea {
    height: 100px;
    width: 100%;
}

.skeleton-text {
    height: 18px;
    width: 100%;
}

.skeleton-text.sm {
    width: 60%;
}

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

.skeleton-card {
    padding: 20px;
}

/* =========================
   HIDE WHEN LOADED
========================= */
.is-loaded .skeleton {
    display: none;
}

.is-loading .real-content {
    display: none;
}