html {
    scroll-behavior: smooth;
}

/* Fondo completo difuminado */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
  background: rgba(15, 23, 42, 0.35) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Caja principal */
.swal2-popup {
  width: min(92vw, 420px) !important;
  padding: 32px 28px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.18),
    0 8px 20px rgba(15, 23, 42, 0.10) !important;
  animation: swalLoadingFadeIn 0.28s ease;
}

/* Título */
.swal2-title {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
}

/* Contenido */
.swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  overflow: visible !important;
}

/* Texto interno que mandes en html */
.swal2-html-container p {
  margin: 0 0 14px 0;
  color: #475569;
}

.swal2-html-container p:last-child {
  margin-bottom: 0;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Loader default de SweetAlert2, lo estilizamos para que parezca el spinner del loading */
.swal2-loader {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 22px auto !important;
  border-radius: 50% !important;
  border: 5px solid #e2e8f0 !important;
  border-top-color: #2563eb !important;
  border-right-color: #e2e8f0 !important;
  border-bottom-color: #e2e8f0 !important;
  border-left-color: #e2e8f0 !important;
  animation: swalLoadingSpin 0.85s linear infinite !important;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.06);
}
/* Acciones y botones ocultos si lo usas como loading */
.swal2-actions {
    margin: 0 !important;
    margin-top: 1em !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny,
.swal2-close {
  box-shadow: none !important;
}

/* Iconos por defecto ocultos para loading */
.swal2-icon {
  display: none !important;
}

@keyframes swalLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes swalLoadingFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.swal2-actions button{
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
}
.swal2-confirm {
    background: #2c7be5;
    color: white;
}
.swal2-deny{

}

.swal2-cancel{

}



.loading-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  pointer-events: all;
}

.loading-modal:not(.active) {
  display: none;
}

.loading-modal__box {
  width: min(92vw, 420px);
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;

  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.18),
    0 8px 20px rgba(15, 23, 42, 0.10);

  border: 1px solid rgba(226, 232, 240, 0.9);

  animation: modalFadeIn 0.28s ease;
}

.loading-modal__spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 5px solid #e2e8f0;
  border-top-color: #2563eb;
  animation: spin 0.85s linear infinite;

  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.06);
}

.loading-modal__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.loading-modal__subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #475569;
}

.loading-modal__message {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.02em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.input-password {
    position: relative;
}

.input-password input {
    width: calc(100% - 4em);
    padding-right: 40px;
}

.input-password i{
  margin-top: -.25em;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
}

.toggle-password:hover {
    color: #000;
}


.burbuja-contenedor{
    display: flex;
    align-items: center;
}

.burbuja{
    margin-right: .5em;
    min-width: .5em;
    min-height: .5em;
    border-radius: 100%;
}

.text-nowrap{
  text-wrap-mode:nowrap;
}
.burbuja-active{
    background-color: #10b981;
}
.burbuja-inactive{
    background-color: #f59e0b;
}
.burbuja-deleted{
    background-color: #ef4444;
}

.stat-card:nth-child(2)::after{
    background-color: #10b981;
}
.stat-card:nth-child(3)::after{
    background-color: #f59e0b;
}
.stat-card:nth-child(4)::after{
    background-color: #ef4444;
}

.mb-0{
  margin-bottom: 0;
}
.mb-1{
  margin-bottom: 1em;
}
.mb-2{
  margin-bottom: 2em;
}
.mb-3{
  margin-bottom: 3em;
}
.mb-4{
  margin-bottom: 4em;
}
.mb-5{
  margin-bottom: 5em;
}

.mt-0{
  margin-top: 0;
}
.mt-1{
  margin-top: 1em;
}
.mt-2{
  margin-top: 2em;
}
.mt-3{
  margin-top: 3em;
}
.mt-4{
  margin-top: 4em;
}
.mt-5{
  margin-top: 5em;
}

.mr-0{
  margin-right: 0;
}
.mr-1{
  margin-right: 1em;
}
.mr-2{
  margin-right: 2em;
}
.mr-3{
  margin-right: 3em;
}
.mr-4{
  margin-right: 4em;
}
.mr-5{
  margin-right: 5em;
}

.btn-sm{
  padding: .35em .8em !important;
  font-size: .85em !important;
}


.titulo {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: .5em;
}

.text-center {
  text-align: center;
}



/* CONTENEDOR */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* OCULTAR CHECKBOX */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* SLIDER BASE */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7eb;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* CIRCULO */
.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* ACTIVO */
.toggle-switch input:checked + .slider {
    background: linear-gradient(135deg, #2c7be5, #1d4ed8);
}

/* MOVER CIRCULO */
.toggle-switch input:checked + .slider::before {
    transform: translateX(24px);
}

/* HOVER */
.slider:hover {
    box-shadow: 0 0 0 4px rgba(44,123,229,0.15);
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(24px) scale(1.05);
}

