/* Network Progress Bar Styles */
.network-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

.network-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--primary-color1, #fb275d) 0%, 
    var(--primary-color2, #ff5e3a) 50%,
    var(--primary-color1, #fb275d) 100%);
  box-shadow: 0 0 10px rgba(251, 39, 93, 0.5);
  border-radius: 0 2px 2px 0;
  position: relative;
  animation: shimmer 2s infinite linear;
}

/* Add shimmer effect for better visual feedback */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.network-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer-overlay 1.5s infinite;
}

@keyframes shimmer-overlay {
  0% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(100px);
  }
}

/* Dark mode specific styles */
body.dark .network-progress-container {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Light mode specific styles */
body.light .network-progress-container {
  background-color: rgba(0, 0, 0, 0.05);
}

body.light .network-progress-bar {
  box-shadow: 0 0 10px rgba(251, 39, 93, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .network-progress-container {
    height: 2px;
  }
}

/* Ensure progress bar stays on top of all content */
.network-progress-container {
  isolation: isolate;
}