.loading-spinner {
  display: inline-block;
}

.loading-spinner__circle {
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.loading-spinner--small .loading-spinner__circle {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.loading-spinner--medium .loading-spinner__circle {
  width: 2rem;
  height: 2rem;
  border-width: 3px;
}

.loading-spinner--large .loading-spinner__circle {
  width: 3rem;
  height: 3rem;
  border-width: 4px;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

