/* Minimal Toast styles (no Tailwind) */

/* Container positions */
.toast-root {
  position: fixed;
  z-index: 9999;
  width: 18rem; /* 288px */
  display: flex;
  gap: 0.5rem;
  pointer-events: none; /* allow clicks through except on items */
}

/* Position tokens applied from JS via positionClass */
.toast-root.top { top: 1rem; }
.toast-root.bottom { bottom: 1rem; }
.toast-root.start { left: 1rem; }
.toast-root.end { right: 1rem; }
.toast-root.column { flex-direction: column; }
.toast-root.column-reverse { flex-direction: column-reverse; }

/* Item */
.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #111;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  pointer-events: auto; /* clickable */
}

/* Transition utility classes */
.toast-transition { transition: all 200ms ease; }
/* Enter from left/right based on position; we keep generic X translation and opacity */
.toast-enter-start { opacity: 0; transform: translateX(12px); }
.toast-enter-end { opacity: 1; transform: translateX(0); }
.toast-leave-start { opacity: 1; transform: translateX(0); }
.toast-leave-end { opacity: 0; transform: translateX(12px); }

/* Icon bubble */
.toast-icon {
  width: 2rem; height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex: 0 0 auto;
}

/* Icon color variants */
.icon-success { background: #e6f7ec; color: #1b7a3a; }
.icon-error   { background: #fde7e7; color: #b42318; }
.icon-warning { background: #fff4e5; color: #ad6800; }
.icon-info    { background: #e6f0ff; color: #1f4bd8; }
.icon-neutral { background: #f1f1f1; color: #555; }

/* Message + link */
.toast-body { flex: 1 1 auto; }
.toast-message { font-size: 0.925rem; line-height: 1.2; }
.toast-link {
  margin-top: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f4f4f5;
  color: #111827;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  text-decoration: none;
}
.toast-link:hover { background: #e7e7ea; }

/* Close */
.toast-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover { color: #111827; }

/* Type borders for quick visual cues */
.type-success { border-color: #b7e3c7; }
.type-error   { border-color: #f5b5b5; }
.type-warning { border-color: #ffd599; }
.type-info    { border-color: #b9c7ff; }
.type-neutral { border-color: #e5e7eb; }
