/* ======================================
   Toast Nota Técnica - COMEC
   ====================================== */

/* RESET COMPLETO - Anula todos os estilos herdados */
#toastNotaTecnica,
#toastNotaTecnica *,
#toastNotaTecnica *::before,
#toastNotaTecnica *::after {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Roboto', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Container do Toast - Canto inferior esquerdo */
#toastNotaTecnica {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    width: 400px !important;
    max-width: calc(100% - 40px) !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999999 !important;
    opacity: 0 !important;
    transform: translateX(-120%) !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    overflow: visible !important;
    border-left: 5px solid #0A6E6A !important;
    display: block !important;
    visibility: visible !important;
}

/* Remover pseudo-elementos */
#toastNotaTecnica::before,
#toastNotaTecnica::after {
    display: none !important;
    content: none !important;
}

#toastNotaTecnica.show {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
    visibility: visible !important;
}

/* Barra superior verde */
#toastNotaTecnica .nt-header {
    background: linear-gradient(135deg, #0A6E6A 0%, #085854 100%) !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 12px 12px 0 0 !important;
    margin: 0 !important;
    border: none !important;
}

#toastNotaTecnica .nt-title {
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

#toastNotaTecnica .nt-title i {
    margin-right: 10px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#toastNotaTecnica .nt-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.8;
}

#toastNotaTecnica .nt-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: rotate(90deg);
}

/* Corpo do Toast */
#toastNotaTecnica .nt-body {
    padding: 20px !important;
    color: #333 !important;
    line-height: 1.6 !important;
    background: #fff !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 0 0 12px 12px !important;
}

#toastNotaTecnica .nt-body p {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    border: none !important;
}

#toastNotaTecnica .nt-body p:last-of-type {
    margin-bottom: 16px !important;
}

#toastNotaTecnica .nt-body strong {
    color: #0A6E6A !important;
    font-weight: 600 !important;
}

/* Botão de Ação */
#toastNotaTecnica .nt-action {
    background: #0A6E6A;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#toastNotaTecnica .nt-action:hover {
    background: #085854;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 110, 106, 0.3);
    color: #fff;
}

#toastNotaTecnica .nt-action i {
    margin-right: 8px;
    font-size: 16px;
}

/* Link discreto para fechar */
#toastNotaTecnica .nt-dismiss {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

#toastNotaTecnica .nt-dismiss:hover {
    color: #666;
    text-decoration: underline;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    #toastNotaTecnica {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        transform: translateY(150%);
    }
    
    #toastNotaTecnica.show {
        opacity: 1;
        transform: translateY(0);
    }
    
    #toastNotaTecnica.hide {
        opacity: 0;
        transform: translateY(150%);
    }
    
    #toastNotaTecnica .nt-header {
        padding: 14px 16px;
    }
    
    #toastNotaTecnica .nt-title {
        font-size: 14px;
    }
    
    #toastNotaTecnica .nt-body {
        padding: 16px;
    }
    
    #toastNotaTecnica .nt-body p {
        font-size: 13px;
    }
    
    #toastNotaTecnica .nt-action {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Animação de saída */
#toastNotaTecnica.hide {
    opacity: 0;
    transform: translateX(-120%);
}
