/* =============================================================================
   Toast-Notifications (top-right stacking)
   ============================================================================= */
.toast-container {
  position: fixed;
  top: calc(var(--topbar-h) + 0.75rem);
  right: 1rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid;
  background: var(--glass-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  animation: toast-in 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
  cursor: pointer;
}
@keyframes toast-in {
  from { transform: translateX(12px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast[data-leaving="true"] {
  animation: toast-out 140ms ease-in forwards;
}
@keyframes toast-out {
  to { transform: translateX(12px); opacity: 0; }
}

.toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 1px;
}
.toast__body {
  flex: 1;
}
.toast__title {
  font-weight: 500;
  color: var(--text-primary);
}
.toast__message {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
}

.toast--success {
  border-color: rgba(5, 150, 105, 0.40);
}
.toast--success .toast__icon { color: var(--mod-finance); }

.toast--error {
  border-color: rgba(220, 38, 38, 0.40);
}
.toast--error .toast__icon { color: var(--mod-alert); }

.toast--info {
  border-color: rgba(37, 99, 235, 0.40);
}
.toast--info .toast__icon { color: var(--mod-crm); }
