/* Transient feedback UI: the fixed footer status bar and the progress overlay. */

.status-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 20;
  min-height: 36px;
  border-top: 4px solid var(--logo-teal);
  box-shadow: 0 -4px 12px var(--shadow-soft);
  background: var(--logo-blue);
  color: var(--panel);
  padding: 9px 16px;
  overflow: hidden;
  font-size: 0.9rem;
}

.status-bar.error {
  background: var(--danger);
}

.status-bar-message {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-bar-copyright {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  opacity: 0.9;
}

.status-bar-copyright a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-bar-copyright a:hover {
  opacity: 0.8;
}

.progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
  pointer-events: none;
}

.progress-overlay[hidden] {
  display: none;
}

.progress-card {
  pointer-events: auto;
  width: min(420px, 100%);
  border: 1px solid var(--progress-card-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 45px var(--shadow-strong);
  padding: 18px;
}

.progress-track {
  width: 100%;
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--progress-track-border);
  border-radius: 6px;
  background: var(--progress-track-bg);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--logo-teal), var(--logo-blue));
  transition: width 180ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.progress-detail {
  min-height: 38px;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.progress-detail strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
