/* Loading skeletons (components/ui/Skeleton.jsx) — shimmer placeholders shown
   while queries load. Base block + size modifiers; dark theme flips the
   gradient; respects prefers-reduced-motion. */

.kk-skeleton {
  display: inline-block;
  border-radius: 4px;
  background: linear-gradient(90deg, #eceef7 25%, #f6f7fb 50%, #eceef7 75%);
  background-size: 200% 100%;
  animation: kk-skeleton-shimmer 1.4s ease-in-out infinite;
}

/* KPI number inside a stat card */
.kk-skeleton-stat {
  width: 64px;
  height: 24px;
}

/* Fills a fixed-height chart container */
.kk-skeleton-chart {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.kk-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.kk-skeleton-line {
  display: block;
  height: 12px;
}

@keyframes kk-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

body.dark-theme .kk-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 75%
  );
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .kk-skeleton {
    animation: none;
  }
}
