/* Toast Notifications */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: min(400px, calc(100vw - var(--space-2xl)));
  pointer-events: none;
}

.toast-container>* {
  pointer-events: auto;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  animation: toastSlideIn 0.3s ease;
  min-width: 280px;
}

.toast:hover {
  opacity: 0.95;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}

.toast-message {
  flex: 1;
  color: #fff;
}

.toast-success {
  background: linear-gradient(135deg, #028534 0%, #00704d 100%);
  color: #fff;
}

.toast-success .toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

.toast-error {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
}

.toast-error .toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

.toast-warning {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fff;
}

.toast-warning .toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

.toast-info {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
}

.toast-info .toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
  .toast-container {
    top: calc(var(--admin-topbar-height, 56px) + var(--space-md));
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
  }

  .toast {
    min-width: 0;
  }
}