/* ============================ Notificações globais (toasts) ============================ */

.ssp-toast-root {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.ssp-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left-width: 4px;
    background: #0f172a;
    color: #e5edfb;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}
.ssp-toast--in {
    opacity: 1;
    transform: translateX(0);
}
.ssp-toast--out {
    opacity: 0;
    transform: translateX(24px);
}

.ssp-toast-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 0.05rem;
}
.ssp-toast-icon svg {
    width: 20px;
    height: 20px;
}

.ssp-toast-msg {
    flex: 1 1 auto;
    word-break: break-word;
    padding-top: 0.05rem;
}

.ssp-toast-close {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.15rem;
    border-radius: 6px;
    transition: opacity 0.15s, background 0.15s;
}
.ssp-toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

/* Variantes */
.ssp-toast--success {
    border-left-color: #22c55e;
}
.ssp-toast--success .ssp-toast-icon {
    color: #4ade80;
}
.ssp-toast--error {
    border-left-color: #ef4444;
}
.ssp-toast--error .ssp-toast-icon {
    color: #f87171;
}
.ssp-toast--warning {
    border-left-color: #f59e0b;
}
.ssp-toast--warning .ssp-toast-icon {
    color: #fbbf24;
}
.ssp-toast--info {
    border-left-color: #3b82f6;
}
.ssp-toast--info .ssp-toast-icon {
    color: #60a5fa;
}

@media (max-width: 560px) {
    .ssp-toast-root {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
    }
    .ssp-toast {
        transform: translateY(24px);
    }
    .ssp-toast--in {
        transform: translateY(0);
    }
    .ssp-toast--out {
        transform: translateY(24px);
    }
}

/* Tema claro (acessibilidade) */
html.a11y-light .ssp-toast {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
}
