/* ─────────────────────────────────────────────────────────────────
   FpToast — bottom-right toast notification system
   ───────────────────────────────────────────────────────────────── */
#fp-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
}

.fp-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px 13px 16px;
    border-radius: 10px;
    background: #1e293b;
    color: #f1f5f9;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    line-height: 1.45;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: auto;
    border-left: 4px solid #64748b;
    animation: fp-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateX(110%);
    will-change: transform, opacity;
    min-width: 240px;
}

@keyframes fp-toast-in {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fp-toast-out {
    to { opacity: 0; transform: translateX(110%); }
}

.fp-toast.fp-toast-leaving {
    animation: fp-toast-out 0.24s ease-in forwards;
}

/* Colour variants */
.fp-toast.fp-toast-error  { border-left-color: #ef4444; }
.fp-toast.fp-toast-warn   { border-left-color: #f59e0b; }
.fp-toast.fp-toast-success{ border-left-color: #22c55e; }
.fp-toast.fp-toast-info   { border-left-color: #3b82f6; }

/* Icon column */
.fp-toast-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 1px;
}
.fp-toast-error   .fp-toast-icon { color: #ef4444; }
.fp-toast-warn    .fp-toast-icon { color: #f59e0b; }
.fp-toast-success .fp-toast-icon { color: #22c55e; }
.fp-toast-info    .fp-toast-icon { color: #3b82f6; }

/* Message */
.fp-toast-body  { flex: 1; }
.fp-toast-title { font-weight: 600; margin-bottom: 2px; }
.fp-toast-msg   { color: #cbd5e1; }

/* Close button */
.fp-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0 0 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.fp-toast-close:hover { color: #f1f5f9; }

/* Network-status specific toast */
.fp-toast.fp-toast-network-error  { border-left-color: #dc2626; }
.fp-toast.fp-toast-network-ok     { border-left-color: #16a34a; }
