/* --- Toast skilaboð (sjá toast-common.js) ---
   Lítill popp-borði neðst í miðjum skjánum sem birtist stutta stund og
   hverfur svo sjálfkrafa - notað ALLS STAÐAR í staðinn fyrir static
   "Vistað."/villuskilaboð. .toast-container er búið til í fyrsta sinn sem
   showToast() er kölluð (sjá toast-common.js) og er hlekkjað inn á öllum
   síðum gegnum partials/head.ejs, svo þetta gildir alls staðar. */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 300;
  /* Borðarnir sjálfir fá pointer-events aftur - gámurinn á ekki að hindra
     smelli á neitt sem er fyrir aftan hann þar sem enginn borði er. */
  pointer-events: none;
}

.toast {
  pointer-events: none;
  background: #323232;
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 90vw;
  text-align: center;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #2e7d32;
}

.toast-error {
  background: #c62828;
}
