/* ===========================================================
 * 📄 File: style-skeleton.css
 * 🎯 Purpose: Universal Shimmer Skeleton Loader
 * =========================================================== */

/* Base Skeleton Container */
.skeleton-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
}

/* Shimmer Card */
.skeleton-card {
  background: #eee;
  border-radius: 8px;
  width: 280px;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.skeleton-line {
  height: 14px;
  margin: 6px 14px;
  border-radius: 4px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.skeleton-line.short { width: 50%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 90%; }

/* Shimmer Animation */
.skeleton-card::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  top: 0; left: -150px;
  width: 150px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(300px); }
}

/* Table Mode */
.skeleton-table {
  width: 100%;
  border-collapse: collapse;
}
.skeleton-table td {
  padding: 10px;
}
.skeleton-table .skeleton-line {
  margin: 4px 0;
}

/* Center Loader */
.skeleton-center {
  text-align: center;
  padding: 30px;
}
