/* ===== TOAST NOTIFICATION SYSTEM (Frontend) ===== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  pointer-events: all;
  cursor: pointer;
  animation: toastSlideIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
  border-left: 4px solid #1877f2;
  position: relative;
  overflow: hidden;
}
.toast::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: rgba(0,0,0,0.1);
  animation: toastProgress var(--duration,4s) linear forwards;
  width: 100%;
  transform-origin: left;
}
@keyframes toastProgress { from{transform:scaleX(1)} to{transform:scaleX(0)} }
.toast.toast-success { border-left-color: #43a047; }
.toast.toast-error   { border-left-color: #e53935; }
.toast.toast-warning { border-left-color: #fb8c00; }
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-success .toast-icon { color: #43a047; }
.toast-error   .toast-icon { color: #e53935; }
.toast-warning .toast-icon { color: #fb8c00; }
.toast-info    .toast-icon { color: #1877f2; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.9rem; color: #1a1a1a; margin-bottom: 2px; }
.toast-message { font-size: 0.83rem; color: #555; line-height: 1.4; }
.toast-close { font-size: 1.1rem; color: #aaa; cursor: pointer; flex-shrink: 0; background: none; border: none; padding: 0; }
.toast-close:hover { color: #333; }
.toast.toast-hide { animation: toastSlideOut 0.3s ease forwards; }
@keyframes toastSlideIn { from{opacity:0;transform:translateX(100%) scale(0.9)} to{opacity:1;transform:translateX(0) scale(1)} }
@keyframes toastSlideOut { from{opacity:1;transform:translateX(0) scale(1)} to{opacity:0;transform:translateX(110%) scale(0.9)} }
