/* ============================================================
 *  empty-undo.css — Enhanced empty state, undo countdown, doc count
 * ============================================================ */

/* ── 1. Improved Empty State ── */

.empty-state-enhanced {
  text-align: center;
  padding: 48px 24px;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

/* Illustration wrapper — float animation */
.empty-illustration-wrap {
  margin-bottom: 24px;
  animation: empty-float 3s ease-in-out infinite;
}

@keyframes empty-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* SVG illustration sizing */
.empty-illustration {
  width: 80px;
  height: 80px;
  display: block;
}

/* Sparkle twinkle animation */
.empty-sparkle {
  animation: sparkle-twinkle 2s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.15; transform: scale(0.6); }
}

/* Title & subtitle inside enhanced state */
.empty-state-enhanced .empty-title {
  font-size: var(--font-size-lg, 1.125rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 6px;
}

.empty-state-enhanced .empty-subtitle {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-text-secondary);
  margin: 0 0 28px;
  max-width: 320px;
  line-height: 1.5;
}

/* CTA button with icon */
.empty-state-enhanced .empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-base, 1rem);
  font-weight: 600;
  padding: 12px 28px;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.empty-state-enhanced .empty-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.empty-state-enhanced .empty-cta:active {
  transform: translateY(0);
}

.empty-cta-icon {
  flex-shrink: 0;
}


/* ── 2. Undo Toast — Wider + Countdown ── */

.doc-undo-toast-wide {
  min-width: 280px;
}

.doc-undo-toast-wide .doc-undo-btn {
  min-width: 110px;
  text-align: center;
  /* Prevent layout shift as countdown number changes width */
  font-variant-numeric: tabular-nums;
}


/* ── 3. Document Count Badge ── */

.doc-count-badge {
  font-weight: 400;
  color: var(--color-text-secondary);
  font-size: 0.85em;
  margin-left: 6px;
  letter-spacing: -0.01em;
}


/* ── Responsive overrides ── */

@media (max-width: 767px) {
  .empty-state-enhanced {
    padding: 32px 16px;
    min-height: calc(100vh - 160px);
  }

  .empty-illustration {
    width: 64px;
    height: 64px;
  }

  .empty-state-enhanced .empty-cta {
    width: 100%;
    justify-content: center;
  }

  .doc-undo-toast-wide {
    min-width: unset;
  }
}

/* ── Reduced-motion accessibility ── */

@media (prefers-reduced-motion: reduce) {
  .empty-illustration-wrap {
    animation: none;
  }

  .empty-sparkle {
    animation: none;
  }
}
