/* ==========================================================================
   NexTamil - Online Web Tools Stylesheet (WebP, Word to PDF, PDF to Word)
   Clean, Modern, Responsive & High-Conversion Aesthetic
   ========================================================================== */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Hero Banner for Tools */
.tool-hero-section {
  padding: 50px 0 35px;
  background: linear-gradient(180deg, #fbfbfc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.bg-slate-dark {
  background-color: var(--slate-dark, #0f172a) !important;
  color: #ffffff !important;
}

.bg-slate-deep {
  background-color: var(--slate-deep, #1e293b) !important;
  color: #ffffff !important;
}

.tool-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid var(--coral);
  box-shadow: 0 4px 12px rgba(255, 87, 51, 0.2);
}

.tool-badge-pill i {
  color: #ffffff !important;
}

.tool-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--slate-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.tool-subtitle {
  font-size: 1.05rem;
  color: var(--slate-body);
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Micro-flow steps badge */
.tool-flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  color: var(--slate-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  max-width: 100%;
}

@media (max-width: 576px) {
  .tool-flow-badge {
    border-radius: 14px;
    font-size: 0.78rem;
    padding: 8px 12px;
    gap: 6px;
  }
}

/* Tool Navigation Quick Switcher Tabs */
.tool-switcher-nav {
  display: inline-flex;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 50px;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tool-switcher-nav::-webkit-scrollbar {
  display: none;
}

.tool-switcher-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-body);
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-switcher-tab:hover {
  color: var(--coral);
  background: rgba(255, 255, 255, 0.6);
}

.tool-switcher-tab.active {
  background: #ffffff;
  color: var(--coral);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

/* Tool Workspace Container */
.tool-workspace {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.06);
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .tool-workspace {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

/* Drag & Drop Upload Zone */
.tool-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 16px;
  padding: 45px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.tool-dropzone:hover,
.tool-dropzone.drag-active {
  border-color: var(--coral);
  background: #fff8f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 87, 51, 0.12);
}

.tool-dropzone-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.tool-dropzone:hover .tool-dropzone-icon {
  transform: scale(1.1);
}

.tool-dropzone-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 6px;
}

.tool-dropzone-desc {
  font-size: 0.9rem;
  color: var(--slate-muted);
  margin-bottom: 16px;
}

.tool-dropzone-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.format-badge {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--slate-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Tool Settings Panel */
.tool-settings-bar {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quality-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  max-width: 380px;
}

.quality-range-input {
  flex-grow: 1;
  accent-color: var(--coral);
  cursor: pointer;
}

.quality-val-badge {
  background: var(--slate-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 48px;
  text-align: center;
}

/* Stats Summary Dashboard */
.tools-stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tool-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.tool-stat-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-dark);
  line-height: 1.2;
}

.tool-stat-num.text-savings {
  color: #10b981;
}

.tool-stat-lbl {
  font-size: 0.76rem;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Converted File Cards List */
.converted-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.file-result-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.file-result-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.file-thumb-box {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.file-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-info-main {
  flex-grow: 1;
  min-width: 0;
}

.file-target-name {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--slate-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.file-orig-name {
  font-size: 0.78rem;
  color: var(--slate-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-sizes-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.8rem;
}

.size-orig {
  color: var(--slate-muted);
  text-decoration: line-through !important;
}

.size-new {
  font-weight: 700;
  color: var(--slate-dark);
}

.badge-savings {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.file-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .file-result-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .file-actions-wrap {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Document Preview Frame (Word & PDF) */
.doc-preview-container {
  background: #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.doc-paper-sheet {
  background: #ffffff;
  color: #1e293b;
  max-width: 720px;
  margin: 0 auto;
  min-height: 500px;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

.doc-paper-sheet h1, 
.doc-paper-sheet h2, 
.doc-paper-sheet h3 {
  color: #0f172a;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.doc-paper-sheet p {
  margin-bottom: 1em;
  color: #334155;
}

.doc-paper-sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.doc-paper-sheet table, 
.doc-paper-sheet th, 
.doc-paper-sheet td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
}

.doc-paper-sheet th {
  background: #f1f5f9;
}

.doc-paper-sheet img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}

/* Progress bar styling */
.conversion-progress-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

.progress-custom {
  height: 10px;
  border-radius: 10px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.progress-bar-coral {
  background: linear-gradient(90deg, var(--coral) 0%, #ea4925 100%);
  transition: width 0.2s ease;
}

/* SEO Content & Feature Grids */
.tool-features-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.tool-feature-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tool-feature-box:hover {
  transform: translateY(-4px);
  border-color: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tool-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.icon-coral-bg {
  background: var(--coral-light);
  color: var(--coral);
}

.icon-emerald-bg {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.icon-blue-bg {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.icon-purple-bg {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

/* Step by Step Cards */
.tool-step-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  height: 100%;
}

.tool-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Comparison Table */
.tool-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tool-table {
  width: 100%;
  margin-bottom: 0;
}

.tool-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
}

.tool-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.9rem;
}

.tool-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.tool-accordion .accordion-item {
  border: 1px solid var(--border-light);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tool-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--slate-dark);
  font-size: 1.05rem;
  padding: 18px 22px;
  background-color: #ffffff;
}

.tool-accordion .accordion-button:not(.collapsed) {
  color: var(--coral);
  background-color: #fffaf9;
  box-shadow: none;
}

.tool-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.tool-accordion .accordion-body {
  padding: 18px 22px 22px;
  color: var(--slate-body);
  line-height: 1.7;
}

/* Related Tools Promo Banner */
.related-tools-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.related-tools-card h3 {
  color: #ffffff;
}

.related-tools-card p {
  color: #cbd5e1;
}

.related-tool-pill {
  background-color: var(--coral) !important;
  border: 1px solid var(--coral) !important;
  color: #ffffff !important;
  padding: 11px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(255, 87, 51, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-tool-pill:hover {
  background-color: var(--coral-hover) !important;
  border-color: var(--coral-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 87, 51, 0.5);
}

.related-tool-pill:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 87, 51, 0.35);
}

.related-tool-pill i {
  color: #ffffff !important;
}

/* No effects for Download Word DOCX button */
#convertPdfToWordBtn,
.btn-no-effects {
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

#convertPdfToWordBtn:hover,
#convertPdfToWordBtn:focus,
#convertPdfToWordBtn:focus-visible,
#convertPdfToWordBtn:active,
#convertPdfToWordBtn:disabled,
.btn-no-effects:hover,
.btn-no-effects:focus,
.btn-no-effects:focus-visible,
.btn-no-effects:active,
.btn-no-effects:disabled {
  box-shadow: none !important;
  transform: none !important;
  background-color: var(--coral) !important;
  border-color: var(--coral) !important;
}

/* ==========================================================================
   Comprehensive Full Responsiveness for Tools Pages
   Mobile, Tablet, and Desktop Adaptive Breakpoints
   ========================================================================== */

/* Universal file name safety to prevent text blowout on any screen */
#pdfFileName,
#wordFileName {
  display: block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tablet & Mobile Screens (<= 991px) */
@media (max-width: 991px) {
  .tool-hero-section {
    padding: 40px 0 30px;
  }

  .tool-workspace {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .tool-title {
    font-size: clamp(1.65rem, 5vw, 2.35rem);
  }

  .tool-subtitle {
    font-size: 0.98rem;
  }

  .related-tools-card {
    padding: 32px 24px;
  }

  .related-tools-card .col-lg-5 {
    margin-top: 10px;
  }

  .related-tools-card .d-flex {
    justify-content: flex-start !important;
  }
}

/* Phablet & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .tool-hero-section {
    padding: 32px 0 24px;
  }

  .tool-hero-section .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .tool-badge-pill {
    font-size: 0.76rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .tool-title {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
    margin-bottom: 10px;
  }

  .tool-subtitle {
    font-size: 0.9rem;
    padding: 0 8px;
    margin-bottom: 16px;
  }

  /* Quick switcher scrollable touch bar */
  .tool-switcher-nav {
    padding: 5px;
    border-radius: 35px;
    gap: 4px;
    width: 100%;
    justify-content: flex-start;
  }

  .tool-switcher-tab {
    padding: 7px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }

  /* Workspace & Dropzone */
  .tool-workspace {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .tool-dropzone {
    padding: 32px 14px;
    border-radius: 14px;
  }

  .tool-dropzone-icon {
    width: 60px;
    height: 60px;
    font-size: 1.65rem;
    margin-bottom: 12px;
  }

  .tool-dropzone-title {
    font-size: 1.12rem;
  }

  .tool-dropzone-desc {
    font-size: 0.84rem;
    margin-bottom: 12px;
  }

  .tool-dropzone-badges {
    gap: 6px;
  }

  .format-badge {
    font-size: 0.74rem;
    padding: 3px 8px;
  }

  /* File Info & Meta Bars */
  #pdfFileMeta,
  #wordFileMeta {
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px;
    padding: 14px !important;
  }

  #pdfFileMeta > .d-flex:first-child,
  #wordFileMeta > .d-flex:first-child {
    width: 100%;
  }

  #pdfFileName,
  #wordFileName {
    max-width: 220px;
  }

  #pdfFileMeta > .d-flex:last-child,
  #wordFileMeta > .d-flex:last-child {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  #wordFileMeta select,
  #pageOrientationSelect,
  #pageSizeSelect {
    flex: 1 1 45%;
    min-width: 110px;
    width: auto !important;
  }

  #pdfFileMeta .btn,
  #wordFileMeta .btn {
    width: 100% !important;
    justify-content: center;
    margin-top: 6px;
    padding: 10px 16px !important;
  }

  /* Settings bar */
  .tool-settings-bar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px;
    padding: 14px 16px;
  }

  .quality-slider-wrap {
    max-width: 100%;
    width: 100%;
  }

  .tool-settings-bar > .d-flex {
    width: 100%;
    justify-content: space-between;
  }

  #maxDimensionSelect {
    flex: 1;
    max-width: 180px;
  }

  /* Stats summary bar - 2 columns on mobile */
  .tools-stat-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tool-stat-card {
    padding: 10px 12px;
  }

  .tool-stat-num {
    font-size: 1.2rem;
  }

  .tool-stat-lbl {
    font-size: 0.72rem;
  }

  /* WebP Actions bar */
  #webpActionsBar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
    text-align: center;
  }

  #webpActionsBar > .d-flex {
    width: 100%;
    justify-content: stretch;
  }

  #webpActionsBar .btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
  }

  /* Converted result card */
  .file-result-card {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }

  .file-result-card > .d-flex {
    width: 100%;
  }

  .file-actions-wrap {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .file-actions-wrap .btn-coral-pill {
    flex: 1;
    justify-content: center;
  }

  /* Document Preview Container & Sheet */
  .doc-preview-container {
    padding: 12px 8px;
    min-height: 280px;
    max-height: 480px;
    border-radius: 10px;
  }

  .doc-paper-sheet {
    padding: 20px 14px;
    min-height: 280px;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .doc-paper-sheet h1,
  .doc-paper-sheet h2 {
    font-size: 1.25rem;
    word-break: break-word;
  }

  .doc-paper-sheet h3,
  .doc-paper-sheet h4 {
    font-size: 1.05rem;
    word-break: break-word;
  }

  .doc-paper-sheet p {
    font-size: 0.88rem;
    word-break: break-word;
  }

  .doc-paper-sheet table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.82rem;
  }

  .doc-paper-sheet th,
  .doc-paper-sheet td {
    padding: 6px 8px;
    white-space: nowrap;
  }

  /* SEO features & steps */
  .tool-features-section {
    padding: 38px 0;
  }

  .tool-feature-box {
    padding: 20px 16px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .tool-step-card {
    padding: 20px 16px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  /* Comparison table responsive wrapper */
  .tool-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .tool-table th,
  .tool-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Accordion */
  .tool-accordion .accordion-button {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .tool-accordion .accordion-body {
    padding: 14px 16px 18px;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Related Tools Promo banner */
  .related-tools-card {
    padding: 26px 18px;
    border-radius: 16px;
    text-align: left;
  }

  .related-tools-card h3 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .related-tools-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .related-tools-card .d-flex {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .related-tool-pill {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile Devices (<= 480px & <= 375px) */
@media (max-width: 480px) {
  .tool-workspace {
    padding: 14px 10px;
    border-radius: 12px;
  }

  .tool-dropzone {
    padding: 24px 10px;
  }

  .tool-dropzone-icon {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
  }

  .tool-dropzone-title {
    font-size: 1rem;
  }

  .tool-dropzone-desc {
    font-size: 0.78rem;
  }

  .tool-switcher-tab {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  #pdfFileName,
  #wordFileName {
    max-width: 160px;
    font-size: 0.88rem;
  }

  .file-target-name {
    max-width: 160px;
    font-size: 0.85rem;
  }

  .file-orig-name {
    max-width: 160px;
  }

  .file-sizes-wrap {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.76rem;
  }

  .quality-slider-wrap {
    flex-wrap: wrap;
    gap: 8px;
  }

  .quality-range-input {
    width: calc(100% - 60px);
  }

  .doc-paper-sheet {
    padding: 14px 10px;
  }

  .tools-stat-bar {
    gap: 8px;
  }

  .tool-stat-card {
    padding: 8px 6px;
  }

  .tool-stat-num {
    font-size: 1.08rem;
  }

  .tool-stat-lbl {
    font-size: 0.68rem;
  }

  .related-tools-card {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .related-tools-card h3 {
    font-size: 1.15rem;
  }

  .related-tool-pill {
    padding: 11px 14px;
    font-size: 0.84rem;
    gap: 6px;
  }
}
