/* Skeleton Loader Styles */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary) 0%,
    var(--color-border) 50%,
    var(--color-bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

/* Table Skeleton */
.skeleton-table {
  width: 100%;
}

.skeleton-table__header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.skeleton-table__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.skeleton-table__header-cell,
.skeleton-table__cell {
  margin: 0;
}

/* Card Skeleton */
.skeleton-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
}

.skeleton-card__title {
  margin-bottom: 1rem;
}

.skeleton-card__content {
  margin-bottom: 0.5rem;
}

.skeleton-card__content:last-child {
  margin-bottom: 0;
}

/* Metric Card Skeleton */
.skeleton-metric-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-metric-card__label {
  opacity: 0.7;
}

.skeleton-metric-card__value {
  font-weight: 600;
}
