#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); /* very light overlay */
  backdrop-filter: blur(10px); /* glass blur effect */
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader {
  width: 20px;
  height: 20px;  /* fallback for aspect-ratio */
  border-radius: 50%;
  background: #fff;  /* make dot visible on black */
  box-shadow: 0 0 0 0 #fff4;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 #fff4;
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 30px #fff0;
    transform: scale(0.8);
  }
  100% {
    box-shadow: 0 0 0 0 #fff0;
    transform: scale(1);
  }
}


/* Custom menu */
#custom-menu {
  display: none;
  position: absolute;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.15); /* semi-transparent glass */
  backdrop-filter: blur(10px); /* glass blur effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.3); /* soft border for glass effect */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 5px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#custom-menu.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

#custom-menu button {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.2); /* semi-transparent button background */
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 5px;
}

#custom-menu button:hover {
  background: rgba(255, 255, 255, 0.3); /* slightly more visible on hover */
}


/* SweetAlert2 container */
.swal2-container {
  z-index: 1050 !important;
}

/* Custom toast */
.custom-toast-popup {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #333;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

 