/* /Components/ToastHost.razor.rz.scp.css */
/* Toasts: canto inferior direito, empilhados, por cima de tudo (inclusive dos modais). */
.toast-host[b-jt6t1qhi8c] {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* O contentor cobre o ecrã todo mas não pode roubar cliques ao que está por baixo. */
    pointer-events: none;
}

.toast-card[b-jt6t1qhi8c] {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-width: 300px;
    max-width: 420px;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-left-width: 4px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 42, 76, 0.16);
    animation: toast-in-b-jt6t1qhi8c 0.22s ease-out;
}

@keyframes toast-in-b-jt6t1qhi8c {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Quem não quer animações não as leva. */
@media (prefers-reduced-motion: reduce) {
    .toast-card[b-jt6t1qhi8c] {
        animation: none;
    }
}

.toast-card.is-ok[b-jt6t1qhi8c] {
    border-left-color: #2e9e5b;
}

.toast-card.is-ok .toast-icon[b-jt6t1qhi8c] {
    color: #2e9e5b;
}

.toast-card.is-bad[b-jt6t1qhi8c] {
    border-left-color: #c0392b;
}

.toast-card.is-bad .toast-icon[b-jt6t1qhi8c] {
    color: #c0392b;
}

.toast-icon[b-jt6t1qhi8c] {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.toast-message[b-jt6t1qhi8c] {
    flex: 1 1 auto;
    color: #33414f;
    font-size: 0.88rem;
    line-height: 1.45;
}

.toast-close[b-jt6t1qhi8c] {
    flex: 0 0 auto;
    border: 0;
    background: none;
    padding: 0.15rem;
    border-radius: 4px;
    color: #98a4b3;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}

.toast-close:hover[b-jt6t1qhi8c] {
    color: #55636f;
    background: #eef3f8;
}

.toast-close:focus-visible[b-jt6t1qhi8c] {
    outline: 2px solid #9fc7e8;
    outline-offset: 1px;
}

@media (max-width: 480px) {
    .toast-host[b-jt6t1qhi8c] {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast-card[b-jt6t1qhi8c] {
        min-width: 0;
        max-width: none;
    }
}
