/* ==========================================
   TOAST GLOBAL DO SISTEMA
========================================== */

.toast-container {
    z-index: 9999;
}

#toastSistema {
    width: 360px;
    max-width: calc(100vw - 32px);

    border: none;
    border-radius: 18px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);

    box-shadow:
        0 20px 50px rgba(77, 44, 55, 0.18),
        0 6px 18px rgba(77, 44, 55, 0.08);

    color: #4b363d;
}

#toastSistema .toast-body {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px 20px 18px 18px;
}

/* Faixa lateral */

#toastSistema .toast-body::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background: #5fa276;
}

/* Ícone */

#toastSistema .toast-icone {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: #eaf6ee;
    color: #5fa276;

    font-size: 23px;

    box-shadow: inset 0 0 0 1px rgba(95, 162, 118, 0.12);
}

/* Conteúdo */

#toastSistema .toast-conteudo {
    display: flex;
    flex-direction: column;
    gap: 3px;

    flex: 1;
}

#toastSistema #toastTitulo {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;

    color: #3f2d33;
}

#toastSistema #toastMensagem {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    color: #796a6f;
}

/* ==========================================
   SUCESSO
========================================== */

#toastSistema.toast-success .toast-body::before {
    background: #5fa276;
}

#toastSistema.toast-success .toast-icone {
    background: #eaf6ee;
    color: #5fa276;
}

/* ==========================================
   ERRO
========================================== */

#toastSistema.toast-error .toast-body::before {
    background: #d86666;
}

#toastSistema.toast-error .toast-icone {
    background: #fdecec;
    color: #d86666;
}

/* ==========================================
   AVISO
========================================== */

#toastSistema.toast-warning .toast-body::before {
    background: #d9a441;
}

#toastSistema.toast-warning .toast-icone {
    background: #fff5dc;
    color: #d9a441;
}

/* ==========================================
   INFORMAÇÃO
========================================== */

#toastSistema.toast-info .toast-body::before {
    background: #b8758d;
}

#toastSistema.toast-info .toast-icone {
    background: #f8eaf0;
    color: #b8758d;
}

/* ==========================================
   ANIMAÇÃO
========================================== */

#toastSistema.showing {
    animation: toastEntrada 0.35s ease;
}

#toastSistema.show {
    animation: toastEntrada 0.35s ease;
}

#toastSistema.hide {
    animation: toastSaida 0.25s ease forwards;
}

@keyframes toastEntrada {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSaida {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ==========================================
   RESPONSIVO
========================================== */

@media (max-width: 576px) {
    .toast-container {
        top: 12px !important;
        right: 12px !important;
        left: 12px !important;

        padding: 0 !important;
    }

    #toastSistema {
        width: 100%;
        max-width: 100%;
    }

    #toastSistema .toast-body {
        padding: 16px;
    }
}