/* ==========================================================================
   ESTILOS INSTITUCIONALES - SISTEMA TALENTO HUMANO SED CAUCA
   Arquitectura: Tailwind CSS + Variables Customizadas + Microinteracciones
   ========================================================================== */

:root {
  --sed-navy-900: #0f172a;
  --sed-navy-800: #1e293b;
  --sed-navy-700: #334155;
  --sed-blue-600: #2563eb;
  --sed-blue-700: #1d4ed8;
  --sed-indigo-600: #4f46e5;
  --sed-indigo-700: #4338ca;
  --sed-emerald-600: #059669;
  --sed-amber-500: #f59e0b;
  --sed-rose-600: #e11d48;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

/* Scrollbar estilizado */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Transiciones suaves */
.transition-all-200 {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación de pulso para el estado en vivo */
@keyframes live-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pulse-live {
  animation: live-pulse 2s infinite;
}

/* Badges Institucionales */
.badge-activo {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-incapacitado {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-alerta150 {
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-suspension180 {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-reemplazo {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Switch reactivo para Col 34 (Pasar a Planilla) */
.switch-planilla {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch-planilla input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-planilla {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 22px;
}

.slider-planilla:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider-planilla {
  background-color: #2563eb;
}

input:checked + .slider-planilla:before {
  transform: translateX(20px);
}

/* Modales */
.modal-backdrop {
  backdrop-filter: blur(4px);
  background-color: rgba(15, 23, 42, 0.65);
}

/* Toast de notificación flotante */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 300px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
