/* ==========================================================================
   LOADING SPINNER COMPONENT
   Based on: PHASE_7B_DESIGN_PREMIUM_SPEC.md - Loading States Section
   ========================================================================== */

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-red-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ==========================================================================
   SPINNER SIZES
   ========================================================================== */

.spinner--small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner--large {
  width: 32px;
  height: 32px;
  border-width: 4px;
}

/* ==========================================================================
   SPINNER VARIANTS
   ========================================================================== */

.spinner--secondary {
  border-color: var(--color-gray-300);
  border-top-color: var(--color-gray-600);
}

.spinner--white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-white);
}

/* ==========================================================================
   SPINNER ANIMATION
   ========================================================================== */

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

/* ==========================================================================
   LOADING OVERLAY (pentru full page loading)
   ========================================================================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.loading-overlay__spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

/* ==========================================================================
   LOADING INLINE (pentru butoane, etc.)
   ========================================================================== */

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.loading-inline__spinner {
  flex-shrink: 0;
}

.loading-inline__text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

