/* ============================================================
   UPLOAD — Compact overlay for file uploads
   ============================================================
   Source: css/styles.css lines 1910-1987
   ============================================================ */

.upload-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.upload-popup-overlay.active { opacity: 1; }
.upload-popup-box {
  width: 200px;
  min-height: 150px;
  background: var(--navy-light, #131B2E);
  border: 1px solid var(--navy-lighter, #1E293B);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  text-align: center;
}
.upload-popup-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--navy-lighter, #1E293B);
  border-top-color: var(--gold, #D4AF37);
  border-radius: 50%;
  animation: uploadSpin 0.7s linear infinite;
}
@keyframes uploadSpin { to { transform: rotate(360deg); } }
.upload-popup-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: uploadPop 0.3s ease;
}
.upload-popup-fail {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: uploadPop 0.3s ease;
}
@keyframes uploadPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.upload-popup-check svg, .upload-popup-fail svg { width: 20px; height: 20px; stroke: white; stroke-width: 3; fill: none; }
.upload-popup-text {
  color: var(--champagne, #F5F0E8);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.upload-popup-sub {
  color: var(--gray-400, #9CA3AF);
  font-size: 0.68rem;
}
.upload-popup-dismiss {
  color: var(--gray-500, #6B7280);
  font-size: 0.68rem;
  margin-top: 0.25rem;
  cursor: pointer;
}
