/* ============================================================
   DAFTAR MAJED — Toast Notifications
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
  left: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--slate-900);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  pointer-events: all;
  min-width: 240px;
  max-width: 360px;
  border: 1px solid rgba(255,255,255,0.08);
  animation: toastSlideIn 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

[data-theme="light"] .toast {
  background: var(--slate-800);
}

.toast.removing {
  animation: toastSlideOut 250ms ease both;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    .toast-icon { color: var(--sky-400); }

.toast-message { flex: 1; }

.toast-close {
  opacity: 0.5;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}
.toast-close:hover { opacity: 1; }

@media (max-width: 640px) {
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: calc(var(--mobile-nav-height) + var(--space-3));
  }
  .toast { max-width: 100%; }
}
