/* Modern React-Style Skeleton Loader */
.skeleton-loader {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Page-wide Skeleton Overlay */
#page-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-skeleton.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Granular React-style components */
.sk-avatar { width: 40px; height: 40px; border-radius: 50%; }
.sk-line { height: 12px; margin-bottom: 12px; border-radius: 4px; }
.sk-line-sm { width: 30%; }
.sk-line-md { width: 60%; }
.sk-line-lg { width: 90%; }

/* Layout Pieces */
.sk-sidebar { width: 320px; height: 100vh; background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 25px; }
.sk-header { height: 65px; width: 100%; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 25px; }
.sk-content { flex: 1; padding: 40px; background: #fff; }
.sk-card { border: 1px solid #f1f5f9; border-radius: 12px; padding: 20px; margin-bottom: 24px; }

@media (max-width: 767.98px) {
    .sk-sidebar { display: none; }
}
