/* ----- Global Top Progress Bar ----- */
#global-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary, var(--accent-primary-hover)));
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: none;
  box-shadow: 0 0 8px var(--accent-glow, rgba(99, 102, 241, 0.4));
}

#global-progress-bar.active {
  opacity: 1;
  width: 70%;
  transition: width 8s cubic-bezier(0.1, 0.05, 0, 1);
}

#global-progress-bar.done {
  width: 100%;
  transition: width 0.2s ease;
}

#global-progress-bar.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}
