﻿/* Bottom-right stack */
#hf-toast-host {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2147483647;
    display: flex;
    flex-direction: column; /* newest at bottom, older stack up */
    gap: .5rem;
    align-items: flex-end;
    pointer-events: none;
}

.custom-toast-background {
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
    z-index: 0;
}

/* Card (filled like DevExpress demo) */
.hf-toast {
    pointer-events: auto;
    position: relative;
    min-width: 280px;
    max-width: 380px;
    border-radius: .5rem;
    padding: .75rem 1rem .75rem .75rem;
    color: #fff;
    background: #0d6efd; /* default info */
    box-shadow: 0 .6rem 1.2rem rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    font: 14px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
    word-break: break-word;
}

    .hf-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    /* Variants */
    .hf-toast.success {
        background: #2e7d32;
    }
    /* green */
    .hf-toast.error {
        background: #c62828;
    }
    /* red   */
    .hf-toast.info {
        background: #0d6efd;
    }
/* blue  */

/* Content layout */
.hf-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.hf-icon {
    line-height: 0;
    opacity: .95;
    margin-top: 2px;
}

.hf-title {
    font-weight: 600;
    margin-bottom: .25rem;
}

.hf-body {
    white-space: pre-wrap;
}

/* Close button */
.hf-close {
    position: absolute;
    top: .35rem;
    right: .35rem;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
}

    .hf-close:hover {
        background: rgba(255,255,255,.28);
    }

/* Legacy badge on updated captions (if you still need it elsewhere) */
.signalrNotificationIcon::after {
    content: " •";
    color: #0d6efd;
    font-weight: 700;
}

/* Mobile full-width bottom bar */
@media (max-width:576px) {
    #hf-toast-host {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
        align-items: stretch;
    }

    .hf-toast {
        max-width: none;
    }
}
