/* ILSDownloader — shared UI styles (toast sonner-like + dialog).
 * Diekstrak dari <style> inline tiap template agar:
 * 1) tidak duplikat di 4 halaman,
 * 2) tidak butuh {% raw %} (Jinja gotcha: `#id`/`@media` di blok <style>),
 * 3) bisa di-cache browser terpisah dari HTML.
 * File ini plain CSS — JANGAN taruh sintaks Jinja/Tailwind di sini.
 * DIMUAT DEFER (media=print trick, Fase D): hanya berisi gaya dinamis
 * (toast/dialog, muncul via JS) — yang kritis (.icon, #appLoader) tinggal
 * di output.css agar first paint tidak FOUC. */

#toastContainer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 360px;
  width: calc(100% - 2rem);
}

@media (max-width: 640px) {
  #toastContainer {
    left: 1rem;
    right: 1rem;
    max-width: none;
    width: auto;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(39 39 42);
  background: rgb(24 24 27);
  color: rgb(244 244 245);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.45);
  background: #052e21;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.45);
  background: #3b0a0a;
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: #3a2703;
}
