/* Custom Styles untuk Pantau Pengadaan Infokom */

/* Loading Overlay: Lock screen + Blur + Center Notification */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  user-select: none;
}

.loading-overlay.hidden {
  display: none !important;
}

.loading-box {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 280px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sidebar Active Link */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  color: #cbd5e1;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

/* Progress Bar Smooth */
.bar-fill {
  transition: width 0.5s ease;
}

/* Mobile Sidebar Open */
@media (max-width: 767px) {
  #sidebar.mobile-open {
    display: flex !important;
    position: fixed;
    inset-y: 0;
    left: 0;
    z-index: 45;
  }
}
