/* Wrapper */
.skeleton-wrapper {
    padding: 10px 0;
}

/* Card Style */
.skeleton-block,
.skeleton-wrapper table {
    background: #ffffff;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Table */
.skeleton-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.skeleton-wrapper td {
    padding: 12px;
}

/* Line */
.skeleton-line {
    height: 14px;
    width: 100%;
    border-radius: 8px;
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e6e6e6 37%,
        #f0f0f0 63%
        );

    background-size: 400% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
}

/* Optional Width Variants */
.w-90 {
    width: 90%;
}
.w-80 {
    width: 80%;
}
.w-70 {
    width: 70%;
}
.w-60 {
    width: 60%;
}
.w-50 {
    width: 50%;
}
.w-40 {
    width: 40%;
}
.w-30 {
    width: 30%;
}

/* Block Spacing */
.skeleton-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Smooth Shimmer */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Soft Fade-in Effect */
.skeleton-wrapper {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skeleton-line {
    animation: shimmer 1.6s ease-in-out infinite,
        pulse 2.2s ease-in-out infinite;
}

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