/* Shared UI: toasts + tiny utilities */

:root {
  --toast-radius: 14px;
  --toast-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 36px));
}

.notification {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 650;
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  animation: toastIn 180ms ease;
  min-width: 200px;
}

.notification .toast-dot {
  width: 6px;
  height: 100%;
  border-radius: 10px;
  background: rgba(255,255,255,0.4);
}

.notification .toast-msg {
  overflow-wrap: anywhere;
  flex: 1;
}

.notification .toast-close {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.16);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.notification .toast-close:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.notification.success { background: linear-gradient(135deg, #10b981, #059669); }
.notification.error   { background: linear-gradient(135deg, #ef4444, #dc2626); }
.notification.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.notification.info    { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

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

.notification.toast-leave {
  animation: toastOut 200ms ease forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .notification { animation: toastIn 180ms ease !important; }
  .notification.toast-leave { animation: toastOut 200ms ease forwards !important; }
}

/* BTM toggle – polished pill */
.btm-row {
  margin: 10px 0 6px 0;
}
.btm-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.btm-inline input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.btm-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 120ms ease;
}
.btm-inline:hover .btm-chip {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.12);
}
.btm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
  transition: background 160ms ease, box-shadow 160ms ease;
}
.btm-label {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.btm-inline input:focus + .btm-chip {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}
.btm-inline input:checked + .btm-chip {
  border-color: #4f46e5;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}
.btm-inline input:checked + .btm-chip .btm-dot {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.2);
}
.btm-inline input:checked + .btm-chip .btm-label {
  color: #ffffff;
}
