/* =============================================================================
   SKELETON LOADING ANIMATION - Full Page & Robust
   ========================================================================== */

/* The main container covering the whole screen */
#skeleton-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: 999999;
  /* Top priority */
  overflow: hidden;
  /* Prevent double scrollbars during load */
  display: flex;
  flex-direction: column;
}

/* Base Shimmer Effect */
.sk-shimmer {
  background: #f6f7f8;
  background-image: linear-gradient(to right,
      #f6f7f8 0%,
      #edeef1 20%,
      #f6f7f8 40%,
      #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation-duration: 1.2s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: sk-shimmer-anim;
  animation-timing-function: linear;
  position: relative;
  border-radius: 4px;
}

@keyframes sk-shimmer-anim {
  0% {
    background-position: -468px 0;
  }

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

/* Navigation Skeleton */
.sk-nav {
  width: 100%;
  height: 80px;
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
  flex-shrink: 0;
  background-color: #fff;
  /* Keep nav bg white */
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 20px;
}

.sk-nav-logo {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  background: #eee;
  /* Static gray or shimmer */
}

.sk-nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.sk-nav-link {
  width: 80px;
  height: 20px;
  border-radius: 4px;
  background: #eee;
}

/* Hero Skeleton */
.sk-hero {
  width: 100%;
  height: 400px;
  /* Approximate hero height */
  margin-bottom: 30px;
}

/* Content Grid Skeleton */
.sk-container-box {
  padding: 0 5%;
  width: 100%;
  margin-bottom: 40px;
}

.sk-title-row {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.sk-title {
  width: 300px;
  height: 30px;
  border-radius: 4px;
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.sk-card {
  height: 300px;
  width: 100%;
  border-radius: 10px;
}

/* Sidebar / Generic Layout */
.sk-flex-row {
  display: flex;
  gap: 30px;
  padding: 0 5%;
}

.sk-sidebar {
  width: 25%;
  height: 300px;
}

.sk-content-block {
  width: 75%;
  height: 300px;
}

/* Footer Skeleton */
.sk-footer {
  width: 100%;
  height: 250px;
  margin-top: auto;
  /* Push to bottom if content is short */
  background: #1e3a8a;
  /* Use brand dark color for base */
  opacity: 0.1;
  /* Light shimmer on dark */
  flex-shrink: 0;
}