/* Modern Fullscreen Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 41, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Main Loader Container - Professional Style */
.loader {
  width: 130px;
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Elegant Spinner with Gradient Border */
.loader::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 6px solid transparent;
  border-top-color: #4285F4;
  border-right-color: #34A853;
  border-bottom-color: #FBBC05;
  border-left-color: #EA4335;
  border-radius: 50%;
  box-sizing: border-box;
  animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 8px rgba(66, 133, 244, 0.3));
}

/* Inner Pulse Effect */
.loader::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

/* Logo Styling - Professional Appearance */
.loader-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: contain;
  z-index: 10;
  position: relative;
  animation: gentleFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
  bottom: 132px;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Fade Out Effect */
.loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}