/* ── CONTACT — BURP SUITE REPEATER STYLE ── */

.page-content {
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.burp-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid #2c2c2c;
  background: #1e1e1e;
}

/* ── Tab strip ── */
.burp-tabstrip {
  display: flex;
  align-items: stretch;
  background: #141414;
  border-bottom: 1px solid #2c2c2c;
  height: 28px;
  flex-shrink: 0;
}
.bts-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  font-size: 0.67rem;
  color: #777;
  border-right: 1px solid #2c2c2c;
  cursor: default;
}
.bts-tab.active {
  background: #1e1e1e;
  color: #ccc;
  border-top: 2px solid #b03030;
}
.bts-x { color: #555; font-size: 0.7rem; }
.bts-x:hover { color: #999; cursor: pointer; }
.bts-add {
  background: none; border: none;
  color: #555; font-size: 1.1rem;
  padding: 0 0.6rem; cursor: pointer; line-height: 1;
}
.bts-add:hover { color: #999; }
.bts-spacer { flex: 1; }

/* ── Main toolbar ── */
.burp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.8rem;
  background: #252525;
  border-bottom: 1px solid #2c2c2c;
  flex-shrink: 0;
}
.btb-left { display: flex; align-items: center; gap: 0.45rem; }

.btn-send {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: #2d6a3f;
  color: #fff;
  border: none;
  padding: 0.3rem 1.1rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
}
.btn-send:hover { background: #38854f; }

.btn-cancel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  background: none;
  color: #777;
  border: 1px solid #383838;
  padding: 0.26rem 0.65rem;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-cancel:hover { color: #bbb; border-color: #555; }

.burp-arrows { display: flex; border: 1px solid #383838; border-radius: 2px; overflow: hidden; }
.barr {
  background: none; border: none;
  color: #777; font-size: 1.1rem;
  padding: 0.14rem 0.38rem; cursor: pointer; width: 24px; line-height: 1;
}
.barr:hover { background: #333; color: #bbb; }
.barr:first-child { border-right: 1px solid #383838; }

.btb-right { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; }
.bt-label { color: #888; }
.bt-url   { color: #bbb; }
.bt-edit  { color: #666; cursor: pointer; font-size: 0.75rem; }
.bt-edit:hover { color: #888; }

/* ── Panels ── */
.burp-panels { display: flex; flex: 1; overflow: hidden; }
.burp-panel  { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.burp-divider { width: 1px; background: #2c2c2c; flex-shrink: 0; }

/* ── Panel topbar ── */
.panel-topbar {
  display: flex;
  align-items: stretch;
  height: 30px;
  background: #222;
  border-bottom: 1px solid #2c2c2c;
  flex-shrink: 0;
}
.panel-title {
  font-size: 0.7rem;
  color: #ccc;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border-right: 1px solid #2c2c2c;
}
.panel-tabs { display: flex; }
.ptab {
  font-size: 0.67rem;
  color: #666;
  padding: 0 0.6rem;
  display: flex;
  align-items: center;
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: color 0.12s;
}
.ptab:hover { color: #aaa; }
.ptab.active { color: #ccc; border-bottom-color: #b03030; }
.panel-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.7rem;
}
.pact { font-size: 0.85rem; color: #6a6a6a; cursor: pointer; }
.pact:hover { color: #888; }

/* ── Request editor with line-number gutter ── */
.req-editor {
  flex: 1;
  overflow-y: auto;
  display: flex;
  background: #1a1a1a;
  font-size: 0.78rem;
  line-height: 1.9;
  color: #ccc;
}
.req-gutter {
  display: flex;
  flex-direction: column;
  background: #161616;
  border-right: 1px solid #252525;
  padding: 0.5rem 0;
  min-width: 38px;
  flex-shrink: 0;
  user-select: none;
}
.ln {
  font-size: 0.68rem;
  color: #626262;
  text-align: right;
  padding: 0 0.55rem;
  line-height: 1.9;
}
.req-content {
  flex: 1;
  padding: 0.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.req-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  min-height: 1.9em;
}
.req-spacer {
  border-bottom: 1px dashed #2a2a2a;
  margin: 0.4rem 0;
}

/* Editable rows */
.req-line-edit {
  background: rgba(176,48,48,0.06);
  border-left: 2px solid rgba(176,48,48,0.28);
  padding-left: 0.35rem;
  margin-left: -0.35rem;
  transition: background 0.12s;
}
.req-line-edit:focus-within {
  background: rgba(176,48,48,0.12);
  border-left-color: #b03030;
}

/* Inputs */
.req-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(176,48,48,0.3);
  color: #e0e0e0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  outline: none;
  padding: 0 0.2rem 1px;
  flex: 1;
  min-width: 120px;
  line-height: 1.9;
  transition: border-color 0.12s;
}
.req-input:focus { border-bottom-color: #cc3a3a; }
.req-input::placeholder { color: #606060; font-style: italic; }

.req-textarea {
  background: rgba(176,48,48,0.04);
  border: none;
  border-left: 2px solid rgba(176,48,48,0.28);
  color: #e0e0e0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  outline: none;
  padding: 0.3rem 0.6rem;
  width: 100%;
  flex: 1;
  min-height: 70px;
  resize: none;
  line-height: 1.7;
  box-sizing: border-box;
  margin-left: -0.35rem;
  transition: border-color 0.12s, background 0.12s;
}
.req-textarea:focus { border-left-color: #cc3a3a; background: rgba(176,48,48,0.09); }
.req-textarea::placeholder { color: #606060; font-style: italic; }

/* Syntax colours */
.hl-method { color: #b03030; }
.hl-path   { color: #ddd; }
.hl-proto  { color: #888; }
.hl-hkey   { color: #999; flex-shrink: 0; }
.hl-hval   { color: #c0c0c0; }
.hl-val    { color: #e0e0e0; }

/* ── Response panel ── */
.resp-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.9;
  color: #bbb;
  background: #1a1a1a;
}
.rp-comment { color: #5e5e5e; }
.resp-placeholder { padding-top: 0.2rem; }
.prev-line   { display: flex; align-items: baseline; flex-wrap: wrap; }
.prev-spacer { border-bottom: 1px dashed #2a2a2a; margin: 0.4rem 0; }
.prev-body   { color: #ccc; white-space: pre-wrap; word-break: break-word; border-left: 2px solid #2c2c2c; padding-left: 0.6rem; }

/* Status indicator in response header */
.rs-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3a3a3a; flex-shrink: 0;
  transition: background 0.2s;
}
.rs-dot.dot-ready { background: #3aaa6a; }
.rs-dot.dot-sent  { background: #3aaa6a; }
.rs-dot.dot-error { background: #b08030; }
.rs-text { font-size: 0.64rem; color: #888; letter-spacing: 0.03em; }
.rs-text.ok  { color: #3aaa6a; }
.rs-text.err { color: #b08030; }

/* ── Search bar at bottom of each panel ── */
.panel-searchbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: #161616;
  border-top: 1px solid #2c2c2c;
  flex-shrink: 0;
}
.psb-icon  { color: #666; font-size: 0.78rem; }
.psb-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #777;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
}
.psb-input::placeholder { color: #5a5a5a; }
.psb-count { color: #6a6a6a; font-size: 0.64rem; white-space: nowrap; }

/* ── Status bar ── */
.burp-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0.8rem;
  background: #141414;
  border-top: 1px solid #2c2c2c;
  font-size: 0.62rem;
  color: #6a6a6a;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.bsb-left { display: flex; align-items: center; gap: 0.4rem; }
.bsb-dot  { width: 5px; height: 5px; border-radius: 50%; background: #2e7d4f; }

/* Scrollbars */
.req-editor::-webkit-scrollbar,
.resp-body::-webkit-scrollbar { width: 3px; }
.req-editor::-webkit-scrollbar-thumb,
.resp-body::-webkit-scrollbar-thumb { background: #2e2e2e; }

/* ── Mobile ── */
@media (max-width: 620px) {
  .burp-panels  { flex-direction: column; }
  .burp-divider { width: 100%; height: 1px; }
  .burp-wrap    { height: auto; }
  .burp-panel   { min-height: 240px; }
  .btb-right    { display: none; }
}
