
/* NUJIZ RMBG PROFESSIONAL PROGRESS V1 */

#nujizBgProgress[hidden]{
    display:none!important;
}

#nujizBgProgress{
    --nbg-value:0%;
    width:100%;
    box-sizing:border-box;
    margin:18px 0;
    padding:24px 18px;
    border-radius:22px;
    border:1px solid #494064;
    background:linear-gradient(145deg,#111827,#211b35);
    text-align:center;
    box-shadow:0 12px 35px #0003;
}

html body #nujizBgProgress,
html body #nujizBgProgress *{
    box-sizing:border-box;
    color:#f1f5f9!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
    text-shadow:none!important;
}

#nujizBgProgress .nbg-brand{
    font-size:14px;
    font-weight:900;
    letter-spacing:2px;
    margin-bottom:18px;
}

#nujizBgProgress .nbg-ring{
    width:154px;
    height:154px;
    padding:9px;
    margin:0 auto 18px;
    border-radius:50%;
    background:conic-gradient(
        #b6f52b 0%,
        #8b5cf6 var(--nbg-value),
        #30374a var(--nbg-value),
        #30374a 100%
    );
    box-shadow:0 0 28px #8b5cf644;
}

#nujizBgProgress .nbg-ring-inner{
    width:100%;
    height:100%;
    border-radius:50%;
    background:#151a2a;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
}

#nbgPercent{
    font-size:38px!important;
    font-weight:900!important;
    direction:ltr;
    line-height:1.2;
}

#nujizBgProgress small{
    font-size:12px!important;
}

#nbgTitle{
    font-size:20px!important;
    font-weight:800!important;
    margin:14px 0;
}

#nujizBgProgress .nbg-wave{
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    direction:ltr;
}

#nujizBgProgress .nbg-wave i{
    display:block;
    width:5px;
    height:40px;
    border-radius:10px;
    background:linear-gradient(#b6f52b,#8b5cf6);
    animation:nbgWave 1.1s ease-in-out infinite alternate;
    animation-delay:calc(var(--i)* -0.09s);
}

@keyframes nbgWave{
    from{transform:scaleY(.18)}
    to{transform:scaleY(1.3)}
}

#nbgMessage{
    min-height:44px;
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.8;
    margin:10px 0 18px;
}

#nujizBgProgress .nbg-track{
    height:8px;
    border-radius:20px;
    background:#30374a;
    overflow:hidden;
}

#nbgFill{
    height:100%;
    width:0;
    border-radius:20px;
    background:linear-gradient(90deg,#8b5cf6,#b6f52b);
    transition:width .5s ease;
}

#nujizBgProgress .nbg-time{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 0;
    font-size:14px;
    font-weight:700;
}

#nbgElapsed{
    direction:ltr;
    font-size:20px!important;
    font-variant-numeric:tabular-nums;
}

#nujizBgProgress .nbg-stages{
    border-top:1px solid #ffffff20;
    padding-top:10px;
    text-align:start;
}

#nujizBgProgress .nbg-step{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 0;
    font-size:14px;
    font-weight:600;
}

#nujizBgProgress .nbg-step i{
    width:20px;
    height:20px;
    flex-shrink:0;
    border-radius:50%;
    border:2px solid #94a3b8;
    display:flex;
    align-items:center;
    justify-content:center;
    font-style:normal;
}

html body #nujizBgProgress .nbg-step.done{
    color:#d9f99d!important;
}

html body #nujizBgProgress .nbg-step.done i{
    background:#b6f52b;
    border-color:#b6f52b;
    color:#172509!important;
}

#nujizBgProgress .nbg-step.active i{
    border-color:#a78bfa;
    border-top-color:transparent;
    animation:nbgSpin .8s linear infinite;
}

@keyframes nbgSpin{
    to{transform:rotate(360deg)}
}

#nbgTip{
    margin-top:14px;
    padding:13px;
    border-radius:12px;
    border:1px solid #ffffff20;
    background:#ffffff0b;
    font-size:14px!important;
    line-height:1.8;
}

#nujizBgProgress.completed .nbg-ring{
    background:#b6f52b;
}

#nujizBgProgress.completed .nbg-wave i{
    animation:none;
    transform:scaleY(.3);
    background:#b6f52b;
}

/* Save image button: clear text in both themes */

html body #nujiz-rmbg-download-box a,
html body #nujiz-rmbg-download-box a *{
    color:#142509!important;
    -webkit-text-fill-color:#142509!important;
    opacity:1!important;
    font-size:17px!important;
    font-weight:900!important;
    text-shadow:none!important;
}

html body #nujiz-rmbg-download-box a{
    background:#b6f52b!important;
    min-height:56px!important;
    border-radius:14px!important;
    text-decoration:none!important;
}

/* Status text */

html body #toolMessage.visible{
    font-weight:700!important;
    line-height:1.8!important;
}

html[data-theme="dark"] body #toolMessage.visible{
    color:#e2e8f0!important;
    -webkit-text-fill-color:#e2e8f0!important;
}

@media(max-width:480px){
    #nujizBgProgress{
        padding:20px 12px;
    }

    #nujizBgProgress .nbg-wave{
        gap:4px;
    }

    #nujizBgProgress .nbg-wave i{
        width:4px;
    }
}

@media(prefers-reduced-motion:reduce){
    #nujizBgProgress *{
        animation:none!important;
        transition:none!important;
    }
}
