/* ======================================================
   TOAST NOTIFICATIONS
   ====================================================== */

#toast-container {
  position: fixed;
  top: calc(var(--procuro-header-height, 84px) + 12px);
  right: 24px;
  z-index: var(--z-toast);

  display: flex;
  flex-direction: column;
  gap: var(--space-sm);

  pointer-events: none;
}

/* bazowy toast */
.toast {
  min-width: 280px;
  max-width: 360px;

  padding: var(--space-sm-plus) var(--space-md-plus);
  border-radius: var(--radius-lg);

  font-size: .85rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.45;

  background: var(--bg-white);
  color: var(--navy-900);

  border-left: 5px solid transparent;

  box-shadow:
    0 18px 48px rgba(0,0,0,.18),
    0 2px 6px rgba(0,0,0,.08);

  animation: toast-slide-in .35s ease-out forwards;
}

/* warianty */
.toast-success {
  background: var(--procuro-gradient);
  color: var(--bg-white);
  border-left-color: rgba(255,255,255,.6);
}

.toast-error {
  background: var(--bg-white);
  border-left-color: #e5484d; /* jedyny wyjątek – kolor semantyczny */
}

.toast-warning {
  background: var(--bg-white);
  border-left-color: #f5a524; /* semantyczny */
}

.toast-info {
  background: var(--bg-white);
  border-left-color: var(--border);
}

/* animacje */
@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes toast-fade-out {
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}

/* Mobile */
@media (max-width: 700px) {
  #toast-container {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: none;
  }
}
