/* DiffChecker — tool-specific styles.
   Shared styles (nav, panels, buttons) live in ../../css/style.css */

.dk { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Toolbar ---------- */
.dk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dk-bar-group { display: flex; align-items: center; gap: 10px; }
.dk-bar-right { margin-left: auto; gap: 8px; }

.dk-count { color: #74747e; font-size: .8rem; }
.dk-count strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.dk-count-add strong { color: #22c55e; }
.dk-count-del strong { color: #ef4444; }
.dk-count-mod strong { color: #eab308; }

.dk-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #74747e;
  font-size: .76rem;
  cursor: pointer;
}
.dk-toggle input { accent-color: var(--pink); width: 14px; height: 14px; cursor: pointer; }
.dk-toggle:hover { color: #c4c4cc; }

.jf-status {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.jf-status.is-good { color: #22c55e; }
.jf-status.is-bad { color: #ef4444; }

/* ---------- Inputs ---------- */
.dk-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dk-pane { display: flex; flex-direction: column; min-width: 0; }
.dk-pane textarea {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  display: block;
  background: transparent;
  border: none;
  padding: 13px 15px;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem;
  line-height: 1.6;
  outline: none;
}
.dk-pane textarea::placeholder { color: #4a4a52; }

/* ---------- Side-by-side view ---------- */
.dk-view {
  max-height: 55vh;
  overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.65;
}
.dk-view:empty::after {
  content: "Paste two versions above to compare them.";
  display: block;
  padding: 26px 16px;
  text-align: center;
  color: #4a4a52;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .85rem;
}

.dk-row { display: grid; grid-template-columns: 1fr 1fr; }
.dk-cell { display: flex; align-items: flex-start; min-width: 0; }
.dk-cell + .dk-cell { border-left: 1px solid #1c1c20; }

.dk-num {
  flex: none;
  width: 40px;
  padding: 0 8px;
  text-align: right;
  color: #4a4a52;
  font-size: .7rem;
  line-height: 1.65;
  user-select: none;
}
.dk-text {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #74747e;
}

.dk-cell.is-del { background: rgba(239, 68, 68, .09); }
.dk-cell.is-add { background: rgba(34, 197, 94, .09); }
.dk-cell.is-blank { background: #0c0c0e; }
.dk-cell.is-del .dk-text,
.dk-cell.is-add .dk-text { color: var(--text); }

.dk-text mark {
  background: rgba(234, 179, 8, .3);
  color: #fde68a;
  border-radius: 3px;
  padding: 0 1px;
}
.dk-cell.is-add .dk-text mark { background: rgba(34, 197, 94, .3); color: #bbf7d0; }
.dk-cell.is-del .dk-text mark { background: rgba(239, 68, 68, .3); color: #fecaca; }

.dk-empty { padding: 26px 16px; text-align: center; color: #5c5c66; font-size: .85rem; }

@media (max-width: 760px) {
  .dk-inputs { grid-template-columns: 1fr; }
  .dk-pane textarea { min-height: 140px; }
  .dk-bar-right { margin-left: 0; }
  .dk-num { width: 30px; padding: 0 5px; }
}
