/* Background photo-scan status tray/toast (services/scan-jobs.js). Used to be
   injected at runtime via a JS-created <style> tag; moved here since CSP's
   styleSrc no longer allows unhashed inline <style>. */

.scan-status-tray {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scan-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2937;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  max-width: 320px;
  animation: scanFadeIn 0.25s ease;
}
.scan-status-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scanSpin 0.85s linear infinite;
  flex-shrink: 0;
}
.scan-status-toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.scan-status-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  max-width: 380px;
  animation: scanFadeIn 0.25s ease;
}
.scan-status-toast-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 8px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.scan-status-toast-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
@keyframes scanSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes scanFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
