/* =====================================================
TOAST GLOBAL SISGCOE
===================================================== */

#sisgcoe-toast-container{
    position:fixed;
    top:22px;
    right:22px;
    z-index:999999;
    display:flex;
    flex-direction:column;
    gap:12px;
    max-width:420px;
    width:calc(100% - 44px);
    pointer-events:none;
}

.sisgcoe-toast{
    pointer-events:auto;
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:16px 18px;
    border-radius:18px;
    background:var(--bg-surface, #ffffff);
    color:var(--text-main, #1f2937);
    border:1px solid var(--border-soft, #dbe2ea);
    box-shadow:0 18px 40px rgba(15,23,42,.18);
    animation:toastEntrada .22s ease;
    font-weight:700;
    line-height:1.4;
}

.sisgcoe-toast-icone{
    font-size:20px;
    line-height:1;
}

.sisgcoe-toast-texto{
    flex:1;
    font-size:14px;
}

.sisgcoe-toast-fechar{
    background:none;
    border:none;
    color:inherit;
    font-size:18px;
    cursor:pointer;
    opacity:.65;
}

.sisgcoe-toast-fechar:hover{
    opacity:1;
}

.sisgcoe-toast.success{
    border-left:6px solid #22c55e;
}

.sisgcoe-toast.error{
    border-left:6px solid #ef4444;
}

.sisgcoe-toast.warning{
    border-left:6px solid #f59e0b;
}

.sisgcoe-toast.info{
    border-left:6px solid #3b82f6;
}

body.dark-mode .sisgcoe-toast{
    background:var(--bg-surface, #111827);
    color:var(--text-main, #e5e7eb);
    border-color:var(--border-soft, #334155);
    box-shadow:0 18px 45px rgba(0,0,0,.45);
}

@keyframes toastEntrada{
    from{
        opacity:0;
        transform:translateX(14px) scale(.98);
    }
    to{
        opacity:1;
        transform:translateX(0) scale(1);
    }
}

@media(max-width:768px){
    #sisgcoe-toast-container{
        top:14px;
        right:14px;
        left:14px;
        width:auto;
        max-width:none;
    }

    .sisgcoe-toast{
        border-radius:16px;
        padding:14px;
    }
}