/* ── Container ────────────────────────────────────────────────────────────── */

.container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* newest at bottom — column order matches DOM order */
}

/* ── Toast item ───────────────────────────────────────────────────────────── */

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 300px;
  max-width: 420px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border-left: 4px solid transparent;
  font-family: var(--font-body);
  animation: slideIn 0.25s ease-out forwards;
}

.dismissing {
  animation: fadeOut 0.3s ease-in forwards;
}

/* ── Variant accent colors ────────────────────────────────────────────────── */

.success {
  border-left-color: var(--success);
}

.success .icon {
  color: var(--success);
}

.warning {
  border-left-color: var(--warning);
}

.warning .icon {
  color: var(--warning);
}

.error {
  border-left-color: var(--error);
}

.error .icon {
  color: var(--error);
}

.info {
  border-left-color: var(--running);
}

.info .icon {
  color: var(--running);
}

/* ── Icon ─────────────────────────────────────────────────────────────────── */

.icon {
  font-size: 15px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ── Content ──────────────────────────────────────────────────────────────── */

.content {
  flex: 1;
  min-width: 0;
}

.title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Close button ─────────────────────────────────────────────────────────── */

.closeBtn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.15s;
}

.closeBtn:hover {
  color: var(--text-primary);
  border-color: var(--text-faint);
}

/* ── Animations ───────────────────────────────────────────────────────────── */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
