/* ===== PDF TOOLS LIGHT — estilo global ===== */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e6e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --violet: #8b5cf6;
  --purple: #7c3aed;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
  --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: none; width: 100%; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

.hidden { display: none !important; }

h1, h2, h3, .brand-name { font-family: 'Poppins', 'Inter', sans-serif; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 24px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  min-height: 64px;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  filter: drop-shadow(0 6px 14px rgba(79, 70, 229, 0.35));
  transition: transform 0.3s ease;
}

.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }

.brand-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 4px; flex-wrap: wrap; overflow: visible; }

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 6px rgba(15,23,42,0.05);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  will-change: background, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.nav-links a:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79,70,229,0.28);
}
.nav-links a:active { transform: scale(0.97); }

/* Ícones em 25px */
.tb-btn { width: 38px; height: 38px; }
.tb-btn svg { width: 25px; height: 25px; }
.batch-tab svg { width: 25px; height: 25px; }
.batch-hero-icon svg { width: 25px; height: 25px; }
.rail-btn svg { width: 25px; height: 25px; }
#findBar .find-field svg { width: 25px; height: 25px; }

/* ===== Header organizado — desktop + hamburger drawer ===== */
.nav-links { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; max-width: 100%; overflow: visible; }
.nav-links a { white-space: nowrap; flex-shrink: 0; }

/* Hamburger - escondido no desktop */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 1px 6px rgba(15,23,42,0.06);
  transition: background .15s, border-color .15s, transform .12s;
  flex-shrink: 0;
}
.hamburger:hover { background: #eef2ff; border-color: #c7d2fe; }
.hamburger:active { transform: scale(0.96); }
.hamburger svg { width: 22px; height: 22px; }
.hamburger[aria-expanded="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(79,70,229,0.28); }

/* Dropdown "Mais" - desktop overflow */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-dropdown > a::after,
.nav-dropdown > button::after { content: ' ▾'; font-size: 10px; opacity: .6; margin-left: 2px; }
.mais-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 6px rgba(15,23,42,0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  will-change: background, box-shadow;
}
.mais-toggle:hover { background: #eef2ff; border-color: #c7d2fe; color: var(--indigo); }
.nav-dropdown.is-open .mais-toggle {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79,70,229,0.28);
}
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; left: auto;
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.16); padding: 8px; min-width: 240px;
  display: none; z-index: 999; animation: popInG .15s ease;
  max-height: 70vh; overflow-y: auto;
  pointer-events: auto;
}
/* Ponte invisível: mantém o :hover ao descer o mouse do botão até o menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu { display: block !important; visibility: visible !important; opacity: 1 !important; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  color: #1e293b; font-weight: 600; font-size: 13.5px; text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--grad); color: #fff; }
.dropdown-menu .dropdown-group { padding: 6px 0; }
.dropdown-menu .dropdown-group + .dropdown-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.dropdown-menu .dropdown-label {
  font: 700 11px 'Inter',sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: #94a3b8; padding: 4px 12px 6px;
}

/* Drawer - mobile/tablet */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  opacity: 0; transition: opacity .18s ease;
  will-change: opacity;
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0;
  width: min(380px, 88vw); height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(15,23,42,0.12);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .2s cubic-bezier(0.32,0.72,0,1);
  overflow: hidden;
  will-change: transform;
  contain: layout paint style;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f8fafc);
  flex-shrink: 0;
}
.drawer__title { font: 800 15px 'Poppins',sans-serif; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.drawer__close {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff; color: #475569;
  cursor: pointer; display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.drawer__close:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.drawer__search-wrap { padding: 14px 16px 10px; flex-shrink: 0; border-bottom: 1px solid #f1f5f9; }
.drawer__search {
  width: 100%; padding: 11px 14px 11px 38px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font: 500 14px 'Inter',sans-serif; color: var(--text);
  background: #fff url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2394a3b8%27 stroke-width=%272%27%3E%3Ccircle cx=%2711%27 cy=%2711%27 r=%278%27/%3E%3Cpath d=%27m21 21-4.3-4.3%27/%3E%3C/svg%3E') no-repeat 12px center;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.drawer__search:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.drawer__search::placeholder { color: #94a3b8; }
.drawer__links {
  flex: 1; overflow-y: auto; padding: 10px 12px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.drawer__group-label {
  font: 700 11px 'Inter',sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: #94a3b8; padding: 8px 8px 4px;
}
.drawer__links a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px;
  color: #1e293b; font-weight: 600; font-size: 14px; text-decoration: none;
  background: #fff; border: 1.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(15,23,42,0.04);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.drawer__links a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateX(2px); box-shadow: 0 4px 14px rgba(79,70,229,0.2); }
.drawer__links a.is-active { background: #eef2ff; color: var(--indigo); border-color: #c7d2fe; }
.drawer__links a.hidden-search { display: none !important; }
.drawer__empty { text-align: center; padding: 24px 16px; color: #94a3b8; font: 500 13px 'Inter',sans-serif; display: none; }
.drawer__empty.show { display: block; }

/* Header por categorias: catbar visível no desktop, hamburger+drawer no mobile */
.nav-links { display: none !important; }
.catbar { display: none; }
.hamburger { display: inline-flex !important; }
.drawer { display: block; }
@media (min-width: 1024px) {
  .hamburger { display: none !important; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 10px 14px; }
  .container { padding: 0 16px; }
}
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: #1e293b; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: var(--grad); color: #fff; }

/* ===== Hero (home) ===== */
.hero { text-align: center; padding: 10px 0 0; }

.hero-logo {
  width: 96px;
  height: 96px;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  color: var(--text);
  margin: 10px 0 6px;
  letter-spacing: -1px;
}

.hero-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  color: var(--indigo);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.hero-cta { margin-top: 28px; }

/* ===== Seções e cards ===== */
.tools-section { padding: 20px 0 60px; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(79,70,229,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  border-color: rgba(199,210,254,0.8);
  background: rgba(255,255,255,0.85);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.3);
}

.tool-icon svg { width: 26px; height: 26px; }

.tool-card h3 { margin: 0; font-size: 18px; color: var(--text); }

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.tool-link {
  align-self: flex-start;
  color: var(--indigo);
  font-weight: 600;
  font-size: 14px;
}

/* ===== Cabeçalho das ferramentas ===== */
.tool-head { padding: 44px 0 24px; max-width: 780px; }

.tool-head h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 8px;
  color: var(--text);
}

.tool-head p { color: var(--muted); line-height: 1.6; margin: 0; }

.tool-card-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  margin-bottom: 60px;
  contain: layout paint style;
}

/* ===== Dropzone ===== */
.dropzone {
  border: 2px dashed rgba(199,210,254,0.6);
  border-radius: 20px;
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
  outline: none;
}

.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--violet);
  background: #faf5ff;
}

.dropzone.over {
  border-color: var(--purple);
  background: #f5f3ff;
  transform: scale(1.01);
}

.dz-icon { color: #a5b4fc; margin-bottom: 14px; }

.dz-icon svg { width: 44px; height: 44px; }

.dz-title { font-weight: 700; font-size: 18px; color: var(--text); margin: 0 0 4px; }

.dz-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

.dz-extras { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.36);
}

.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: #fff;
  color: var(--indigo);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  font-size: 14px;
}

.btn-ghost:hover { border-color: #c7d2fe; background: #eef2ff; }

.btn-success {
  background: #10b981;
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16, 185, 129, 0.38); }

/* ===== Badge "novo" do changelog (nav Sobre) ===== */
.nav-badge-novo {
  display: inline-block;
  font: 800 10px 'Inter', sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== Lista de arquivos ===== */
.file-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.file-order {
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--indigo);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-meta { flex: 1; min-width: 0; }

.file-meta strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta small { color: var(--muted); font-size: 12px; }

.file-actions { display: flex; gap: 6px; }

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: 0.15s;
}

.icon-btn:hover:not(:disabled) {
  background: #eef2ff;
  color: var(--indigo);
  border-color: #c7d2fe;
}

.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.icon-btn.danger:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* ===== Opções e formulários ===== */
.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.opt-label { font-weight: 600; font-size: 14px; color: var(--text); }

.text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: 0.15s;
}

.text-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }

.radio { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #334155; cursor: pointer; }

.radio input { accent-color: var(--purple); width: 16px; height: 16px; }

.range-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

.range-row input[type="range"] { flex: 1; accent-color: var(--purple); }

.range-val { min-width: 52px; text-align: right; font-weight: 600; font-size: 14px; color: var(--indigo); }

.actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.result p { flex: 1; color: #059669; font-weight: 600; margin: 0; }

/* ===== Overlay de progresso ===== */
.busy {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.busy.show { opacity: 1; pointer-events: auto; }

.busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 28px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.busy-text { color: var(--text); font-weight: 600; margin: 0; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: 0.25s;
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-width: 90vw;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-info { background: #4338ca; }

/* ===== Host de renderização (html2canvas) ===== */
.render-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  background: #fff;
  padding: 24px;
  z-index: -1;
}

.render-host p { margin: 0 0 10px; color: #111; font-size: 12px; line-height: 1.5; }
.render-host h1, .render-host h2, .render-host h3, .render-host h4 { color: #111; }
.render-host ul, .render-host ol { color: #111; font-size: 12px; }
.render-host table { border-collapse: collapse; width: 100%; }
.render-host th, .render-host td { border: 1px solid #cbd5e1; padding: 4px 6px; font-size: 10px; text-align: left; }
.render-host th { background: #f1f5f9; }
.render-host hr { page-break-after: always; border: none; }
.render-host .xls-title { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: #111; }
.render-host .xls-table { margin-bottom: 18px; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: var(--muted);
  padding: 34px 16px;
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* ===== Camada premium (todo o site) ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: content-box;
}
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }

.btn { will-change: transform; }
.btn:active:not(:disabled) { transform: scale(0.97); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.icon-btn svg { width: 14px; height: 14px; display: block; }
.icon-btn:active:not(:disabled) { transform: scale(0.9); }

.btn:focus-visible,
.icon-btn:focus-visible,
.dropzone:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.file-item {
  transition: border-color 0.15s, box-shadow 0.15s;
}
.file-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.08);
}

.tool-icon { transition: transform 0.25s ease; }
.tool-card:hover .tool-icon { transform: translateY(-2px) rotate(-4deg); }

@keyframes popInG {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.busy.show .busy-card { animation: popInG 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Barra de categorias (desktop ≥1024px) ===== */
@media (min-width: 1024px) {
  .catbar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
    margin-left: 8px;
  }
  .catbar-sobre {
    padding: 8px 14px;
    border-radius: 999px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    border: 1.5px solid var(--border);
    box-shadow: 0 1px 6px rgba(15,23,42,0.05);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
  }
  .catbar-sobre:hover {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(79,70,229,0.28);
  }
  .catbar-sobre.is-active {
    background: #eef2ff;
    color: var(--indigo);
    border-color: #c7d2fe;
  }
  .catbar .nav-dropdown {
    position: relative;
  }
  .catbar .mais-toggle.is-active {
    background: #eef2ff;
    color: var(--indigo);
    border-color: #c7d2fe;
  }
  .catbar .dropdown-menu {
    left: 0;
    right: auto;
    min-width: 260px;
    max-height: 70vh;
  }
  .catbar .dropdown-menu a.is-active {
    background: #eef2ff;
    color: var(--indigo);
  }
}
