/* public/loader/loader.css */
#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  /* 
    We use color-mix() to mix your global bg-color with transparency. 
    This gives you that nice blurred overlay look using your custom theme background!
  */
  background: color-mix(in srgb, var(--bg-color) 85%, transparent);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  /* Use your global border color for the background track */
  border: 5px solid var(--border-color);
  /* Use your global primary accent color for the spinning indicator */
  border-top: 5px solid var(--primary-color); 
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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