/* ==========================================================================
   Apple Design System - Spinner Component Styles
   ========================================================================== */

.apple-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.apple-spinner-wrapper.hidden {
  display: none !important;
}

.apple-spinner {
  border-radius: 50%;
  border-style: solid;
  border-color: rgba(0, 113, 227, 0.12);
  border-top-color: var(--apple-primary, #0071e3);
  animation: appleSpinnerRotate 0.75s linear infinite;
  box-sizing: border-box;
}

.apple-spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.apple-spinner--md {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

.apple-spinner--lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.apple-spinner-message {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--apple-text-secondary, #86868b);
  margin: 0;
  text-align: center;
}

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

/* Dark Theme Support */
[data-theme='dark'] .apple-spinner {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: var(--apple-primary, #38bdf8);
}

[data-theme='dark'] .apple-spinner-message {
  color: #94a3b8;
}
