/* Toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

@media (max-width: 640px) {
  .toast-container {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
  }
}

.toast {
  min-width: 280px;
  max-width: 360px;
  background: var(--panel, #ffffff);
  color: var(--text, #0f172a);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  border-left: 4px solid transparent;
  opacity: 0;
  transform: translateY(-8px);
  animation: toast-fade-in 220ms ease forwards;
  pointer-events: auto;
}

.toast-message {
  flex: 1;
  word-break: break-word;
}

.toast strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.toast button.toast-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.toast button.toast-close:hover {
  opacity: 1;
}

.toast-success {
  border-left-color: var(--success, #16a34a);
}

.toast-error {
  border-left-color: var(--error, #ef4444);
}

.toast-info {
  border-left-color: var(--primary, #2563eb);
}

.toast.toast-leaving {
  animation: toast-fade-out 260ms ease forwards;
}

@keyframes toast-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
