
/* NUJIZ BACKGROUND STUDIO V2 */

html body .nbsv2-controls:has(#nbsv2Studio)
>:not(#nbsv2Studio){
    display:none!important;
}

#nbsv2Studio{
    --bg-card:#ffffff;
    --bg-text:#172033;
    --bg-muted:#536176;
    --bg-line:#dbe1ec;
    --bg-soft:#f5f6fb;
    display:grid!important;
    gap:15px;
    width:100%;
    min-width:0;
    box-sizing:border-box;
}

html[data-theme="dark"] #nbsv2Studio{
    --bg-card:#1b202c;
    --bg-text:#f5f7ff;
    --bg-muted:#c0c8db;
    --bg-line:#3a4355;
    --bg-soft:#232938;
}

#nbsv2Studio *{
    box-sizing:border-box;
}

html body #nbsv2Studio h4,
html body #nbsv2Studio strong,
html body #nbsv2Studio button,
html body #nbsv2Studio label{
    color:var(--bg-text)!important;
    -webkit-text-fill-color:var(--bg-text)!important;
}

#nbsv2Studio .nbsv2-header{
    padding:20px;
    border-radius:18px;
    background:linear-gradient(135deg,#6336dc,#4338a5);
}

html body #nbsv2Studio .nbsv2-header *{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
}

#nbsv2Studio .nbsv2-ai{
    display:inline-block;
    padding:5px 10px;
    border-radius:30px;
    background:#ffffff24;
    font-size:12px;
    font-weight:800;
}

#nbsv2Studio h3{
    font-size:22px!important;
    margin:12px 0 6px!important;
    font-weight:900;
}

#nbsv2Studio .nbsv2-header p{
    font-size:14px!important;
    line-height:1.7;
    margin:0;
}

#nbsv2Status{
    padding:12px;
    border:1px solid var(--bg-line);
    border-radius:12px;
    background:var(--bg-soft);
    font-size:14px;
    font-weight:700;
    line-height:1.7;
    color:var(--bg-text)!important;
    -webkit-text-fill-color:var(--bg-text)!important;
}

html body #nbsv2Status.ready{
    background:#163d2a!important;
    border-color:#358451!important;
    color:#b5f7ca!important;
    -webkit-text-fill-color:#b5f7ca!important;
}

#nbsv2Studio .nbsv2-section{
    background:var(--bg-card);
    border:1px solid var(--bg-line);
    padding:14px;
    border-radius:16px;
}

#nbsv2Studio h4{
    font-size:17px!important;
    font-weight:800;
    margin:0 0 13px!important;
}

#nbsv2Studio .nbsv2-grid,
#nbsv2Studio .nbsv2-three{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

#nbsv2Studio .nbsv2-three{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

#nbsv2Studio button{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:6px;
    min-width:0;
    min-height:45px;
    padding:11px 6px;
    border:1px solid var(--bg-line);
    border-radius:12px;
    background:var(--bg-soft);
    font:inherit;
    font-size:14px!important;
    font-weight:700;
    cursor:pointer;
    transition:border-color .18s,background .18s;
}

#nbsv2Studio button.selected{
    border:2px solid #9569ff;
    box-shadow:0 0 0 2px #9569ff22;
}

#nbsv2Studio button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

#nbsv2Studio .nbsv2-swatch{
    display:block;
    width:100%;
    height:47px;
    border:1px solid #9ba4b5;
    border-radius:8px;
}

#nbsv2Studio .checker{
    background:repeating-conic-gradient(
        #d6d9df 0% 25%,#ffffff 0% 50%
    ) 0 0/18px 18px;
}

#nbsv2Studio .white{background:#ffffff}
#nbsv2Studio .black{background:#000000}

#nbsv2Studio .rainbow{
    background:linear-gradient(
        110deg,#ff6b6b,#ffc857,#46d39a,#6e60ff
    );
}

#nbsv2Studio .nbsv2-color{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin:13px 0;
    font-size:15px;
    font-weight:700;
}

#nbsv2Studio input[type=color]{
    width:58px;
    height:38px;
    border:1px solid var(--bg-line);
    border-radius:8px;
    padding:3px;
    cursor:pointer;
}

#nbsv2Upload,#nbsv2Reset{
    width:100%;
}

html body #nbsv2Studio small,
html body #nbsv2FormatNote{
    color:var(--bg-muted)!important;
    -webkit-text-fill-color:var(--bg-muted)!important;
    font-size:12px!important;
    line-height:1.7;
}

#nbsv2FormatNote{
    margin:10px 0 0;
}

html body #nbsv2Download:not([hidden]){
    display:flex!important;
    justify-content:center;
    align-items:center;
    width:100%;
    min-height:52px;
    margin-top:12px;
    padding:14px;
    border-radius:13px;
    background:#b8ff35!important;
    color:#142509!important;
    -webkit-text-fill-color:#142509!important;
    font-size:16px!important;
    font-weight:900;
    text-decoration:none;
    box-sizing:border-box;
}

html body #nbsv2Download[hidden]{
    display:none!important;
}

@media(max-width:600px){
    #nbsv2Studio h3{font-size:19px!important}
    #nbsv2Studio h4{font-size:16px!important}
    #nbsv2Studio .nbsv2-section{padding:11px}
    #nbsv2Studio .nbsv2-header{padding:16px}
}


/* =====================================================
   NUJIZ BACKGROUND STUDIO V2.1
   HIGH CONTRAST + LIVE PREVIEW
   ===================================================== */

html body #nbsv2Studio .nbsv2-header,
html[data-theme="dark"] body #nbsv2Studio .nbsv2-header{
    background:#5833c7!important;
    background-image:linear-gradient(
        135deg,#7545ed 0%,#5330c1 55%,#39258d 100%
    )!important;
    border:1px solid #9273f5!important;
    padding:22px 18px!important;
    border-radius:16px!important;
    box-shadow:0 8px 24px #39258d22!important;
}

html body #nbsv2Studio .nbsv2-header h3,
html[data-theme="dark"] body #nbsv2Studio .nbsv2-header h3{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    font-size:24px!important;
    font-weight:900!important;
    line-height:1.6!important;
    opacity:1!important;
}

html body #nbsv2Studio .nbsv2-header p,
html[data-theme="dark"] body #nbsv2Studio .nbsv2-header p{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    font-size:16px!important;
    line-height:1.8!important;
    opacity:1!important;
}

html body #nbsv2Studio .nbsv2-ai,
html[data-theme="dark"] body #nbsv2Studio .nbsv2-ai{
    background:#ffffff24!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    font-size:13px!important;
    font-weight:800!important;
    opacity:1!important;
}

html body #nbsv2Studio h4{
    font-size:19px!important;
    font-weight:900!important;
    line-height:1.6!important;
}

html body #nbsv2Studio button,
html body #nbsv2Studio button strong,
html body #nbsv2Studio label,
html body #nbsv2Studio label span{
    font-size:16px!important;
    font-weight:750!important;
    line-height:1.6!important;
    opacity:1!important;
}

html[data-theme="dark"] body #nbsv2Studio h4,
html[data-theme="dark"] body #nbsv2Studio button,
html[data-theme="dark"] body #nbsv2Studio button strong,
html[data-theme="dark"] body #nbsv2Studio label,
html[data-theme="dark"] body #nbsv2Studio label span{
    color:#f5f7ff!important;
    -webkit-text-fill-color:#f5f7ff!important;
}

html body #nbsv2Studio small,
html body #nbsv2Studio #nbsv2FormatNote{
    font-size:14px!important;
    line-height:1.7!important;
    opacity:1!important;
}

html[data-theme="dark"] body #nbsv2Studio small,
html[data-theme="dark"] body #nbsv2Studio #nbsv2FormatNote{
    color:#d1d8e8!important;
    -webkit-text-fill-color:#d1d8e8!important;
}

html body #nbsv2Status{
    font-size:15px!important;
    font-weight:800!important;
    padding:14px!important;
    line-height:1.8!important;
}

html body #nbsv2Studio button.selected{
    border:2px solid #986dff!important;
    background:#7950f21c!important;
    box-shadow:0 0 0 2px #986dff22!important;
}

html body #nbsv2Studio .nbsv2-swatch{
    height:54px!important;
}

html body #previewCanvas.nbsv21-preview{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    object-fit:contain!important;
    margin-inline:auto!important;
    background:
      repeating-conic-gradient(
        #cfd3db 0% 25%,
        #ffffff 0% 50%
      ) 0 0/20px 20px!important;
}

html body #statFormat,
html body #statDimensions,
html body #statSize{
    font-size:16px!important;
    font-weight:800!important;
    opacity:1!important;
}

html[data-theme="dark"] body #statFormat,
html[data-theme="dark"] body #statDimensions,
html[data-theme="dark"] body #statSize{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
}

html body #nbsv2Download:not([hidden]){
    background:#b8ff35!important;
    color:#142509!important;
    -webkit-text-fill-color:#142509!important;
    font-size:17px!important;
    font-weight:900!important;
    min-height:54px!important;
}

@media(max-width:600px){

    html body #nbsv2Studio .nbsv2-header h3{
        font-size:21px!important;
    }

    html body #nbsv2Studio .nbsv2-header p{
        font-size:14px!important;
    }

    html body #nbsv2Studio h4{
        font-size:17px!important;
    }

    html body #nbsv2Studio button,
    html body #nbsv2Studio button strong{
        font-size:14px!important;
    }

    html body #statFormat,
    html body #statDimensions,
    html body #statSize{
        font-size:14px!important;
    }
}
