/* ============================================================
   Hub Lite — overrides locales
   Tailwind y Flowbite cargan vía CDN en el layout.
   Aquí van solo ajustes finos y utilidades que Tailwind no cubre.
   ============================================================ */

:root {
  /* Theme alineado con logo HUB Lite (slate-300 #CBD5E1 = color principal del logo) */
  --hub-bg:        #f8fafc;  /* slate-50 — fondo principal */
  --hub-surface:   #ffffff;  /* blanco — cards */
  --hub-surface-2: #f1f5f9;  /* slate-100 — elevado */
  --hub-border:    #e2e8f0;  /* slate-200 — bordes suaves */
  --hub-accent:    #cbd5e1;  /* slate-300 — color del logo, dividers/acentos */
  --hub-text:      #0f172a;  /* slate-900 — texto principal */
  --hub-muted:     #64748b;  /* slate-500 — texto secundario */
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar         { width: 10px; height: 10px; }
::-webkit-scrollbar-track   { background: #f1f5f9; }
::-webkit-scrollbar-thumb   { background: #cbd5e1; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  caret-color: #0f172a;
}

[x-cloak] { display: none !important; }

/* Botones: CSS plano (no @apply) porque Tailwind carga vía Play CDN,
   que no procesa @apply en hojas externas. */
.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25rem;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary   { background-color: #1582f5; color: #ffffff; }      /* brand-600 */
.btn-primary:hover   { background-color: #1269e0; }                /* brand-700 */
.btn-secondary { background-color: #1e293b; color: #e2e8f0; }      /* slate-800 / slate-200 */
.btn-secondary:hover { background-color: #334155; }                /* slate-700 */
.btn-danger    { background-color: #e11d48; color: #ffffff; }      /* rose-600 */
.btn-danger:hover    { background-color: #be123c; }                /* rose-700 */

/* Estado deshabilitado coherente */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

@media print {
  aside, header, footer, .no-print { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
}

/* ============================================================
   Badges (pills) — soft/pastel para fondo claro
   Uso: <span class="badge badge-success">Activo</span>
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge-success { background:#ecfdf5; color:#047857; border-color:#a7f3d0; } /* emerald */
.badge-danger  { background:#fff1f2; color:#be123c; border-color:#fecdd3; } /* rose    */
.badge-warning { background:#fffbeb; color:#92400e; border-color:#fde68a; } /* amber   */
.badge-info    { background:#f0f9ff; color:#0369a1; border-color:#bae6fd; } /* sky     */
.badge-violet  { background:#f5f3ff; color:#6d28d9; border-color:#ddd6fe; } /* violet  */
.badge-fuchsia { background:#fdf4ff; color:#a21caf; border-color:#f5d0fe; } /* fuchsia */
.badge-orange  { background:#fff7ed; color:#9a3412; border-color:#fed7aa; } /* orange  */
.badge-brand   { background:#eef9ff; color:#1269e0; border-color:#bce6ff; } /* brand   */
.badge-neutral { background:#f1f5f9; color:#334155; border-color:#e2e8f0; } /* slate   */
