/* ==========================================================================
   फाइल: public/css/components/toast.css (JNV Bhasha Setu)
   नियम: 100% लाइट थीम, इन-ऐप नॉन-ब्लॉकिंग टोस्ट नोटिफिकेशन
   ========================================================================== */

#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-main);
  animation: toast-slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateX(100%);
}

.toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--color-text-subtle);
  cursor: pointer;
  padding: 0.25rem;
  min-height: auto;
  min-width: auto;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: var(--color-text-main);
  background-color: var(--color-bg-subtle);
}

/* 🟢 Success Toast */
.toast-success {
  border-left: 4px solid var(--color-success);
}
.toast-success .toast-icon {
  color: var(--color-success);
}

/* 🔴 Error Toast */
.toast-error {
  border-left: 4px solid var(--color-error);
}
.toast-error .toast-icon {
  color: var(--color-error);
}

/* 🟡 Warning Toast */
.toast-warning {
  border-left: 4px solid var(--color-warning);
}
.toast-warning .toast-icon {
  color: var(--color-warning);
}

/* 🔵 Info Toast */
.toast-info {
  border-left: 4px solid var(--color-info);
}
.toast-info .toast-icon {
  color: var(--color-info);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
