body {
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
}

#loading-bg {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--initial-loader-bg, #ffffff);
  block-size: 100%;
  gap: 2rem 0;
  inline-size: 100%;
}

/* Logo ABP */
.loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-logo 2s ease-in-out infinite;
}

.loading-logo svg {
  filter: drop-shadow(0 4px 12px rgba(52, 102, 158, 0.15));
}

/* Modern ABP Loader */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 120px;
  height: 120px;
}

.loading .effect-1,
.loading .effect-2,
.loading .effect-3 {
  position: absolute;
  border-radius: 50%;
  animation: rotate-ring 3s linear infinite;
}

/* Ring 1 - Outer ring (ABP Primary Blue) */
.loading .effect-1 {
  width: 120px;
  height: 120px;
  border: 4px solid transparent;
  border-top-color: #3366A5;
  border-right-color: #3366A5;
  animation: spin-fast 2s linear infinite;
  box-shadow: inset 0 0 20px rgba(51, 102, 165, 0.1);
}

/* Ring 2 - Mid ring (ABP Secondary) */
.loading .effect-2 {
  width: 95px;
  height: 95px;
  border: 3px solid transparent;
  border-bottom-color: #E85D24;
  border-left-color: #E85D24;
  animation: spin-fast 2.5s linear infinite reverse;
  top: 12.5px;
  left: 12.5px;
}

/* Ring 3 - Inner ring (Accent) */
.loading .effect-3 {
  width: 70px;
  height: 70px;
  border: 2px solid transparent;
  border-top-color: #7CB342;
  border-bottom-color: #7CB342;
  animation: spin-fast 3s linear infinite;
  top: 25px;
  left: 25px;
  opacity: 0.8;
}

.loading .effects {
  transition: all 0.3s ease;
}

/* Loading text */
.loading-text {
  font-size: 14px;
  color: #3366A5;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  animation: pulse-text 1.5s ease-in-out infinite;
}

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

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

@keyframes pulse-logo {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.95);
  }
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
