/* === TOAST CONTAINER === */
.toast-container {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-height: calc(100vh - 80px);
}

/* === TOAST === */
.toast {
  width: 400px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 33, 51, 0.10), 0 2px 8px rgba(15, 33, 51, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(40px);
  animation: toast-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.toast.dismissing {
  animation: toast-out 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.toast-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}

.toast.toast-success .toast-accent { background: #10b981; }
.toast.toast-error .toast-accent   { background: #ef4444; }
.toast.toast-warning .toast-accent { background: #f59e0b; }
.toast.toast-info .toast-accent    { background: #3b82f6; }

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  margin-left: 4px;
}

.toast-success .toast-icon { background: #f0fdf4; color: #10b981; }
.toast-error .toast-icon   { background: #fef2f2; color: #ef4444; }
.toast-warning .toast-icon { background: #fffbeb; color: #f59e0b; }
.toast-info .toast-icon    { background: #eff6ff; color: #3b82f6; }

.toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f2133;
  line-height: 1.3;
}

.toast-message {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 2px;
}

.toast-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  font-family: inherit;
  margin-top: -2px;
}

.toast-close:hover { background: #f1f5f9; color: #475569; }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 10px 10px;
  transition: width linear;
}

.toast-success .toast-progress { background: #10b981; }
.toast-error .toast-progress   { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-info .toast-progress    { background: #3b82f6; }
