/* EzyConvert unified tool UI — aligns original tools with the new tool workspace */
.footer-grid.footer-grid-separated{
  grid-template-columns:minmax(250px,1.35fr) repeat(4,minmax(135px,.8fr))!important;
  gap:36px!important;
}
.footer-grid-separated .footer-link-group{min-width:0;}
.footer-grid-separated .footer-link-group a{overflow-wrap:anywhere;}

body.tool-page:not([data-new-tool]) .unified-legacy-panel{
  display:block!important;
  margin:8px 0 0!important;
  padding:0 30px 30px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  border:1px solid #dfe8f4!important;
  border-radius:30px!important;
  box-shadow:0 18px 48px rgba(14,25,45,.11)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.tool-page:not([data-new-tool]) .unified-legacy-panel>.panel-heading{
  margin:0 -30px 28px!important;
  padding:25px 30px 20px!important;
  border-bottom:1px solid #e6ebf2!important;
  background:#fff!important;
  color:#132238!important;
  font-size:26px!important;
  line-height:1.2!important;
  text-align:left!important;
}
body.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel{
  padding:30px!important;
  background:linear-gradient(180deg,#f8fbff 0%,#f4f7fc 100%)!important;
  align-items:stretch!important;
  text-align:initial!important;
}
body.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel .unified-upload-inner{
  min-height:250px!important;
  border:2px dashed #91b7ff!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.86)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:32px 22px!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease!important;
}
body.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel .unified-upload-inner:hover,
body.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel.dragging .unified-upload-inner{
  border-color:#3478ff!important;
  background:#eef5ff!important;
  box-shadow:0 14px 34px rgba(52,120,255,.12)!important;
  transform:translateY(-1px);
}
body.tool-page:not([data-new-tool]) .unified-upload-zone{
  min-height:250px!important;
  border:2px dashed #91b7ff!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.86)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:32px 22px!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease!important;
}
body.tool-page:not([data-new-tool]) .unified-upload-zone:hover,
body.tool-page:not([data-new-tool]) .unified-upload-zone.dragging{
  border-color:#3478ff!important;
  background:#eef5ff!important;
  box-shadow:0 14px 34px rgba(52,120,255,.12)!important;
  transform:translateY(-1px);
}
body.tool-page:not([data-new-tool]) .unified-upload-zone .upload-icon,
body.tool-page:not([data-new-tool]) .unified-upload-inner .upload-icon{
  width:82px!important;
  height:82px!important;
  box-sizing:border-box!important;
  padding:18px!important;
  margin:0 auto 15px!important;
  border-radius:24px!important;
  color:#2563eb!important;
  background:linear-gradient(145deg,#e9f2ff,#f9fbff)!important;
  border:1px solid #c9ddff!important;
  box-shadow:0 10px 26px rgba(52,120,255,.13)!important;
}
body.tool-page:not([data-new-tool]) .unified-upload-zone .upload-icon path,
body.tool-page:not([data-new-tool]) .unified-upload-inner .upload-icon path{stroke:#2563eb!important;}
body.tool-page:not([data-new-tool]) .unified-upload-zone h3,
body.tool-page:not([data-new-tool]) .unified-upload-zone .upload-title,
body.tool-page:not([data-new-tool]) .unified-upload-inner .upload-title{
  margin:0 0 8px!important;
  font-size:24px!important;
  line-height:1.25!important;
  color:#132238!important;
  font-weight:800!important;
}
body.tool-page:not([data-new-tool]) .unified-upload-inner>.panel-heading{display:none!important;}
body.tool-page:not([data-new-tool]) .unified-upload-zone p,
body.tool-page:not([data-new-tool]) .unified-upload-zone .upload-sub,
body.tool-page:not([data-new-tool]) .unified-upload-inner .upload-sub{
  margin:0 0 17px!important;
  color:#66758d!important;
  font-size:15px!important;
  line-height:1.55!important;
}
body.tool-page:not([data-new-tool]) .unified-upload-zone .browse-btn,
body.tool-page:not([data-new-tool]) .unified-upload-inner .browse-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  padding:12px 22px!important;
  border:0!important;
  border-radius:13px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#3478ff,#5661ea)!important;
  box-shadow:0 10px 22px rgba(52,120,255,.22)!important;
  font-weight:800!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
body.tool-page:not([data-new-tool]) .unified-upload-zone .browse-btn:hover,
body.tool-page:not([data-new-tool]) .unified-upload-inner .browse-btn:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(52,120,255,.28)!important;}
body.tool-page:not([data-new-tool]) .unified-legacy-panel .pdf-reverse-panel,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .cropper-content,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .compressor-content,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .qr-layout{
  background:linear-gradient(180deg,#f8fbff 0%,#f4f7fc 100%)!important;
  border:1px solid #e3eaf4!important;
  border-radius:22px!important;
  padding:22px!important;
  box-sizing:border-box!important;
}
body.tool-page:not([data-new-tool]) .unified-legacy-panel .pdf-workspace,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .qr-form,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .qr-preview-box,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .compressor-grid,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .crop-preview-wrap{
  border-radius:18px!important;
}
body.tool-page:not([data-new-tool]) .unified-legacy-panel .tool-input,
body.tool-page:not([data-new-tool]) .unified-legacy-panel textarea,
body.tool-page:not([data-new-tool]) .unified-legacy-panel select,
body.tool-page:not([data-new-tool]) .unified-legacy-panel input[type="text"],
body.tool-page:not([data-new-tool]) .unified-legacy-panel input[type="number"],
body.tool-page:not([data-new-tool]) .unified-legacy-panel input[type="url"],
body.tool-page:not([data-new-tool]) .unified-legacy-panel input[type="email"],
body.tool-page:not([data-new-tool]) .unified-legacy-panel input[type="tel"]{
  border-radius:11px!important;
  border-color:#ced8e5!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.tool-page:not([data-new-tool]) .unified-legacy-panel .tool-input:focus,
body.tool-page:not([data-new-tool]) .unified-legacy-panel textarea:focus,
body.tool-page:not([data-new-tool]) .unified-legacy-panel select:focus,
body.tool-page:not([data-new-tool]) .unified-legacy-panel input:focus{
  border-color:#3478ff!important;
  box-shadow:0 0 0 3px rgba(52,120,255,.12)!important;
  outline:0!important;
}
body.tool-page:not([data-new-tool]) .unified-legacy-panel #pdfConvertBtn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel #pdfToImgConvertBtn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel #textPdfConvertBtn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel #pdfToTextConvertBtn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel #cropConvertBtn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel #compressBtn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel #generateQrBtn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .convert-all{
  border:0!important;
  border-radius:13px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#3478ff,#5661ea)!important;
  box-shadow:0 12px 26px rgba(52,120,255,.25)!important;
  font-weight:800!important;
}
body.tool-page:not([data-new-tool]) .unified-legacy-panel .tool-download-ready,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .pdf-download-ready,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .download-btn,
body.tool-page:not([data-new-tool]) .unified-legacy-panel .zip-btn{
  border-radius:13px!important;
  background:#18b996!important;
  box-shadow:0 9px 20px rgba(24,185,150,.23)!important;
}
body.tool-page:not([data-new-tool]) #toolsPanel{
  margin-top:24px!important;
  padding:24px!important;
  border:1px solid #e3eaf4!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.tool-page:not([data-new-tool]) #fileGrid .file-card,
body.tool-page:not([data-new-tool]) .compressor-card,
body.tool-page:not([data-new-tool]) .pdf-thumb-card,
body.tool-page:not([data-new-tool]) .pdf-image-card{
  border-radius:18px!important;
  border-color:#e0e7f0!important;
  box-shadow:0 8px 21px rgba(14,25,45,.07)!important;
}
body.tool-page:not([data-new-tool]) .extra-progress,
body.tool-page:not([data-new-tool]) .reverse-output{
  border-radius:16px!important;
  border-color:#e3eaf4!important;
}

.dark-theme body.tool-page:not([data-new-tool]) .unified-legacy-panel,
body.dark-theme.tool-page:not([data-new-tool]) .unified-legacy-panel{
  background:#101f33!important;
  border-color:rgba(219,234,254,.14)!important;
}
body.dark-theme.tool-page:not([data-new-tool]) .unified-legacy-panel>.panel-heading{background:#101f33!important;color:#f4f9ff!important;border-color:rgba(219,234,254,.14)!important;}
body.dark-theme.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel,
body.dark-theme.tool-page:not([data-new-tool]) .unified-legacy-panel .pdf-reverse-panel,
body.dark-theme.tool-page:not([data-new-tool]) .unified-legacy-panel .cropper-content,
body.dark-theme.tool-page:not([data-new-tool]) .unified-legacy-panel .compressor-content,
body.dark-theme.tool-page:not([data-new-tool]) .unified-legacy-panel .qr-layout{background:#0c1a2c!important;border-color:rgba(219,234,254,.14)!important;}
body.dark-theme.tool-page:not([data-new-tool]) .unified-upload-zone,
body.dark-theme.tool-page:not([data-new-tool]) .unified-upload-inner{background:#0b1728!important;border-color:#315c93!important;}
body.dark-theme.tool-page:not([data-new-tool]) .unified-upload-zone h3,
body.dark-theme.tool-page:not([data-new-tool]) .unified-upload-zone .upload-title,
body.dark-theme.tool-page:not([data-new-tool]) .unified-upload-inner .upload-title{color:#f4f9ff!important;}
body.dark-theme.tool-page:not([data-new-tool]) #toolsPanel{background:#0c1a2c!important;border-color:rgba(219,234,254,.14)!important;}

@media(max-width:1180px){
  .footer-grid.footer-grid-separated{grid-template-columns:1.3fr repeat(2,1fr)!important;}
  .footer-grid-separated .footer-brand-block{grid-row:span 2;}
}
@media(max-width:760px){
  .footer-grid.footer-grid-separated{grid-template-columns:1fr 1fr!important;gap:26px!important;}
  .footer-grid-separated .footer-brand-block{grid-column:1/-1;grid-row:auto;}
}
@media(max-width:620px){
  body.tool-page:not([data-new-tool]) .unified-legacy-panel{padding:0 14px 18px!important;border-radius:23px!important;}
  body.tool-page:not([data-new-tool]) .unified-legacy-panel>.panel-heading{margin:0 -14px 20px!important;padding:21px 16px 17px!important;font-size:23px!important;text-align:center!important;}
  body.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel{padding:18px 14px!important;}
  body.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel .unified-upload-inner,
  body.tool-page:not([data-new-tool]) .unified-upload-zone{min-height:230px!important;padding:26px 15px!important;border-radius:19px!important;}
  body.tool-page:not([data-new-tool]) .unified-upload-zone .upload-icon,
  body.tool-page:not([data-new-tool]) .unified-upload-inner .upload-icon{width:70px!important;height:70px!important;padding:15px!important;}
  body.tool-page:not([data-new-tool]) .unified-upload-zone h3,
  body.tool-page:not([data-new-tool]) .unified-upload-zone .upload-title,
  body.tool-page:not([data-new-tool]) .unified-upload-inner .upload-title{font-size:21px!important;}
  body.tool-page:not([data-new-tool]) .unified-legacy-panel .pdf-reverse-panel,
  body.tool-page:not([data-new-tool]) .unified-legacy-panel .cropper-content,
  body.tool-page:not([data-new-tool]) .unified-legacy-panel .compressor-content,
  body.tool-page:not([data-new-tool]) .unified-legacy-panel .qr-layout{padding:14px!important;border-radius:18px!important;}
}
@media(max-width:520px){
  .footer-grid.footer-grid-separated{grid-template-columns:1fr!important;}
  .footer-grid-separated .footer-brand-block{grid-column:auto;}
}
@media(hover:none){
  body.tool-page:not([data-new-tool]) .unified-upload-zone:hover,
  body.tool-page:not([data-new-tool]) #dropZone.unified-legacy-panel .unified-upload-inner:hover,
  body.tool-page:not([data-new-tool]) .unified-upload-zone .browse-btn:hover,
  body.tool-page:not([data-new-tool]) .unified-upload-inner .browse-btn:hover{transform:none!important;}
}


/* Upload box parity fix: remove the extra white shell on the original tools
   from Image to PDF through Image Cropper, while keeping the Image Converter look. */
body.tool-page[data-tool-page="image-to-pdf"] .unified-legacy-panel,
body.tool-page[data-tool-page="pdf-to-image"] .unified-legacy-panel,
body.tool-page[data-tool-page="text-to-pdf"] .unified-legacy-panel,
body.tool-page[data-tool-page="pdf-to-text"] .unified-legacy-panel,
body.tool-page[data-tool-page="image-cropper"] .unified-legacy-panel{
  padding:30px!important;
  background:linear-gradient(180deg,#f8fbff 0%,#f4f7fc 100%)!important;
  border:1px solid #dfe8f4!important;
  border-radius:30px!important;
  box-shadow:0 18px 48px rgba(14,25,45,.11)!important;
  overflow:hidden!important;
}
body.tool-page[data-tool-page="image-to-pdf"] .unified-legacy-panel>.panel-heading,
body.tool-page[data-tool-page="pdf-to-image"] .unified-legacy-panel>.panel-heading,
body.tool-page[data-tool-page="text-to-pdf"] .unified-legacy-panel>.panel-heading,
body.tool-page[data-tool-page="pdf-to-text"] .unified-legacy-panel>.panel-heading,
body.tool-page[data-tool-page="image-cropper"] .unified-legacy-panel>.panel-heading{
  margin:0 0 22px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.tool-page[data-tool-page="image-to-pdf"] .unified-legacy-panel .pdf-reverse-panel,
body.tool-page[data-tool-page="pdf-to-image"] .unified-legacy-panel .pdf-reverse-panel,
body.tool-page[data-tool-page="text-to-pdf"] .unified-legacy-panel .pdf-reverse-panel,
body.tool-page[data-tool-page="pdf-to-text"] .unified-legacy-panel .pdf-reverse-panel{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
}
body.tool-page[data-tool-page="image-to-pdf"] .unified-upload-zone,
body.tool-page[data-tool-page="pdf-to-image"] .unified-upload-zone,
body.tool-page[data-tool-page="text-to-pdf"] .unified-upload-zone,
body.tool-page[data-tool-page="pdf-to-text"] .unified-upload-zone,
body.tool-page[data-tool-page="image-cropper"] .unified-upload-zone{
  background:rgba(255,255,255,.88)!important;
}
body.dark-theme.tool-page[data-tool-page="image-to-pdf"] .unified-legacy-panel,
body.dark-theme.tool-page[data-tool-page="pdf-to-image"] .unified-legacy-panel,
body.dark-theme.tool-page[data-tool-page="text-to-pdf"] .unified-legacy-panel,
body.dark-theme.tool-page[data-tool-page="pdf-to-text"] .unified-legacy-panel,
body.dark-theme.tool-page[data-tool-page="image-cropper"] .unified-legacy-panel{
  background:#0c1a2c!important;
  border-color:rgba(219,234,254,.14)!important;
}
body.dark-theme.tool-page[data-tool-page="image-to-pdf"] .unified-upload-zone,
body.dark-theme.tool-page[data-tool-page="pdf-to-image"] .unified-upload-zone,
body.dark-theme.tool-page[data-tool-page="text-to-pdf"] .unified-upload-zone,
body.dark-theme.tool-page[data-tool-page="pdf-to-text"] .unified-upload-zone,
body.dark-theme.tool-page[data-tool-page="image-cropper"] .unified-upload-zone{
  background:#0b1728!important;
}
@media(max-width:620px){
  body.tool-page[data-tool-page="image-to-pdf"] .unified-legacy-panel,
  body.tool-page[data-tool-page="pdf-to-image"] .unified-legacy-panel,
  body.tool-page[data-tool-page="text-to-pdf"] .unified-legacy-panel,
  body.tool-page[data-tool-page="pdf-to-text"] .unified-legacy-panel,
  body.tool-page[data-tool-page="image-cropper"] .unified-legacy-panel{
    padding:18px 14px!important;
    border-radius:23px!important;
  }
  body.tool-page[data-tool-page="image-to-pdf"] .unified-legacy-panel>.panel-heading,
  body.tool-page[data-tool-page="pdf-to-image"] .unified-legacy-panel>.panel-heading,
  body.tool-page[data-tool-page="text-to-pdf"] .unified-legacy-panel>.panel-heading,
  body.tool-page[data-tool-page="pdf-to-text"] .unified-legacy-panel>.panel-heading,
  body.tool-page[data-tool-page="image-cropper"] .unified-legacy-panel>.panel-heading{
    margin:0 0 18px!important;
    padding:0!important;
  }
}
