#loading-bg {
  /* Background menyesuaikan mode gelap/terang */
  background: var(--initial-loader-bg, #171d30); 
}

.loading-logo {
  position: absolute;
  /* Posisi logo di tengah layar */
  inset-block-start: 40%;
  inset-inline-start: calc(50% - 40px); /* Setengah dari width logo */
  z-index: 10;
}

/* Penyesuaian gambar logo Xyra agar bulat dan pas */
.loading-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.pre-loading {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  /* Spinner dibuat sedikit lebih besar dari logo (80px + 10px padding) */
  block-size: 90px;
  inline-size: 90px;
  border-radius: 50%;
  /* Posisi spinner membungkus logo dengan presisi */
  inset-block-start: calc(40% - 5px);
  inset-inline-start: calc(50% - 45px);
}

.pre-loading .effect-1,
.pre-loading .effect-2,
.pre-loading .effect-3 {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  block-size: 100%;
  /* Warna garis putar (menggunakan warna terang agar terlihat di bg gelap) */
  border-inline-start: 3px solid #3b82f6; 
  border-radius: 50%;
  inline-size: 100%;
}

.pre-loading .effect-1 {
  animation: rotate 1s ease infinite;
}

.pre-loading .effect-2 {
  animation: rotate-opacity 1s ease infinite 0.1s;
}

.pre-loading .effect-3 {
  animation: rotate-opacity 1s ease infinite 0.2s;
}

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

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1turn);
  }
}

@keyframes rotate-opacity {
  0% {
    opacity: 0.1;
    transform: rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: rotate(1turn);
  }
}
