/* ============================================================
   TASC Loading States — Skeleton Loaders & Empty States
   Shared across all views. Include with:
   <link rel="stylesheet" href="/css/tasc-loading.css">
   ============================================================ */

/* ------ Shimmer animation ------ */
@keyframes tasc-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ------ Light skeleton (default, most pages) ------ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: tasc-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}

/* ------ Dark skeleton (command / dark-theme pages) ------ */
.skeleton-dark {
  background: linear-gradient(90deg, #1e293b 25%, #273348 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: tasc-shimmer 1.8s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}

/* ------ Skeleton helper sizes ------ */
.sk-h3  { height: 0.75rem; }
.sk-h4  { height: 1rem;    }
.sk-h5  { height: 1.25rem; }
.sk-h6  { height: 1.5rem;  }
.sk-h7  { height: 1.75rem; }
.sk-h8  { height: 2rem;    }
.sk-h10 { height: 2.5rem;  }
.sk-h12 { height: 3rem;    }
.sk-h16 { height: 4rem;    }
.sk-h24 { height: 6rem;    }

.sk-w-full  { width: 100%;   }
.sk-w-3\/4  { width: 75%;    }
.sk-w-2\/3  { width: 66.66%; }
.sk-w-1\/2  { width: 50%;    }
.sk-w-1\/3  { width: 33.33%; }
.sk-w-1\/4  { width: 25%;    }
.sk-w-20    { width: 5rem;   }
.sk-w-28    { width: 7rem;   }
.sk-w-32    { width: 8rem;   }

/* ------ Skeleton card (stat boxes, module tiles) ------ */
.skeleton-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 1.25rem;
  overflow: hidden;
}

/* ------ Skeleton table row ------ */
.skeleton-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

/* ------ Empty state container ------ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

/* Inside a table */
.empty-state-cell {
  padding: 4rem 2rem;
  text-align: center;
}

/* ------ Empty state icon box ------ */
.empty-icon {
  width: 56px;
  height: 56px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #d1d5db;
  font-size: 1.375rem;
  flex-shrink: 0;
}

/* Module-specific icon tints */
.empty-icon.teal   { background: #f0fdfa; color: #5eead4; }
.empty-icon.indigo { background: #eef2ff; color: #a5b4fc; }
.empty-icon.amber  { background: #fffbeb; color: #fcd34d; }
.empty-icon.red    { background: #fff1f2; color: #fca5a5; }
.empty-icon.green  { background: #f0fdf4; color: #86efac; }
.empty-icon.blue   { background: #eff6ff; color: #93c5fd; }
.empty-icon.violet { background: #f5f3ff; color: #c4b5fd; }
.empty-icon.orange { background: #fff7ed; color: #fdba74; }

/* ------ Empty state text ------ */
.empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.empty-sub {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
  max-width: 280px;
  line-height: 1.5;
}

/* ------ CTA link/button ------ */
.empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4f46e5;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: opacity .15s;
}
.empty-cta:hover { opacity: 0.75; }

/* teal CTA */
.empty-cta.teal   { color: #0d9488; }
.empty-cta.amber  { color: #d97706; }
.empty-cta.red    { color: #dc2626; }
.empty-cta.green  { color: #059669; }
