#page-progress-bar[hidden] {
  display: none !important;
  width: 0 !important;
  opacity: 0 !important;
  transition: none !important;
}

/* Option 1: HUSA Brand Colors (Purple & Teal) */
#page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 0%;
  background: linear-gradient(
    90deg,
    #8b5cf6 0%,
    #a78bfa 25%,
    #06b6d4 50%,
    #22d3ee 75%,
    #8b5cf6 100%
  );
  background-size: 200% 100%;
  z-index: 999999;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(6, 182, 212, 0.4),
    0 0 60px rgba(139, 92, 246, 0.2);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Option 2: HUSA Teal Focus */
/* Emphasizes the vibrant teal color with purple accents and shine effect. */
#progress-bar-2 {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(
    90deg,
    #06b6d4 0%,
    #22d3ee 25%,
    #67e8f9 50%,
    #8b5cf6 75%,
    #a78bfa 100%
  );
  z-index: 999999;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 30px rgba(6, 182, 212, 0.5),
    0 4px 20px rgba(6, 182, 212, 0.3);
}

#progress-bar-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Option 3: HUSA Purple Aurora */
/* Smooth flowing purple gradient with teal highlights, perfect for elegant transitions. */
#progress-bar-3 {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(
    90deg,
    #8b5cf6 0%,
    #a78bfa 25%,
    #c4b5fd 50%,
    #06b6d4 75%,
    #8b5cf6 100%
  );
  background-size: 300% 100%;
  z-index: 999999;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  opacity: 0;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.7), 0 0 50px rgba(139, 92, 246, 0.5);
  animation: aurora 3s ease-in-out infinite;
}

@keyframes aurora {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Option 4: HUSA Balanced Blend */
/* Harmonious gradient flowing from purple through light tones to teal with sparkling animation. */
#progress-bar-4 {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(
    90deg,
    #8b5cf6 0%,
    #a78bfa 20%,
    #c4b5fd 40%,
    #67e8f9 60%,
    #22d3ee 80%,
    #06b6d4 100%
  );
  z-index: 999999;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 60px rgba(6, 182, 212, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
  filter: brightness(1.2);
}

#progress-bar-4::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-100px);
  }
  50% {
    opacity: 1;
    transform: translateX(0);
  }
}
