/* Minimal UI helpers: toasts, utilities */
:root {
  --toast-bg: rgba(30,30,30,.96);
  --toast-fg: #fff;
  --toast-success: #35c56f;
  --toast-error: #ff5c55;
  --toast-info: #5cc5ff;
}

.toasts {
  position: fixed;
  z-index: 9999;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 420px;
  background: var(--toast-bg);
  color: var(--toast-fg);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  padding: .65rem .85rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  gap: .6rem;
  pointer-events: auto;
  animation: toastIn .2s ease-out;
}

.toast.success { box-shadow: 0 0 0 2px rgba(53,197,111,.25); }
.toast.error   { box-shadow: 0 0 0 2px rgba(255,92,85,.25); }
.toast.info    { box-shadow: 0 0 0 2px rgba(92,197,255,.25); }

.toast .dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  flex: 0 0 auto;
}
.toast.success .dot { background: var(--toast-success); }
.toast.error   .dot { background: var(--toast-error); }
.toast.info    .dot { background: var(--toast-info); }

.toast .msg { flex: 1 1 auto; font-weight: 600; }
.toast .close { cursor: pointer; opacity: .7; }
.toast .close:hover { opacity: 1; }

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

/* Inline spinner for buttons */
.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

