/* =========================
   POPUP SYSTEM ONLY
   (fully scoped — no global breakage)
========================= */

.popup-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  font-family: "MS Sans Serif", "Geneva", sans-serif;
}

/* only affect popup children */
.popup-container *, 
.popup-container *::before, 
.popup-container *::after {
  box-sizing: border-box;
}

/* =========================
   WINDOW
========================= */

.popup-container .retro-window {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  width: 100%;
  max-width: 500px;
  min-width: 320px; /* keeps them from getting too tiny */
  box-shadow: 1px 1px 0 #808080 inset, -1px -1px 0 #dfdfdf inset;
  padding: 2px;
  position: absolute;
  pointer-events: auto;
}

/* =========================
   TITLE BAR
========================= */

.popup-container .window-titlebar {
  background: #000080;
  color: #ffffff;
  padding: 3px 3px 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.popup-container .window-controls {
  display: flex;
  gap: 2px;
}

.popup-container .win-btn {
  background: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

.popup-container .win-btn:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding-top: 2px;
  padding-left: 2px;
}

/* =========================
   CONTENT
========================= */

.popup-container .window-content {
  padding: 16px;
  color: #000000;
}

.popup-container .info-box {
  background: #ffffff;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
}

.popup-container .info-box p {
  margin-top: 0;
}

.popup-container .action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.popup-container .classic-btn {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  padding: 6px 20px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 1px 1px 0 #dfdfdf inset, -1px -1px 0 #808080 inset;
}

.popup-container .classic-btn:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  box-shadow: none;
  padding-top: 8px;
  padding-left: 22px;
  padding-right: 18px;
  padding-bottom: 4px;
}

.popup-container .progress-bar {
  width: 100%;
  height: 12px;
  background: #000;
  border: 1px solid #808080;
  margin-top: 10px;
}

.popup-container .progress-fill {
  height: 100%;
  background: #00ff00;
  width: 0%;
}

.popup-container .progress-text {
  font-size: 12px;
  margin-top: 4px;
}
