/* ============================================
   GLOBAL LOADING OVERLAY
   ============================================ */

#global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 25, 28, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000; /* Higher than modal z-index */
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#global-loading-overlay.active {
  opacity: 1;
}

.global-loading-content {
  text-align: center;
  color: #ffffff;
}

.global-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(249, 196, 65, 0.3);
  border-top: 4px solid #f9c441;
  border-radius: 50%;
  animation: globalSpin 1s linear infinite;
  margin: 0 auto 20px auto;
}

.global-loading-text {
  font-size: 18px;
  opacity: 0.9;
  animation: globalPulse 2s ease-in-out infinite;
  margin: 0;
  font-weight: 300;
}

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

@keyframes globalPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .global-loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
  }
  
  .global-loading-text {
    font-size: 16px;
  }
}