/* Custom layer on top of Tailwind CDN */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Improve focus ring visibility across inputs */
input:focus, select:focus, textarea:focus, button:focus, summary:focus, a:focus {
  outline: none;
}

input:focus-visible, select:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18);
}

/* Soft, hand-tuned section anchor offset for sticky header */
section[id] { scroll-margin-top: 80px; }

/* Pulse ring for the "live" dot in admin */
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.live-dot { animation: livePulse 1.6s infinite; }

/* Form row hover in admin */
#waitlistRows > div:hover { background: #f8fafc; }

/* Subtle entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.35s ease-out both; }

/* Make sure details summary marker is hidden (we use our own chevron) */
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }

/* Toast */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #0f172a; color: white; font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 80;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
