#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* Light transparent white */
  z-index: 9999;
  display: flex; /* Always display; control with opacity */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  transition: opacity 0.4s ease;
  opacity: 1;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}