/* public/css/global.css */
/* Estilos globales compartidos entre todos los paneles */

/* ── SPINNER ────────────────────────────── */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── TOAST GLOBAL ───────────────────────── */
.toast-msg {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  padding: 13px 20px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  max-width: 340px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.toast-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
}
.toast-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}
.toast-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
}

/* ── LOADING OVERLAY ────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid #E2E8F0;
  border-top-color: #1E3A8A;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loading-text {
  font-size: 13px;
  color: #475569;
  font-family: 'Inter', sans-serif;
}

/* ── BADGE STATUS COMPARTIDOS ───────────── */
.badge-st {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.st-listo     { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.st-proceso   { background: #EFF6FF; color: #1E3A8A; border: 1px solid #BFDBFE; }
.st-pendiente { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.st-error     { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.st-activo    { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.st-inactivo  { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }

/* ── SKELETON LOADER ────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}