/* Overlay covers entire screen */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  background: white;
  padding: 24px 28px;
  border-radius: 8px;
  min-width: 320px;
  max-width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.overlay-content h3 {
  margin-top: 0;
}

/* Popup window */
#progressPopup {
  background: #fff;
  padding: 25px 35px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 280px;
}

#progressBarContainer {
  width: 100%;
  height: 14px;
  background: #eee;
  border-radius: 7px;
  overflow: hidden;
  margin: 15px 0;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1a73e8, #4dabf7);
  transition: width 0.3s ease;
  border-radius: 7px;
}

#progressMessage {
  font-size: 0.9em;
  color: #555;
}