/* =========================================================
   OneToolBox — PDF Converter
   Dedicated CSS
   ========================================================= */

.tool-hero{padding:32px 0 26px;text-align:center}
.tool-badge{display:inline-flex;align-items:center;gap:7px;margin-bottom:10px;padding:7px 13px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:800}
.tool-hero h1{margin:0 0 9px;color:#0f172a;font-size:40px;font-weight:800;line-height:1.15}
.tool-hero p{max-width:760px;margin:0 auto;color:#64748b;font-size:16px;line-height:1.6}

.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.tool-card{min-width:0;min-height:430px;padding:20px;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 7px 24px rgba(15,23,42,.06)}
.tool-card h2{margin:0 0 16px;color:#0f172a;font-size:20px;font-weight:800}

.upload{flex:1;min-height:260px;padding:20px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:2px dashed #93c5fd;border-radius:16px;background:#f8fbff;transition:.2s}
.upload:hover,.upload.drag{border-color:#2563eb;background:#eff6ff}
.upload>i{width:60px;height:60px;display:flex;align-items:center;justify-content:center;margin-bottom:13px;border-radius:15px;background:#dbeafe;color:#2563eb;font-size:25px}
.upload h3{margin:0 0 8px;color:#0f172a;font-size:19px;font-weight:800}
.upload p{margin:0 0 16px;color:#64748b;font-size:13px;line-height:1.7}
.choose{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-height:44px;padding:0 20px;box-sizing:border-box;border:0!important;border-radius:10px;background:#2563eb!important;color:#fff!important;font-size:13px;font-weight:800;cursor:pointer}
.choose:hover{background:#1d4ed8!important}
.choose input{display:none}

.info{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:11px 13px;box-sizing:border-box;border-radius:10px;background:#eff6ff;color:#64748b;font-size:12px}
.info b{color:#2563eb;font-weight:800}

.settings>label{display:block;margin:0 0 8px;color:#475569;font-size:13px;font-weight:800}
.format-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 20px}
.format-options label{min-height:48px!important;margin:0!important;padding:0 10px!important;box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;gap:8px;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:#475569!important;font-size:13px!important;font-weight:800!important;cursor:pointer}
.format-options label:hover{border-color:#60a5fa!important;background:#eff6ff!important;color:#2563eb!important}
.format-options label:has(input:checked){border-color:#2563eb!important;background:#eff6ff!important;color:#2563eb!important;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.format-options input{width:16px;height:16px;margin:0;accent-color:#2563eb}

.range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:28px;margin:0;padding:0;background:transparent;cursor:pointer}
.range::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:#dbeafe}
.range::-moz-range-track{height:8px;border-radius:999px;background:#dbeafe}
.range::-moz-range-progress{height:8px;border-radius:999px;background:#2563eb}
.range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin-top:-7px;border:3px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 2px 8px rgba(15,23,42,.25)}
.range::-moz-range-thumb{width:17px;height:17px;border:3px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 2px 8px rgba(15,23,42,.25)}

.btn{width:100%!important;min-height:46px!important;margin-top:14px;padding:0 15px;box-sizing:border-box;border:0;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px!important;font-weight:800!important;cursor:pointer;transition:.2s}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.primary{background:#2563eb!important;color:#fff!important}
.btn.primary:hover:not(:disabled){background:#1d4ed8!important}
.btn.success{background:#16a34a!important;color:#fff!important}
.btn.success:hover:not(:disabled){background:#15803d!important}
.btn.danger{background:#fee2e2!important;color:#dc2626!important}
.btn.danger:hover{background:#fecaca!important}

.progress{display:flex;align-items:center;gap:9px;margin-top:13px}
.track{flex:1;height:9px;overflow:hidden;border-radius:999px;background:#e2e8f0}
.track>div{width:0;height:100%;border-radius:999px;background:#2563eb;transition:width .25s ease}
.progress strong{min-width:35px;color:#2563eb;font-size:11px;text-align:right}
.status{margin:9px 0 0;color:#64748b;font-size:12px;line-height:1.5;text-align:center}

.preview{flex:1;min-height:260px;padding:13px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:auto;border-radius:15px;background:#f1f5f9;color:#94a3b8;text-align:center}
.preview img{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:9px;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.14)}
.preview pre{width:100%;max-height:320px;margin:0;padding:12px;box-sizing:border-box;overflow:auto;border-radius:9px;background:#fff;color:#334155;text-align:left;font:13px/1.55 Arial,sans-serif}

.section-title{margin:0 0 20px;color:#0f172a;font-size:27px!important;line-height:1.25;font-weight:800;text-align:center}
.feature-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px}
.feature{min-width:0;min-height:145px;padding:18px;box-sizing:border-box;border:1px solid #e5e7eb;border-radius:15px;background:#fff;box-shadow:0 5px 17px rgba(15,23,42,.05)}
.feature>i{width:42px;height:42px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;border-radius:11px;background:#eff6ff;color:#2563eb;font-size:17px}
.feature h3{margin:0 0 6px;color:#0f172a;font-size:16px!important;line-height:1.3}
.feature p{margin:0;color:#64748b;font-size:13px!important;line-height:1.55}

.faq{width:100%;max-width:950px!important;margin:0 auto}
.faq .section-title{margin-bottom:20px}
.faq details{width:100%;margin:0 0 10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;overflow:hidden}
.faq summary{display:block;padding:16px 18px;box-sizing:border-box;cursor:pointer;color:#0f172a;font-size:14px!important;line-height:1.4;font-weight:800}
.faq details p{margin:0;padding:0 18px 16px;color:#64748b;font-size:13px!important;line-height:1.65}

@media(max-width:900px) and (min-width:701px){
 .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
 .tool-card{min-height:390px;padding:13px}
 .tool-card h2{font-size:17px}
 .upload,.preview{min-height:215px}
 .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
 .tool-grid{grid-template-columns:1fr;gap:13px}
 .tool-card{min-height:0;padding:16px}
 .upload,.preview{min-height:210px}
 .feature-grid{grid-template-columns:1fr 1fr!important}
 .section-title{font-size:24px!important}
}
@media(max-width:480px){
 .feature-grid{grid-template-columns:1fr!important}
 .feature{min-height:125px}
 .format-options{grid-template-columns:1fr 1fr}
}
