/* Contenedor del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

/* Ocultamos el checkbox original */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* El slider (parte visible) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 25px;
}

/* Círculo dentro del switch */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2.5px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Encendido (ON) */
.switch input:checked+.slider {
  background-color: #28a745;
  /* Verde estilo Bootstrap */
}

/* Movimiento del circulito al activar */
.switch input:checked+.slider:before {
  transform: translateX(24px);
}

/* ERROR 403 ACCESO DENEGADO */
.access-denied {
  color: #dc3545;
  /* rojo Bootstrap */
}

.access-denied-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

/* LOADER STYLOS */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #28a745;
  /* rojo */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}