.toast {
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease;
}

.toast.removing {
  animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border-left: 4px solid #047857;
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-left: 4px solid #b91c1c;
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-left: 4px solid #b45309;
}

.toast-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-left: 4px solid #1d4ed8;
}

#toast-container {
  position: fixed !important;
  bottom: 1rem !important; /* Position at bottom right to avoid header */
  right: 1rem;
  z-index: 999999 !important; /* Very high z-index to appear above header */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

#toast-container .toast {
  pointer-events: auto;
}

@media (max-width: 640px) {
  #toast-container {
    right: 0.5rem;
    left: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
  
  .toast {
    max-width: 100%;
  }
}
