/* Popup messages (showAuthPopup in templates/base/base.html) */
.seon-toasts {
    position: fixed;
    top: calc(var(--header-height, 72px) + 12px);
    right: 16px;
    z-index: 1090; /* above Bootstrap modals (1055) */
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.seon-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    border-left-width: 4px;
    background: #fff;
    color: #212529;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.92rem;
    line-height: 1.4;
    animation: seonToastIn 0.25s ease-out;
}
.seon-toast > .bi { flex: none; font-size: 1.05rem; line-height: 1.3; }
.seon-toast-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.seon-toast-close {
    flex: none;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.55;
    font-size: 1.35rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    margin: -6px -4px -6px 0;
    border-radius: 6px;
    cursor: pointer;
}
.seon-toast-close:hover, .seon-toast-close:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.06); }

.seon-toast-success { border-color: #b7e4c7; border-left-color: #198754; background: #f1fbf4; }
.seon-toast-success > .bi { color: #198754; }
.seon-toast-error { border-color: #f5c2c7; border-left-color: #dc3545; background: #fff5f5; }
.seon-toast-error > .bi { color: #dc3545; }
.seon-toast-warning { border-color: #ffe69c; border-left-color: #d4a017; background: #fffbea; }
.seon-toast-warning > .bi { color: #b8860b; }
.seon-toast-info { border-color: #e5d7a8; border-left-color: #d4af37; background: #fffdf5; }
.seon-toast-info > .bi { color: #b8962e; }

.seon-toast.fade-out { animation: seonToastOut 0.3s ease forwards; }
@keyframes seonToastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes seonToastOut { to { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 575.98px) {
    .seon-toasts { left: 12px; right: 12px; width: auto; top: calc(var(--header-height, 64px) + 8px); }
}
@media (prefers-reduced-motion: reduce) {
    .seon-toast, .seon-toast.fade-out { animation-duration: 0.01ms; }
}
