.toast-container.app-toast-container,
.toast-container {
  --app-toast-width: 320px;
}

.toast-container .toast.app-toast {
  width: min(var(--app-toast-width), calc(100vw - 1.5rem));
  max-width: min(var(--app-toast-width), calc(100vw - 1.5rem));
  border: 1px solid rgba(68, 86, 108, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.16);
  background: #fff;
  backdrop-filter: blur(3px);
  touch-action: pan-y;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.toast-container .toast.app-toast.is-dragging {
  transition: none;
}

.toast-container .toast.app-toast .toast-header {
  border-bottom: 1px solid rgba(68, 86, 108, 0.1);
  padding: 0.58rem 0.72rem;
  gap: 0.48rem;
  background: #f8fafc;
  color: #233446;
}

.toast-container .toast.app-toast .toast-body {
  padding: 0.65rem 0.78rem 0.72rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #3d5066;
  background: #fff !important;
}

.toast-container .toast.app-toast .app-toast-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1rem;
  flex: 0 0 auto;
}

.toast-container .toast.app-toast .app-toast-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.toast-container .toast.app-toast .btn-close {
  opacity: 0.55;
  transform: scale(0.9);
}

.toast-container .toast.app-toast .btn-close:hover {
  opacity: 0.85;
}

.toast-container .toast.app-toast.is-success .app-toast-icon {
  background: rgba(22, 163, 74, 0.14);
  color: #169a46;
}

.toast-container .toast.app-toast.is-danger .app-toast-icon {
  background: rgba(220, 38, 38, 0.14);
  color: #d22739;
}

.toast-container .toast.app-toast.is-warning .app-toast-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #c27805;
}

.toast-container .toast.app-toast.is-info .app-toast-icon {
  background: rgba(37, 99, 235, 0.14);
  color: #2f63d2;
}

[data-bs-theme='dark'] .toast-container .toast.app-toast {
  background: #222935;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 34px rgba(5, 10, 20, 0.4);
}

[data-bs-theme='dark'] .toast-container .toast.app-toast .toast-header {
  background: #2a3442;
  border-color: rgba(148, 163, 184, 0.16);
  color: #e2ecf9;
}

[data-bs-theme='dark'] .toast-container .toast.app-toast .toast-body {
  color: #d3deed;
  background: #222935 !important;
}
