.api-global-progress,
.api-global-status {
  position: fixed;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  pointer-events: none;
}

.api-global-progress.is-visible,
.api-global-status.is-visible {
  opacity: 1;
  visibility: visible;
}

.api-global-progress {
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(7, 89, 168, .12);
}

.api-global-progress span {
  display: block;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, #0759a8, #f2c318, #0759a8);
  background-size: 200% 100%;
  animation: apiProgressStripe 1s linear infinite;
}

@keyframes apiProgressStripe {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.api-global-status {
  top: 1.25rem;
  right: 1.25rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #0759a8;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(7, 89, 168, .15);
  transform: translateY(-8px);
}

.api-global-status.is-visible {
  transform: translateY(0);
}

body.dark-mode .api-global-progress {
  background: rgba(255, 255, 255, .08);
}

body.dark-mode .api-global-status {
  background: #162c3d;
  color: #7ab8f0;
  border: 1px solid rgba(255, 255, 255, .1);
}

.api-loading {
  overflow: hidden;
}