/* ============================================================
   ZeeSharp – Shared styles for the 2026 tool batch
   (extends tool.css / text-tool.css)
   ============================================================ */

/* ── Generic panel / card ── */
.zs-panel {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.zs-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.zs-panel-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-sec);
}

/* ── Tab bar ── */
.zs-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 18px;
}
.zs-tab {
  padding: 9px 16px; font-size: .85rem; font-weight: 600;
  background: none; border: none; border-bottom: 2.5px solid transparent;
  color: var(--text-sec); cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s; margin-bottom: -1.5px;
}
.zs-tab:hover { color: var(--text); }
.zs-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.zs-tabpanel { display: none; }
.zs-tabpanel.active { display: block; }

/* ── Form grid ── */
.zs-field-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 16px;
}
.zs-field { display: flex; flex-direction: column; gap: 5px; }
.zs-field label { font-size: .78rem; font-weight: 600; color: var(--text-sec); }
.zs-field input, .zs-field select, .zs-field textarea {
  padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: .875rem; font-family: inherit; background: var(--bg); color: var(--text);
  outline: none; transition: border-color .15s; width: 100%;
}
.zs-field input:focus, .zs-field select:focus, .zs-field textarea:focus { border-color: var(--blue); }
.zs-field .zs-hint { font-size: .72rem; color: var(--text-sec); }
.zs-field-wide { grid-column: 1 / -1; }

/* ── Buttons ── */
.zs-btn {
  padding: 10px 22px; border-radius: 8px; border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff; font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .2s, opacity .2s;
  white-space: nowrap;
}
.zs-btn:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.zs-btn:disabled { opacity: .55; cursor: not-allowed; }
.zs-btn.ghost { background: transparent; color: var(--blue); }
.zs-btn.ghost:hover:not(:disabled) { background: var(--blue-light); }
.zs-btn.neutral { background: transparent; color: var(--text); border-color: var(--border); }
.zs-btn.neutral:hover:not(:disabled) { background: var(--bg-alt); border-color: var(--blue); color: var(--blue); }
.zs-btn.small { padding: 6px 14px; font-size: .8rem; }
.zs-btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Status pills ── */
.status-pill {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.status-pill.ok   { background: var(--green-bg);  color: var(--green); }
.status-pill.warn { background: var(--orange-bg); color: var(--orange); }
.status-pill.bad  { background: var(--red-bg);    color: var(--red); }
.status-pill.info { background: var(--blue-light); color: var(--blue); }

/* ── Key/value result rows ── */
.zs-kv { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.zs-kv > div {
  padding: 10px 12px; font-size: .84rem;
  border-bottom: 1px solid var(--border); min-width: 0;
}
.zs-kv > div:nth-child(odd) { font-weight: 600; color: var(--text-sec); background: var(--bg-alt); }
.zs-kv > div:nth-child(even) { word-break: break-word; }
.zs-kv > div:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 620px) { .zs-kv { grid-template-columns: 1fr; } .zs-kv > div:nth-child(odd) { border-bottom: none; } }

/* ── Data table ── */
.zs-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.zs-table th {
  text-align: left; padding: 9px 11px; background: var(--bg-alt);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-sec);
  border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
.zs-table td { padding: 8px 11px; border-bottom: 1px solid var(--border); word-break: break-word; }
.zs-table tr:last-child td { border-bottom: none; }
.zs-table-wrap { overflow-x: auto; border: 1.5px solid var(--border); border-radius: var(--radius); }
.zs-table-wrap .zs-table th:first-child, .zs-table-wrap .zs-table td:first-child { padding-left: 14px; }

/* ── Progress ── */
.zs-progress { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 10px 0; }
.zs-progress-fill { height: 100%; background: var(--blue); border-radius: 4px; width: 0; transition: width .25s ease; }
.zs-progress-label { font-size: .78rem; color: var(--text-sec); margin-bottom: 4px; }

/* ── Empty state ── */
.zs-empty { padding: 34px 20px; text-align: center; color: var(--text-sec); font-size: .85rem; }

/* ── File chip ── */
.zs-filechip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; background: var(--blue-light); color: var(--blue);
  border-radius: 20px; font-size: .8rem; font-weight: 600; max-width: 100%;
}
.zs-filechip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   Typing Speed Test
   ============================================================ */
.ty-quote {
  font-size: 1.32rem; line-height: 2; letter-spacing: .01em;
  font-family: 'Courier New', Courier, monospace;
  padding: 24px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg-alt); user-select: none; min-height: 150px;
}
.ty-quote span { transition: color .06s; }
.ty-ok      { color: var(--green); }
.ty-bad     { color: var(--red); background: var(--red-bg); border-radius: 2px; }
.ty-pending { color: var(--text-sec); }
.ty-cursor  { border-left: 2px solid var(--blue); margin-left: -2px; animation: ty-blink 1s step-end infinite; }
@keyframes ty-blink { 50% { border-color: transparent; } }
.ty-input {
  width: 100%; margin-top: 16px; padding: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: 'Courier New', Courier, monospace;
  outline: none; background: var(--bg); color: var(--text); resize: none;
}
.ty-input:focus { border-color: var(--blue); }
.ty-input:disabled { background: var(--bg-alt); }

/* ============================================================
   Resume Builder
   ============================================================ */
.rb-layout { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
@media (max-width: 940px) { .rb-layout { grid-template-columns: 1fr; } }
.rb-editor { min-width: 0; }
.rb-preview-wrap { position: sticky; top: 80px; min-width: 0; }
.rb-entry {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; background: var(--bg-alt);
}
.rb-entry-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rb-entry-head b { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-sec); }
.rb-remove {
  border: none; background: none; color: var(--red); cursor: pointer;
  font-size: .78rem; font-weight: 700; font-family: inherit; padding: 2px 6px; border-radius: 4px;
}
.rb-remove:hover { background: var(--red-bg); }

/* The rendered CV — deliberately its own typographic world, not the site's */
.rb-paper {
  background: #fff; color: #111; width: 100%; max-width: 780px;
  margin: 0 auto; padding: 46px 52px; box-shadow: var(--shadow-md);
  font-family: Georgia, 'Times New Roman', serif; font-size: 13px; line-height: 1.55;
  border: 1px solid var(--border);
}
.rb-paper h1 { font-size: 27px; letter-spacing: .5px; margin-bottom: 3px; font-family: Georgia, serif; }
.rb-paper .rb-contact { font-size: 11.5px; color: #444; margin-bottom: 17px; }
.rb-paper .rb-contact span:not(:last-child)::after { content: '  ·  '; color: #999; }
.rb-paper h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px;
  border-bottom: 1.5px solid #111; padding-bottom: 3px; margin: 17px 0 9px;
}
.rb-paper .rb-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.rb-paper .rb-role { font-weight: bold; font-size: 13.5px; }
.rb-paper .rb-org  { font-style: italic; color: #333; }
.rb-paper .rb-date { font-size: 11.5px; color: #555; white-space: nowrap; }
.rb-paper ul { margin: 5px 0 11px 17px; }
.rb-paper li { margin-bottom: 3px; }
.rb-paper .rb-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-paper .rb-skill { border: 1px solid #bbb; border-radius: 3px; padding: 2px 8px; font-size: 11.5px; }
.rb-paper p { margin-bottom: 9px; }
.rb-accent { color: var(--rb-accent, #111); }
.rb-paper h1.rb-accent, .rb-paper h2 { color: var(--rb-accent, #111); }
.rb-paper h2 { border-bottom-color: var(--rb-accent, #111); }

/* Print exactly the CV: page furniture and the editor drop away, the paper fills the sheet.
   Scoped to the resume page via .rb-layout so Ctrl+P behaves the same as the button. */
@media print {
  body:has(.rb-layout) .navbar,
  body:has(.rb-layout) .breadcrumb,
  body:has(.rb-layout) .tool-hero,
  body:has(.rb-layout) footer,
  body:has(.rb-layout) .tool-faq,
  body:has(.rb-layout) .zs-info,
  body:has(.rb-layout) #banner { display: none !important; }
  /* Separate block: an unsupported :has() invalidates its whole rule, and these must survive. */
  .rb-editor,
  .rb-preview-wrap > .zs-panel-head { display: none !important; }
  .rb-layout { display: block; }
  .rb-preview-wrap { position: static; }
  .rb-paper { box-shadow: none; border: none; max-width: none; padding: 0; margin: 0; }
  @page { margin: 14mm; }
}

/* ============================================================
   Barcode Generator
   ============================================================ */
.bc-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; padding: 26px; background: #fff;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow-x: auto;
}
.bc-stage svg { max-width: 100%; height: auto; }
.bc-batch-item {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  border-bottom: 1px solid var(--border); background: #fff;
}
.bc-batch-item:last-child { border-bottom: none; }
.bc-batch-item svg { max-height: 74px; width: auto; }
.bc-invalid { color: var(--red); font-size: .82rem; font-weight: 600; }

/* ============================================================
   Video Converter
   ============================================================ */
.vc-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .vc-stage { grid-template-columns: 1fr; } }
.vc-media {
  width: 100%; max-height: 340px; background: #000;
  border-radius: var(--radius); display: block;
}
.vc-trim { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.vc-trim input[type=range] { flex: 1; min-width: 140px; }
.vc-note {
  font-size: .78rem; color: var(--text-sec); background: var(--bg-alt);
  border-left: 3px solid var(--blue); padding: 10px 13px; border-radius: 0 7px 7px 0; margin-top: 12px;
}

/* ============================================================
   OCR
   ============================================================ */
.ocr-pagechip {
  display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .76rem; font-weight: 600; color: var(--text-sec); background: var(--bg-alt);
}
.ocr-preview {
  max-width: 100%; max-height: 260px; border-radius: var(--radius);
  border: 1px solid var(--border); display: block; margin: 0 auto;
}

/* ============================================================
   One-Time Secret
   ============================================================ */
.ots-link {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 13px 15px; background: var(--green-bg);
  border: 1.5px solid #a8d5b5; border-radius: var(--radius); margin-top: 14px;
}
.ots-link code {
  flex: 1; min-width: 200px; font-size: .82rem; word-break: break-all;
  color: var(--green); font-family: 'Courier New', monospace;
}
.ots-reveal {
  padding: 18px; background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: 'Courier New', monospace;
  font-size: .9rem; white-space: pre-wrap; word-break: break-word; line-height: 1.6;
}
.ots-warn {
  font-size: .8rem; color: var(--orange); background: var(--orange-bg);
  border: 1px solid #f0d0a0; border-radius: 7px; padding: 11px 14px; margin-bottom: 14px;
}

/* ============================================================
   Income Tax
   ============================================================ */
.tax-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
@media (max-width: 680px) { .tax-compare { grid-template-columns: 1fr; } }
.tax-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; background: var(--bg); position: relative;
}
.tax-card.winner { border-color: var(--green); background: var(--green-bg); }
.tax-card .tax-regime { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sec); }
.tax-card .tax-total { font-size: 1.85rem; font-weight: 700; margin: 6px 0 3px; color: var(--text); }
.tax-card.winner .tax-total { color: var(--green); }
.tax-card .tax-sub { font-size: .78rem; color: var(--text-sec); }
.tax-badge-best {
  position: absolute; top: -11px; right: 14px; background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .05em;
}

/* ============================================================
   CSV Toolkit
   ============================================================ */
.csv-preview-wrap { max-height: 380px; overflow: auto; border: 1.5px solid var(--border); border-radius: var(--radius); }
.csv-preview-wrap .zs-table th { position: sticky; top: 0; z-index: 1; }
.csv-col-list { display: flex; flex-wrap: wrap; gap: 7px; }
.csv-col-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border: 1.5px solid var(--border); border-radius: 20px;
  font-size: .78rem; font-weight: 600; cursor: pointer; user-select: none;
  background: var(--bg); transition: all .15s;
}
.csv-col-chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   Broken Link Checker
   ============================================================ */
.blc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.blc-url { font-family: 'Courier New', monospace; font-size: .78rem; }
.blc-url a { color: var(--blue); }
.blc-row-bad { background: var(--red-bg); }
.blc-row-warn { background: var(--orange-bg); }

/* ── Info + FAQ sections shared by the batch ── */
.zs-info { margin: 44px 0 0; }
.zs-info h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.zs-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.zs-info-grid article { padding: 18px; background: var(--bg-alt); border-radius: var(--radius); }
.zs-info-grid b { display: block; font-size: .875rem; margin-bottom: 5px; }
.zs-info-grid p { font-size: .82rem; color: var(--text-sec); line-height: 1.6; }
