/* ==========================================================================
   SeneWax Professional Loader System (Inline & Button Loaders)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Button State Loader (Inscription, Connexion, Actions)
   -------------------------------------------------------------------------- */
.btn-senewax-loading {
  position: relative !important;
  pointer-events: none !important;
  opacity: 0.82 !important;
  cursor: not-allowed !important;
  user-select: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.senewax-btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: senewaxSpin 0.75s linear infinite;
  flex-shrink: 0;
}

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

/* --------------------------------------------------------------------------
   2. Inline / Page Section Loader
   -------------------------------------------------------------------------- */
.senewax-inline-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  width: 100%;
  text-align: center;
  color: #94a3b8;
}

.senewax-inline-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(255, 128, 8, 0.2);
  border-radius: 50%;
  border-top-color: #ff9f43;
  border-right-color: #ff9f43;
  animation: senewaxSpin 0.8s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

.senewax-inline-text {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   3. Container Overlay Loading (For cards, panels & sections)
   -------------------------------------------------------------------------- */
.senewax-container-relative {
  position: relative !important;
}

.senewax-container-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: senewaxFadeIn 0.2s forwards ease;
}

@keyframes senewaxFadeIn {
  to { opacity: 1; }
}
