
/* NUJIZ VIDEO WATERMARK STUDIO V2 */

html body[data-tool-id="watermark"]{
    --nw2-text:#182238;
    --nw2-muted:#475569;
    --nw2-panel:#ffffff;
    --nw2-soft:#f5f3ff;
    --nw2-line:#d9ddea;
    --nw2-accent:#7045e8;
    --nw2-selected:#ede9fe;
    --nw2-selected-text:#5126b5;
}

html[data-theme="dark"] body[data-tool-id="watermark"]{
    --nw2-text:#f8fafc;
    --nw2-muted:#cbd5e1;
    --nw2-panel:#191e29;
    --nw2-soft:#211c35;
    --nw2-line:#41495c;
    --nw2-accent:#ad91ff;
    --nw2-selected:#38295b;
    --nw2-selected-text:#e0d5ff;
}

/* Studio header */

html body #nw2Hero{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:24px 15px!important;
    margin:0 0 16px!important;
    border:1px solid #9274f0!important;
    border-radius:19px!important;
    text-align:center!important;
    background:linear-gradient(
        125deg,#392080,#7043d9,#354bc4,#5632b3
    )!important;
    background-size:300% 300%!important;
    animation:nw2Gradient 14s ease infinite;
    box-shadow:0 8px 24px #42258b25;
}

@keyframes nw2Gradient{
    0%,100%{background-position:0% 50%}
    50%{background-position:100% 50%}
}

html body #nw2Hero::before{
    content:"";
    position:absolute;
    width:160px;
    height:160px;
    border-radius:50%;
    background:#ffffff12;
    top:-80px;
    inset-inline-end:-40px;
    z-index:-1;
    pointer-events:none;
}

html body #nw2Hero *,
html[data-theme="dark"] body #nw2Hero *{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    opacity:1!important;
}

html body #nw2Hero .nw2-icon{
    width:52px;
    height:52px;
    margin:0 auto 12px;
    display:grid;
    place-items:center;
    border-radius:15px;
    background:#ffffff24;
    border:1px solid #ffffff45;
    font-size:26px!important;
}

html body #nw2Hero small{
    display:block;
    font-size:13px!important;
    font-weight:700!important;
}

html body #nw2Hero strong{
    display:block;
    margin:9px 0;
    font-size:24px!important;
    line-height:1.5!important;
    font-weight:900!important;
}

html body #nw2Hero p{
    margin:0!important;
    font-size:14px!important;
    line-height:1.8!important;
}

/* Original controls */

html body[data-tool-id="watermark"]
#videoDynamicControls{
    font-size:15px!important;
    line-height:1.7!important;
}

html body[data-tool-id="watermark"]
#videoDynamicControls :is(label,.field-label,.video-field>span){
    font-size:16px!important;
    font-weight:800!important;
    line-height:1.6!important;
    color:var(--nw2-text)!important;
    -webkit-text-fill-color:var(--nw2-text)!important;
    opacity:1!important;
}

html body[data-tool-id="watermark"]
#videoDynamicControls :is(input[type="text"],select){
    min-height:48px!important;
    font-size:15px!important;
    font-weight:700!important;
    border-radius:12px!important;
    border-color:var(--nw2-line)!important;
    background:var(--nw2-panel)!important;
    color:var(--nw2-text)!important;
    -webkit-text-fill-color:var(--nw2-text)!important;
}

html body[data-tool-id="watermark"]
#videoDynamicControls input::placeholder{
    color:var(--nw2-muted)!important;
    -webkit-text-fill-color:var(--nw2-muted)!important;
    opacity:1!important;
}

html body[data-tool-id="watermark"]
#videoDynamicControls input[type="range"]{
    accent-color:var(--nw2-accent)!important;
    min-height:28px!important;
    cursor:pointer;
}

html body[data-tool-id="watermark"]
#videoDynamicControls input[type="color"]{
    min-height:44px!important;
    width:100%!important;
    border-radius:10px!important;
    padding:5px!important;
    background:var(--nw2-panel)!important;
    border:1px solid var(--nw2-line)!important;
}

/* Existing watermark mode panel */

html body #nujizVideoWatermarkExtra{
    padding:14px!important;
    border-radius:16px!important;
    border:1px solid var(--nw2-line)!important;
    background:var(--nw2-panel)!important;
}

html body #nujizVideoWatermarkExtra
:is(p,small,label){
    font-size:14px!important;
    line-height:1.8!important;
    color:var(--nw2-muted)!important;
    -webkit-text-fill-color:var(--nw2-muted)!important;
    opacity:1!important;
}

html body #nujizVideoWatermarkExtra button{
    min-height:46px!important;
    border-radius:11px!important;
    font-size:15px!important;
    font-weight:800!important;
    white-space:normal!important;
    line-height:1.5!important;
    transition:transform .18s ease,box-shadow .18s ease;
}

html body #nujizVideoWatermarkExtra button.nw2-mode{
    min-height:82px!important;
    padding:12px 6px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:7px!important;
    background:var(--nw2-panel)!important;
    color:var(--nw2-text)!important;
    -webkit-text-fill-color:var(--nw2-text)!important;
    border:1px solid var(--nw2-line)!important;
}

html body #nujizVideoWatermarkExtra
button.nw2-mode.nw2-active{
    background:linear-gradient(135deg,#5831c3,#7952e9)!important;
    border-color:#b59aff!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:0 5px 16px #7045e82b;
}

html body #nujizVideoWatermarkExtra
button.nw2-mode::before{
    content:"T";
    font-size:25px;
    font-weight:900;
    line-height:1;
}

html body #nujizVideoWatermarkExtra
button.nw2-mode[data-nw2-mode="image"]::before{
    content:"▧";
}

/* Position selector */

html body .nw2-positions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(3,48px);
    gap:7px;
    padding:10px;
    margin:10px 0;
    background:var(--nw2-soft);
    border:1px solid var(--nw2-line);
    border-radius:14px;
    direction:ltr;
}

html body .nw2-positions button{
    display:grid!important;
    place-items:center;
    border:1px solid var(--nw2-line)!important;
    background:var(--nw2-panel)!important;
    border-radius:9px!important;
    color:var(--nw2-text)!important;
    -webkit-text-fill-color:var(--nw2-text)!important;
    font-size:22px!important;
    cursor:pointer;
}

html body .nw2-positions button.nw2-active{
    background:var(--nw2-selected)!important;
    border:2px solid var(--nw2-accent)!important;
    color:var(--nw2-selected-text)!important;
    -webkit-text-fill-color:var(--nw2-selected-text)!important;
}

html body .nw2-positions [data-pos="tl"]{grid-area:1/1}
html body .nw2-positions [data-pos="tr"]{grid-area:1/3}
html body .nw2-positions [data-pos="center"]{grid-area:2/2}
html body .nw2-positions [data-pos="bl"]{grid-area:3/1}
html body .nw2-positions [data-pos="br"]{grid-area:3/3}

/* Range values */

html body .nw2-value{
    display:block;
    width:max-content;
    min-width:50px;
    padding:5px 12px;
    margin:5px 0;
    border-radius:8px;
    text-align:center;
    background:var(--nw2-selected)!important;
    color:var(--nw2-selected-text)!important;
    -webkit-text-fill-color:var(--nw2-selected-text)!important;
    font-size:15px!important;
    font-weight:900!important;
    font-variant-numeric:tabular-nums;
}

/* Colour palette */

html body .nw2-colours{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:10px 0;
}

html body .nw2-colours button{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    padding:0!important;
    border:2px solid var(--nw2-line)!important;
    border-radius:50%!important;
    background:var(--nw2-swatch)!important;
    cursor:pointer;
    transition:transform .18s ease;
}

html body .nw2-colours button.nw2-active{
    outline:2px solid var(--nw2-accent);
    outline-offset:3px;
}

/* Quality options */

html body .nw2-quality{
    display:grid;
    gap:8px;
    margin:10px 0;
}

html body .nw2-quality button{
    padding:12px!important;
    min-height:48px!important;
    border-radius:11px!important;
    border:1px solid var(--nw2-line)!important;
    background:var(--nw2-panel)!important;
    color:var(--nw2-text)!important;
    -webkit-text-fill-color:var(--nw2-text)!important;
    font-size:15px!important;
    font-weight:800!important;
    cursor:pointer;
}

html body .nw2-quality button.nw2-active{
    background:var(--nw2-selected)!important;
    color:var(--nw2-selected-text)!important;
    -webkit-text-fill-color:var(--nw2-selected-text)!important;
    border:2px solid var(--nw2-accent)!important;
}

/* Instructions */

html body[data-tool-id="watermark"]
#videoDynamicControls .video-note{
    padding:14px!important;
    border-radius:12px!important;
    background:var(--nw2-soft)!important;
    border:1px solid var(--nw2-line)!important;
    font-size:14px!important;
    line-height:1.9!important;
    color:var(--nw2-text)!important;
    -webkit-text-fill-color:var(--nw2-text)!important;
}

html body[data-tool-id="watermark"]
.video-file-row :is(b,strong,small,span){
    font-size:14px!important;
    line-height:1.7!important;
    overflow-wrap:anywhere;
}

html body[data-tool-id="watermark"]
.video-file-row :is(b,strong,small){
    color:var(--nw2-text)!important;
    -webkit-text-fill-color:var(--nw2-text)!important;
}

/* Keyboard accessibility */

html body[data-tool-id="watermark"]
#videoDynamicControls button:focus-visible{
    outline:3px solid var(--nw2-accent)!important;
    outline-offset:3px;
}

@media(hover:hover){
    html body #nujizVideoWatermarkExtra button:hover,
    html body .nw2-quality button:hover,
    html body .nw2-colours button:hover{
        transform:translateY(-2px);
    }
}

@media(max-width:600px){
    html body #nw2Hero strong{
        font-size:21px!important;
    }

    html body #nw2Hero{
        padding:20px 12px!important;
    }

    html body[data-tool-id="watermark"]
    #videoDynamicControls :is(label,.field-label){
        font-size:15px!important;
    }
}

@media(prefers-reduced-motion:reduce){
    html body #nw2Hero{
        animation:none!important;
    }

    html body #videoDynamicControls button{
        transition:none!important;
    }
}

/* END NUJIZ VIDEO WATERMARK STUDIO V2 */
