/* ===================================
   Image Converter
   OneToolBox
=================================== */

.converter-box{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:24px;
}

.converter-card{

background:#fff;

border-radius:18px;

padding:22px;

box-shadow:0 8px 25px rgba(0,0,0,.08);

transition:.3s;

}

.converter-card:hover{

transform:translateY(-6px);

box-shadow:0 18px 40px rgba(0,0,0,.12);

}

.converter-card h3{

font-size:22px;

margin-bottom:18px;

font-weight:700;

color:#222;

}

.upload-area{

border:2px dashed #d8d8d8;

border-radius:16px;

padding:28px;

text-align:center;

transition:.3s;

cursor:pointer;

position:relative;

}

.upload-area:hover{

border-color:#2563eb;

background:#f8fbff;

}

#uploadIcon{

font-size:55px;

color:#2563eb;

margin-bottom:15px;

}

.original-preview{

display:none;

width:100%;

max-height:280px;

object-fit:contain;

border-radius:12px;

margin-bottom:15px;

}

.choose-btn{

display:flex;

justify-content:center;

align-items:center;

gap:10px;

background:#2563eb;

color:#fff;

padding:12px;

border-radius:10px;

cursor:pointer;

margin-top:18px;

font-weight:600;

position:relative;

overflow:hidden;

}

.choose-btn:hover{

background:#1d4ed8;

}

.choose-btn input{

position:absolute;

left:0;

top:0;

width:100%;

height:100%;

opacity:0;

cursor:pointer;

}

.btn-reset{

display:flex;

justify-content:center;

align-items:center;

gap:8px;

width:100%;

margin-top:12px;

background:#ef4444;

color:#fff;

border:none;

padding:12px;

border-radius:10px;

cursor:pointer;

font-weight:600;

transition:.3s;

}

.btn-reset:hover{

background:#dc2626;

}

.btn-reset i{

font-size:18px;

}
/* ===========================
   SETTINGS
=========================== */

.setting-group{
margin-bottom:20px;
}

.setting-group label{
display:block;
font-size:15px;
font-weight:600;
margin-bottom:8px;
color:#333;
}

#formatSelect{

width:100%;

height:48px;

padding:0 15px;

border:1px solid #ddd;

border-radius:10px;

outline:none;

font-size:15px;

background:#fff;

cursor:pointer;

}

.quality-box{

display:flex;

align-items:center;

gap:15px;

margin-top:8px;

}

#qualityRange{

flex:1;

cursor:pointer;

}

#qualityValue{

font-weight:700;

min-width:45px;

text-align:right;

color:#2563eb;

}

.background-options{

display:flex;

gap:10px;

margin-top:10px;

}

.background-btn{

flex:1;

height:45px;

border:1px solid #ddd;

background:#fff;

border-radius:10px;

cursor:pointer;

font-weight:600;

transition:.3s;

}

.background-btn:hover{

background:#f4f7ff;

}

.background-btn.active{

background:#2563eb;

color:#fff;

border-color:#2563eb;

}

.btn-primary{

width:100%;

height:50px;

margin-top:25px;

border:none;

border-radius:10px;

background:#16a34a;

color:#fff;

font-size:16px;

font-weight:700;

cursor:pointer;

transition:.3s;

display:flex;

justify-content:center;

align-items:center;

gap:10px;

}

.btn-primary:hover{

background:#15803d;

}



/* ===========================
   RESULT
=========================== */

.image-preview{

height:300px;

border:2px dashed #ddd;

border-radius:14px;

display:flex;

justify-content:center;

align-items:center;

overflow:hidden;

background:#fafafa;

margin-bottom:18px;

}

#convertedPreview{

display:none;

max-width:100%;

max-height:100%;

object-fit:contain;

}

#resultText{

color:#777;

font-size:15px;

}

.info{

display:flex;

justify-content:space-between;

margin:12px 0;

font-size:15px;

}

.info b{

color:#111;

}

.btn-success{

display:flex;

justify-content:center;

align-items:center;

gap:10px;

width:100%;

height:50px;

background:#0f766e;

color:#fff;

text-decoration:none;

border-radius:10px;

font-weight:700;

margin-top:20px;

transition:.3s;

}

.btn-success:hover{

background:#115e59;

}

.btn-success.disabled{

pointer-events:none;

opacity:.45;

}



/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:992px){

.converter-box{

grid-template-columns:1fr;

}

.converter-card{

padding:18px;

}

.image-preview{

height:240px;

}

}
/* ===========================
   QUALITY SLIDER
=========================== */

#qualityRange{
    width:100%;
    height:8px;
    appearance:none;
    -webkit-appearance:none;
    background:#d1d5db;
    border-radius:50px;
    outline:none;
    cursor:pointer;
}

/* Chrome, Edge */

#qualityRange::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#2563eb;
    border:3px solid #fff;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
    cursor:pointer;
}

/* Firefox */

#qualityRange::-moz-range-thumb{
    width:20px;
    height:20px;
    border-radius:50%;
    background:#2563eb;
    border:none;
    cursor:pointer;
}

/* Firefox Track */

#qualityRange::-moz-range-track{
    height:8px;
    background:#d1d5db;
    border-radius:50px;
}

/* =========================================================
   INFORMATION / HOW-TO / FEATURES / FAQ
   Matching OneToolBox premium tool-page style
========================================================= */

.content-section{
    padding:70px 0;
}

.compact-section{
    padding-top:45px;
    padding-bottom:45px;
}

.content-heading{
    max-width:820px;
    margin:0 auto 35px;
    text-align:center;
}

.section-kicker{
    display:inline-block;
    margin-bottom:8px;
    color:#2563eb;
    font-size:13px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.content-heading h2{
    margin:0 0 10px;
    color:#0f172a;
    font-size:32px;
    line-height:1.2;
    font-weight:800;
}

.content-heading p{
    margin:0;
    color:#64748b;
    font-size:16px;
    line-height:1.7;
}

/* HOW TO USE */
.steps-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.step-card{
    position:relative;
    padding:28px 20px 24px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(15,23,42,.07);
    transition:.25s ease;
}

.step-card:hover{
    transform:translateY(-4px);
    border-color:#bfdbfe;
    box-shadow:0 16px 36px rgba(37,99,235,.12);
}

.step-number{
    position:absolute;
    top:14px;
    right:14px;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#eff6ff;
    color:#2563eb;
    font-size:13px;
    font-weight:800;
}

.step-icon{
    width:58px;
    height:58px;
    margin:0 auto 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#eff6ff;
    color:#2563eb;
    font-size:24px;
}

.step-card h3{
    margin:0 0 9px;
    color:#0f172a;
    font-size:18px;
    font-weight:800;
}

.step-card p{
    margin:0;
    color:#64748b;
    font-size:14px;
    line-height:1.65;
}

/* FEATURES */
.feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.feature-card{
    display:flex;
    align-items:flex-start;
    gap:16px;
    padding:22px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(15,23,42,.06);
    transition:.25s ease;
}

.feature-card:hover{
    transform:translateY(-3px);
    border-color:#bfdbfe;
    box-shadow:0 14px 30px rgba(37,99,235,.10);
}

.feature-icon{
    flex:0 0 48px;
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#eff6ff;
    color:#2563eb;
    font-size:20px;
}

.feature-card h3{
    margin:0 0 7px;
    color:#0f172a;
    font-size:17px;
    font-weight:800;
}

.feature-card p{
    margin:0;
    color:#64748b;
    font-size:14px;
    line-height:1.6;
}

/* PRIVACY */
.privacy-card{
    max-width:950px;
    margin:0 auto;
    padding:28px;
    display:flex;
    align-items:flex-start;
    gap:20px;
    border:1px solid #dbeafe;
    border-radius:22px;
    background:#f8fbff;
}

.privacy-icon{
    flex:0 0 58px;
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#dbeafe;
    color:#2563eb;
    font-size:24px;
}

.privacy-card h2{
    margin:0 0 9px;
    color:#0f172a;
    font-size:25px;
    font-weight:800;
}

.privacy-card p{
    margin:0 0 8px;
    color:#475569;
    line-height:1.7;
}

.privacy-card .privacy-note{
    margin-bottom:0;
    color:#64748b;
    font-size:13px;
}

/* FAQ */
.faq-list{
    max-width:900px;
    margin:0 auto;
}

.faq-list details{
    margin-bottom:12px;
    overflow:hidden;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 6px 20px rgba(15,23,42,.05);
}

.faq-list summary{
    position:relative;
    padding:19px 52px 19px 20px;
    color:#0f172a;
    font-size:16px;
    font-weight:750;
    cursor:pointer;
    list-style:none;
}

.faq-list summary::-webkit-details-marker{
    display:none;
}

.faq-list summary::after{
    content:"+";
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    color:#2563eb;
    font-size:23px;
    font-weight:500;
}

.faq-list details[open] summary::after{
    content:"−";
}

.faq-list details p{
    margin:0;
    padding:0 20px 20px;
    color:#64748b;
    font-size:14px;
    line-height:1.7;
}

/* DARK MODE COMPATIBILITY */
body.dark .content-heading h2,
body.dark .step-card h3,
body.dark .feature-card h3,
body.dark .privacy-card h2,
body.dark .faq-list summary{
    color:#f8fafc;
}

body.dark .step-card,
body.dark .feature-card,
body.dark .faq-list details{
    background:#111827;
    border-color:#334155;
}

body.dark .privacy-card{
    background:#0f1b2d;
    border-color:#1e3a5f;
}

body.dark .step-card p,
body.dark .feature-card p,
body.dark .content-heading p,
body.dark .privacy-card p,
body.dark .faq-list details p{
    color:#94a3b8;
}

/* RESPONSIVE */
@media(max-width:1000px){
    .steps-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .feature-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .content-section{
        padding:50px 0;
    }

    .compact-section{
        padding-top:35px;
        padding-bottom:35px;
    }

    .content-heading h2{
        font-size:27px;
    }

    .steps-grid,
    .feature-grid{
        grid-template-columns:1fr;
    }

    .privacy-card{
        flex-direction:column;
        padding:22px;
    }

    .privacy-card h2{
        font-size:22px;
    }

    .faq-list summary{
        padding:17px 46px 17px 16px;
        font-size:15px;
    }

    .faq-list details p{
        padding:0 16px 18px;
    }
}
