/* Global Toast Notifications (must sit above all modal overlays) */

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20000; /* higher than modal overlays/backdrops */
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* allow clicks to pass through except on toast */
  max-width: min(420px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 12px 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.toast-content {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.toast-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  margin-top: 1px;
}

.toast-message {
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: break-word;
}

.toast-close {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
}

.toast-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.8);
}

/* Type accents */
.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-info { border-left: 4px solid #3b82f6; }

@media (max-width: 520px) {
  .toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: calc(100vw - 24px);
  }
}

