/* =========================================================
   TOAST / ALERTS
   File: assets/css/alerts.css
   ========================================================= */

.toast-root,
.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  width: min(390px, calc(100vw - 44px));
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: 0.24s ease;
  pointer-events: auto;
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #3b82f6;
}

.toast-success::before,
.toast.success::before {
  background: #10b981;
}

.toast-error::before,
.toast.error::before {
  background: #ef4444;
}

.toast-warning::before,
.toast.warning::before {
  background: #f59e0b;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #2563eb;
  background: #dbeafe;
  font-weight: 950;
}

.toast-success .toast-icon,
.toast.success .toast-icon {
  color: #059669;
  background: #d1fae5;
}

.toast-error .toast-icon,
.toast.error .toast-icon {
  color: #dc2626;
  background: #fee2e2;
}

.toast-warning .toast-icon,
.toast.warning .toast-icon {
  color: #d97706;
  background: #fef3c7;
}

.toast-body {
  min-width: 0;
}

.toast-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.toast-message {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

@media (max-width: 640px) {
  .toast-root,
  .toast-container {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .toast {
    width: 100%;
  }
}

/* =========================================================
   TOAST CLOSE BUTTON SUPPORT
   File: assets/css/alerts.css
   ========================================================= */

.toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-left: auto;
  transition: 0.18s ease;
  flex: 0 0 auto;
}

.toast-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
