/* ── Shimmer keyframe ─────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* ── Base skeleton block ──────────────────────────────────────── */
.sk {
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e6e0 25%, #d4d2cc 50%, #e8e6e0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ================================================================
   METRIC CARDS
   ================================================================ */
.sk-metrics {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.sk-metric-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 1rem;
}

.sk-metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sk-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sk-label {
  height: 12px;
  width: 90px;
}

.sk-value {
  height: 32px;
  width: 65%;
  margin: 4px 0;
}

.sk-subtitle {
  height: 10px;
  width: 55%;
}

/* ================================================================
   MEMORY DOUGHNUTS
   ================================================================ */
.sk-memory-row {
  display: flex;
  gap: 1rem;
}

.sk-memory-card {
  flex: 1;
  padding: 1rem;
}

.sk-chart-title {
  height: 18px;
  width: 200px;
  margin-bottom: 8px;
}

.sk-chart-subtitle {
  height: 11px;
  width: 300px;
  margin-bottom: 1.5rem;
}

.sk-donut-body {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 300px;
}

.sk-donut-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.sk-donut-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

.sk-donut-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
}

.sk-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-legend-item {
  height: 11px;
}

.sk-legend-item:nth-child(1) { width: 80%; }
.sk-legend-item:nth-child(2) { width: 65%; }
.sk-legend-item:nth-child(3) { width: 72%; }
.sk-legend-item:nth-child(4) { width: 55%; }

.sk-total {
  height: 11px;
  width: 180px;
  margin: 1rem auto 0;
  display: block;
}

/* ================================================================
   LINE CHARTS
   ================================================================ */
.sk-charts-card {
  padding: 1rem;
}

.sk-charts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.sk-charts-header-title {
  height: 18px;
  width: 220px;
  margin-bottom: 8px;
}

.sk-charts-header-sub {
  height: 11px;
  width: 320px;
}

.sk-interval-btns {
  display: flex;
}

.sk-interval-btn {
  height: 30px;
  width: 42px;
  border-radius: 0;
}

.sk-interval-btn:first-child { border-radius: 4px 0 0 4px; }
.sk-interval-btn:last-child  { border-radius: 0 4px 4px 0; }

.sk-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 2.5rem;
}

.sk-line-chart {
  display: flex;
  flex-direction: column;
}

.sk-line-title {
  height: 16px;
  width: 140px;
  margin-bottom: 6px;
}

.sk-line-subtitle {
  height: 11px;
  width: 90%;
  margin-bottom: 1rem;
}

.sk-line-body {
  position: relative;
  height: 360px;
  margin-top: 1rem;
}

.sk-y-axis {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
}

.sk-y-tick {
  height: 10px;
}

.sk-y-tick:nth-child(1) { width: 24px; }
.sk-y-tick:nth-child(2) { width: 20px; }
.sk-y-tick:nth-child(3) { width: 22px; }
.sk-y-tick:nth-child(4) { width: 18px; }

.sk-plot-area {
  margin-left: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sk-wave {
  width: 100%;
  height: 85%;
  opacity: 0.2;
}

.sk-x-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.sk-x-tick {
  height: 10px;
  width: 36px;
}