html { scroll-behavior: smooth; }

body.pdflabs-tool-page {
  min-height: 100vh;
  padding: 0 0 24px !important;
  gap: 18px !important;
  background:
    radial-gradient(ellipse at 8% 4%, rgba(20, 184, 166, .11), transparent 32rem),
    radial-gradient(ellipse at 92% 16%, rgba(251, 113, 133, .09), transparent 27rem),
    #f3f6f6 !important;
  color: #172033 !important;
}

.pdflabs-header,
.pdflabs-footer {
  width: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.pdflabs-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  backdrop-filter: blur(12px);
}

.pdflabs-header .pdflabs-navbar {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pdflabs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  text-decoration: none;
}

.pdflabs-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #be123c;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.pdflabs-brand strong { display: block; font-size: 16px; }
.pdflabs-brand small { display: block; margin-top: 2px; color: #64748b; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.pdflabs-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.pdflabs-nav a, .pdflabs-footer a { color: #344054; font-size: 13px; font-weight: 650; text-decoration: none; }
.pdflabs-nav a:hover, .pdflabs-footer a:hover { color: #be123c; }
.pdflabs-footer { margin-top: auto; padding: 20px 18px; border-top: 1px solid #e2e8f0; background: white; color: #64748b; text-align: center; }
.pdflabs-footer p { margin: 0 0 10px; font-size: 12px; }
.pdflabs-footer nav { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pdflabs-tool-page .card { border: 1px solid #e2e8f0; border-radius: 9px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.pdflabs-tool-page .btn-primary { background: linear-gradient(120deg, #be123c, #e76a3d); }
.pdflabs-tool-page .btn-success { background: linear-gradient(120deg, #28745a, #19998e); }
.pdflabs-tool-page :focus-visible { outline: 3px solid rgba(14, 116, 144, .35); outline-offset: 3px; }

@media (max-width: 560px) {
  .pdflabs-header .pdflabs-navbar { align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 0; }
  .pdflabs-nav { gap: 12px; }
}