/* ===========================================================
   Toast central — TASK-02
   Feedback não-bloqueante. Slide-in da direita, auto-dismiss
   ou persistente conforme `duracaoMs`. Empilhamento vertical.
   Em viewport ≤ 480px, ocupa a largura quase total e alinha
   ao topo central para legibilidade em mobile.
   =========================================================== */

.gs-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

.gs-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    padding: 12px 14px 12px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    border-left: 4px solid transparent;
    color: var(--text-dark, #333);
    font-family: inherit;
    font-size: 0.95em;
    line-height: 1.4;
    background: #fff;
    animation: gs-toast-in 0.22s ease;
}

.gs-toast--saindo {
    animation: gs-toast-out 0.18s ease forwards;
}

@keyframes gs-toast-in {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes gs-toast-out {
    to { opacity: 0; transform: translateX(16px); }
}

.gs-toast--sucesso {
    background: #e6ffed;
    border-left-color: #28a745;
}

.gs-toast--erro {
    background: #ffe6e6;
    border-left-color: #dc3545;
}

.gs-toast--aviso {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.gs-toast--info {
    background: #eef3f8;
    border-left-color: #6A8EAE;
}

.gs-toast__texto {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    padding-top: 2px;
}

.gs-toast__acao {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    align-self: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gs-toast__acao:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.gs-toast__fechar {
    background: transparent;
    border: none;
    color: var(--text-muted, #6B7280);
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    font-family: inherit;
    align-self: flex-start;
}

.gs-toast__fechar:hover {
    color: var(--text-dark, #333);
}

@media (max-width: 480px) {
    .gs-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        align-items: stretch;
    }

    .gs-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}
