.loading-spinner {
  padding: 2rem;
  text-align: center;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  margin: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.25rem solid var(--color-gray-200);
  border-top: 0.25rem solid var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
  margin: 0;
}

.skeleton-card {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skeleton-name {
  width: 60%;
  height: 1.5rem;
  background-color: var(--color-gray-200);
  border-radius: 0.25rem;
}

.skeleton-id {
  width: 20%;
  height: 1.5rem;
  background-color: var(--color-gray-200);
  border-radius: 0.25rem;
}

.skeleton-image {
  width: 5rem;
  height: 5rem;
  background-color: var(--color-gray-200);
  border-radius: 0.25rem;
  margin: 1rem auto;
}

.skeleton-types {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skeleton-type {
  width: 4rem;
  height: 1.5rem;
  background-color: var(--color-gray-200);
  border-radius: 1rem;
}

@keyframes skeleton-pulse {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay .loading-spinner {
  margin: 0;
  max-width: 20rem;
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
