/* Tool Box MIX MODEL (21 Nov 2026) — PDF24 structure + iLovePDF clarity + our privacy badge.
   Loaded only by tools that carry the new box. Presentation only: no tool logic lives here. */

/* 1) Trust strip above the box */
.tb-trust { display: flex; flex-wrap: nowrap; gap: 6px 20px; align-items: center;
  background: #f0fdf4; border: 1px solid #cdeeda; color: #14532d;
  border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.tb-trust span { white-space: nowrap; }
.tb-trust i { font-style: normal; color: #16a34a; font-weight: 800; margin-right: 5px; }

/* 2) Drop zone */
.tb-zone { position: relative; border: 2px dashed #b7cff7; background: #f2f7ff;
  border-radius: 14px; min-height: 220px; padding: 46px 18px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.tb-zone.tb-over { border-color: #2563eb; background: #e2edff; }
.tb-badge { position: absolute; top: 12px; left: 12px; background: #e7f8ee; color: #14532d;
  border: 1px solid #b9e7c9; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }
.tb-zone .field { margin: 0; }
.tb-zone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tb-choose { display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 40px; margin: 0 !important;
  font-size: 19px !important; font-weight: 700; color: #fff !important; background: #2563eb;
  border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px rgba(37, 99, 235, .28); }
.tb-choose:hover { background: #1d4fd7; }
.tb-or { margin: 14px 0 3px; color: #475569; font-size: 14.5px; }
.tb-formats { margin: 0; color: #8494ab; font-size: 12.5px; }

/* 3) File list inside the zone */
.tb-zone #fileList { width: 100%; margin: 16px 0 0 !important; text-align: left; cursor: default; }
.tb-zone #fileList > div { background: #fff; }
.tb-zone #infoBox { width: 100%; margin: 16px 0 0; background: #fff; border: 1px solid #dbe4f3;
  border-radius: 10px; padding: 10px 14px; cursor: default; }
.tb-zone #infoBox label { margin: 0; font-size: 14px; }
.tb-flist { width: 100%; margin-top: 16px; text-align: left; cursor: default; }
.tb-frow { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #e0e0e0;
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 14px; }
.tb-frow .tb-fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-frow .tb-fsize { color: #666; font-size: 13px; white-space: nowrap; }
.tb-frow .tb-fx { border: none; background: #eef2f7; color: #131c31; border-radius: 8px;
  padding: 4px 10px; cursor: pointer; font-size: 14px; }
.tb-frow .tb-fx:hover { background: #dde5f0; }

/* 4) Action area: bigger primary, green download, busy spinner */
.tool-box.tb-on .btn-row { text-align: center; }
.tool-box.tb-on .btn-primary { min-height: 52px; padding: 13px 38px; font-size: 17px; }
.tool-box.tb-on .btn-dl { background: #16a34a; }
.tool-box.tb-on .btn-dl:hover { background: #15803d; }
.tool-box.tb-on.tb-busy #progLabel::before { content: ""; display: inline-block; width: 13px; height: 13px;
  margin-right: 7px; vertical-align: -2px; border: 2px solid #bcd2f5; border-top-color: #2563eb;
  border-radius: 50%; animation: tb-spin .7s linear infinite; }
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* 5) Rating */
.tb-rate { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tb-rate-q { font-weight: 600; color: #131c31; }
.tb-stars { display: inline-flex; gap: 2px; }
.tb-stars button { background: none; border: none; padding: 2px; font-size: 25px; line-height: 1;
  color: #cbd5e1; cursor: pointer; }
.tb-stars button.on { color: #f59e0b; }
.tb-rate-avg { color: #475569; font-weight: 600; }
.tb-rate-msg { color: #16a34a; font-size: 13px; font-weight: 600; }

/* Mobile */
@media (max-width: 640px) {
  .tb-zone { min-height: 190px; padding: 44px 12px 16px; }
  .tb-choose { font-size: 17px !important; min-height: 52px; padding: 12px 24px; width: 100%; }
  .tb-trust { gap: 4px 14px; font-size: 12.5px; flex-wrap: wrap; }
  .tool-box.tb-on .btn-primary { width: 100%; }
}

/* 6) Tools with their OWN drop zone (Marhala 2): harmonize to the same look.
   Their own drop logic is untouched; only the frame reads as one family. */
.tool-box.tb-on .dz, .tool-box.tb-on #dropZone, .tool-box.tb-on .drop-zone, .tool-box.tb-on .nt-zone {
  border: 2px dashed #b7cff7 !important; background: #f2f7ff !important; border-radius: 14px;
}
.tb-ownzone { position: relative !important; }

/* 7) Persistent download bar: the result stays downloadable until Clear / new file */
.tb-again { display: none; margin-top: 16px; text-align: center; }
.tb-again.show { display: block; }
.tb-again button { background: #16a34a; color: #fff; border: none; border-radius: 999px;
  min-height: 48px; padding: 12px 30px; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .28); }
.tb-again button:hover { background: #15803d; }
.tb-again .tb-again-note { display: block; margin-top: 6px; color: #64748b; font-size: 12.5px; }

/* 8) Tool chrome for the 13-tool family (21 Nov 2026): their pages use .dz/.tbtn/.tstat/.terr
   but no stylesheet ever defined them — zones rendered as bare inline labels with the
   badge on top of the text. Scoped to .tool-box so nothing else can be affected. */
.tool-box .dz { display: block; position: relative; padding: 40px 18px 26px; text-align: center;
  cursor: pointer; font-size: 15px; line-height: 1.45; color: #33475e; margin: 0 0 12px; }
.tool-box .dz strong { color: #131C31; }
.tool-box .tbtn { display: inline-block; background: #131C31; color: #fff; border: 1.5px solid #131C31;
  border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: .95rem; cursor: pointer;
  margin: 4px 6px 4px 0; font-family: inherit; }
.tool-box .tbtn:hover:not(:disabled) { background: #1d2c4d; }
.tool-box .tbtn:disabled { opacity: .55; cursor: not-allowed; }
.tool-box .tstat { color: #5b6b84; font-size: .9rem; margin: 8px 0; }
.tool-box .tstat:empty { margin: 0; }
.tool-box .terr { color: #b91c1c; font-size: .9rem; margin: 8px 0; }
.tool-box .terr:empty { margin: 0; }
