/* =========================================
   CONTAINERS DE POSICIONAMENTO (FIXOS)
   ========================================= */
.custom-toast-container,
#toast-container-js {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column; /* Permite empilhar múltiplos se necessário */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none; /* Não bloqueia cliques na página */
    padding: 20px;
}

#toast-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

/* =========================================
   LAYOUT PROFISSIOAL DOS TOASTS
   ========================================= */
.custom-toast {
    pointer-events: auto; /* Permite interagir com o toast se necessário */
    min-width: 320px;
    max-width: 480px;
    padding: 14px 20px;
    border-radius: 10px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Estados de Ocultação (Animação de saída) */
.toast-hide {
    opacity: 0;
    transform: scale(0.9) translateY(-15px);
}

/* Cores Modernas (Menos saturadas, mais elegantes) */
.toast-success { background-color: #10b981; border-left: 5px solid #047857; }
.toast-info    { background-color: #3b82f6; border-left: 5px solid #1d4ed8; }
.toast-warning { background-color: #f59e0b; border-left: 5px solid #b45309; }
.toast-error   { background-color: #ef4444; border-left: 5px solid #b91c1c; }

/* =========================================
   LAYOUT PROFISSIONAL DOS MODAIS
   ========================================= */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6); /* Backdrop escuro moderno */
    backdrop-filter: blur(4px); /* Efeito de desfoque ao fundo */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
    padding: 20px;
}

.custom-modal-box {
    position: relative;
    background: #ffffff;
    width: 100%;
    min-width: 320px;
    max-width: 480px;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Animação pop-in elegante */
}

.custom-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.custom-modal-close:hover {
    color: #1e293b;
    transform: scale(1.1);
}

/* Conteúdo interno do Modal */
.modal-error, .modal-warning {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.modal-error { color: #991b1b; }
.modal-warning { color: #92400e; }

/* =========================================
   ANIMAÇÕES
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

