
/* ════════════════════════════════════════════════════════════════
   DEMO UPLOAD MODAL
   ════════════════════════════════════════════════════════════════ */

/* ── layout & scroll (existing) ─────────────────────────────── */
#demo-upload-backdrop,
.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
}

#demo-upload-backdrop .dashboard-modal,
#demo-upload-backdrop .upload-modal-shell {
  position: relative;
  margin: 0;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

/* ── open / close animation ──────────────────────────────────── */
.demo-upload-backdrop {
  opacity: 0;
  pointer-events: none;
}

.demo-upload-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  animation: demoBackdropIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.demo-upload-backdrop.is-closing {
  animation: demoBackdropOut 220ms ease-in forwards;
  pointer-events: none;
}

.demo-upload-backdrop .upload-modal-shell {
  transform: translateY(12px) scale(0.97);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity   220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-upload-backdrop.is-open .upload-modal-shell {
  transform: translateY(0) scale(1);
}

.demo-upload-backdrop.is-closing .upload-modal-shell {
  transform: translateY(8px) scale(0.98);
  opacity: 0;
}

@keyframes demoBackdropIn {
  from { background-color: transparent; }
  to   { background-color: rgba(15, 23, 42, 0.45); }
}

@keyframes demoBackdropOut {
  from { background-color: rgba(15, 23, 42, 0.45); opacity: 1; }
  to   { background-color: transparent;             opacity: 0; }
}

/* ── intro copy ──────────────────────────────────────────────── */
.demo-upload-intro {
  text-align: center;
  margin-bottom: 20px;
}

.demo-upload-headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--color-text, #111827);
}

.demo-upload-sub {
  color: var(--color-text-muted, #6b7280);
  font-size: 0.9rem;
  max-width: 42ch;
  margin-inline: auto;
  line-height: 1.5;
}

/* ── action row (upload + explore buttons) ───────────────────── */
.demo-upload-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* Upload button — red */
.demo-select-btn-styled {
  background: #e63946 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.28);
}

.demo-select-btn-styled:hover {
  background: #c62d3a !important;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.36);
}

.demo-select-btn-styled:active {
  background: #a8202c !important;
}

/* Explore first button — charcoal */
.demo-explore-btn {
  background: #36454f;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease;
}

.demo-explore-btn:hover {
  background: #2a363f;
}

.demo-explore-btn:active {
  background: #1e272e;
}

/* ════════════════════════════════════════════════════════════════
   REOPEN COUNTDOWN TOAST
   ════════════════════════════════════════════════════════════════ */

#demo-reopen-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 10px 14px 10px 20px;
  font-size: 0.875rem;
  color: var(--color-text, #111827);
  z-index: 9998;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 250ms ease,
              transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

#demo-reopen-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#demo-reopen-toast.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

#demo-reopen-toast #demo-toast-msg {
  color: var(--color-text-muted, #6b7280);
}

#demo-reopen-toast strong {
  color: #e63946;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
  display: inline-block;
}

#demo-toast-open-now {
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease;
  white-space: nowrap;
}

#demo-toast-open-now:hover {
  background: #c62d3a;
}

#demo-toast-dismiss {
  background: none;
  border: none;
  color: var(--color-text-faint, #9ca3af);
  font-size: 0.75rem;
  padding: 4px 6px;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  transition: color 180ms ease;
}

#demo-toast-dismiss:hover {
  color: var(--color-text-muted, #6b7280);
}