/* Reusable toast notifications — success / error feedback, no per-page markup needed */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  background: var(--surface, #fff);
  border: 1px solid var(--line, transparent);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 4px solid var(--accent, #0E7C7B);
  animation: toast-in 0.18s ease-out;
}

.toast.toast-leaving {
  animation: toast-out 0.15s ease-in forwards;
}

@keyframes toast-in {
  from { transform: translateX(16px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(16px); opacity: 0; }
}

.toast-error {
  border-left-color: var(--danger, #C0392B);
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent, #0E7C7B);
  margin-top: 1px;
}

.toast-error .toast-icon {
  background: var(--danger, #C0392B);
}

.toast-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink, #16212e);
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--faint, #9aa4b2);
  padding: 0;
}

.toast-close:hover {
  color: var(--muted, #4b5563);
}