/* ==================================================================
   Kilo Webhook — Toast Notification System
   ================================================================== */

.toast-container {
  position: fixed;
  top: 52px;
  right: 16px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-base);
  color: var(--text);
  pointer-events: auto;
  animation: toastIn .3s ease-out both;
  max-width: 380px;
  min-width: 240px;
}

.toast-icon {
  font-size: .9rem;
  flex-shrink: 0;
  opacity: .85;
}

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

.toast-msg {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.4;
}

.toast-close {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  transition: all .15s;
  padding: 0;
  margin-left: 4px;
}

.toast-close:hover {
  background: var(--surface3);
  color: var(--text);
}

/* Toast types */
.toast.toast-success {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green-dim) 30%, var(--surface));
}
.toast.toast-success .toast-icon { color: var(--green); }

.toast.toast-error {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red-dim) 30%, var(--surface));
}
.toast.toast-error .toast-icon { color: var(--red); }

.toast.toast-warning {
  border-color: var(--yellow);
  background: color-mix(in srgb, var(--yellow-dim) 30%, var(--surface));
}
.toast.toast-warning .toast-icon { color: var(--yellow); }

.toast.toast-info {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue-dim) 30%, var(--surface));
}
.toast.toast-info .toast-icon { color: var(--blue); }

.toast.removing {
  animation: toastOut .2s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}
