/* Toast Notification */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  align-items: center;
}

.toast {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(99, 102, 241, 0.94), rgba(59, 130, 246, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: min(560px, calc(100vw - 24px));
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  color: #fff;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.28);
}

.toast.out {
  animation: toastOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-success .toast-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.toast-error .toast-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.toast-content {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}
