﻿/* Container fixo (top-right) */
.sc-toast-stack {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999999;
    pointer-events: none;
    align-items: center; /* garante centralização visual */
}


/* Toast */
.sc-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 12px 12px;
    border-radius: 12px;
    background: #111827; /* slate-900 */
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    display: grid;
    grid-template-columns: 22px 1fr 18px;
    gap: 10px;
    align-items: start;
    transform: translateY(-6px);
    opacity: 0;
    animation: scToastIn .18s ease-out forwards;
    width: min(92vw, 420px);
}

.sc-toast__icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-top: 1px;
}

.sc-toast__title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    margin: 0 0 2px 0;
}

.sc-toast__msg {
    font-size: 13px;
    line-height: 1.35;
    opacity: .95;
}

.sc-toast__close {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    font-size: 18px;
    line-height: 18px;
    padding: 0;
    margin-top: 1px;
}

    .sc-toast__close:hover {
        color: #fff;
    }

.sc-toast--success {
    background: #064e3b;
}
/* emerald-900 */
.sc-toast--danger {
    background: #7f1d1d;
}
/* red-900 */
.sc-toast--warning {
    background: #78350f;
}
/* amber-900 */
.sc-toast--info {
    background: #1e3a8a;
}
/* blue-900 */

.sc-toast__bar {
    grid-column: 1 / -1;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    overflow: hidden;
    margin-top: 8px;
}

    .sc-toast__bar > span {
        display: block;
        height: 100%;
        width: 100%;
        transform-origin: left;
        background: rgba(255,255,255,.7);
        animation: scToastBar linear forwards;
    }

@keyframes scToastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scToastOut {
    to {
        transform: translateY(-6px);
        opacity: 0;
    }
}

@keyframes scToastBar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}
