/* Global Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

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

/* Generic Skeleton Components */
.skeleton-box {
    display: block;
    border-radius: 4px;
}

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

/* Page Transitions */
.content-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Skeleton Template */
.skeleton-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
}

.skeleton-title {
    height: 18px;
    width: 60%;
}

.skeleton-text {
    height: 12px;
    width: 90%;
}

.skeleton-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.skeleton-button {
    height: 32px;
    width: 80px;
}

/* Table Row Skeleton */
.skeleton-table-row td {
    padding: 12px 16px;
    vertical-align: middle;
}

.skeleton-table-row .skeleton-shimmer {
    height: 14px;
    border-radius: 4px;
    width: 100%;
}