/**
 * OmniCRM Non-Blocking Toast Alerts
 * Zero-alert popup system for responsive user feedback.
 */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-bright, #ffffff);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.25s ease-out forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.toast-success {
  border-left: 4px solid var(--success, #10b981);
}

.toast.toast-error {
  border-left: 4px solid var(--danger, #ef4444);
}

.toast.toast-info {
  border-left: 4px solid var(--primary, #3b82f6);
}

.toast.toast-warning {
  border-left: 4px solid var(--warning, #f59e0b);
}

.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-content {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.toast-close:hover {
  color: var(--text-bright, #ffffff);
}

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

@keyframes toastFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}
