
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* ini penting buat stack vertikal */
}

.loading-overlay.d-none {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-circle {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ring utama (gradient berputar) */
.loading-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  background: conic-gradient(
    from 0deg,
    #00ff88,
    #0099ff,
    #00ff88
  );
  -webkit-mask: 
    radial-gradient(farthest-side, transparent calc(100% - 5px), black 100%);
  mask: 
    radial-gradient(farthest-side, transparent calc(100% - 5px), black 100%);
  animation: spin 1.3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0,255,200,0.4));
}

/* Ring kedua (putar berlawanan arah, halus banget) */
.loading-circle::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: conic-gradient(
    from 180deg,
    #00ccff,
    transparent 60%,
    #00ccff
  );
  -webkit-mask: 
    radial-gradient(farthest-side, transparent calc(100% - 4px), black 100%);
  mask: 
    radial-gradient(farthest-side, transparent calc(100% - 4px), black 100%);
  animation: spinReverse 2s linear infinite;
  opacity: 0.6;
}

.loading-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.loading-text {
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 15px;
}

/* Animasi spin */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}


#loadingModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top: 4px solid #2b7a78; /* warna utama */
  border-right: 4px solid #3aafa9;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loader-logo {
  position: absolute;
  inset: 15px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo img {
  width: 60px;
  height: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.file-name {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}