/* Контейнер для toast-уведомлений */
.ui-toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Базовый toast */
.ui-toast {
  min-width: 280px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #111;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  pointer-events: auto;
  border-left: 6px solid #9ca3af;
  animation: toast-in 180ms ease-out;
}

.ui-toast__message {
  line-height: 1.35;
  font-size: 14px;
}

.ui-toast__close {
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

/* Цвета toast по типу */
.ui-toast--success { border-left-color: #16a34a; }
.ui-toast--warning { border-left-color: #eab308; }
.ui-toast--error { border-left-color: #dc2626; }
.ui-toast--info { border-left-color: #2563eb; }

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

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

.ui-toast--closing {
  animation: toast-out 140ms ease-in forwards;
}

/* Tooltip */
.ui-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease;
}

.ui-tooltip--visible {
  opacity: 1;
  transform: scale(1);
}

/* Затемнение уже открытой модалки, когда поверх неё появляется окно подтверждения. */
.modal.confirm-modal-underlay .modal-content {
  filter: brightness(0.72);
  transition: filter 120ms ease;
}

/* Дополнительное выделение фона именно для окна подтверждения. */
/*.modal-backdrop.confirm-action-backdrop {*/
/*  --bs-backdrop-opacity: 0.72;*/
/*  backdrop-filter: blur(1px);*/
/*}*/