﻿/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: var(--z-toast);
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 420px;
  background: var(--card);
  color: var(--txt);
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(var(--ws-black-rgb), .3);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  border: 1px solid var(--glass-border);
  animation: toastIn 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.2) forwards;
  position: relative;
  overflow: hidden;
}
.toast.toast-out {
  animation: toastOut 0.25s ease forwards;
}
.toast::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  border-radius: 3px 0 0 3px;
}
.toast.error::after   { background: var(--red); }
.toast.warning::after { background: var(--yellow); }
.toast.success::after { background: var(--green); }
.toast.error   { border-color: var(--red-border); }
.toast.warning { border-color: rgba(var(--ws-warning-rgb), .25); }
.toast.success { border-color: rgba(var(--ws-success-rgb), .25); }

.toast-ico  { font-size: 18px; flex-shrink: 0; }
.toast-msg  { font-size: 12.5px; font-weight: 500; line-height: 1.4; flex: 1; }
.toast-undo {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background .12s;
}
.toast-undo:hover { background: var(--row-hover); }

@keyframes toastIn {
  from { transform: translateX(100%) scale(.9); opacity: 0; }
  to   { transform: translateX(0) scale(1);    opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(20%) scale(.95); opacity: 0; }
}
