/* PR Diff Tab — multi-file diff viewer with collapsible sections */
.container,
.container * {
  -webkit-user-select: text;
  user-select: text;
}

.container {
  --diff-header-height: 35px;
  width: 100%;
  height: 100%;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: var(--font-xs);
  /* Override global user-select:none so diff text can be highlighted & copied */
  -webkit-user-select: text;
  user-select: text;
}

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  height: var(--diff-header-height);
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  background: var(--bg-highlight);
  position: sticky;
  top: 0;
  z-index: 3;
}

.headerTitle {
  font-weight: 600;
  color: var(--fg-primary);
  font-size: var(--font-sm);
}

.headerStats {
  color: var(--fg-muted);
  font-size: var(--font-xs);
}

.statAdd {
  color: var(--success);
}

.statDel {
  color: var(--error);
}

/* File-section / chevron / filePath / fileStats / fileDiff styles moved to
 * shared/diffFileList.module.css (owned by the shared DiffFileList component). */

/* Diff lines table */
.diffTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lineNum {
  width: 50px;
  min-width: 50px;
  padding: 0 6px;
  text-align: right;
  color: var(--fg-muted);
  user-select: none;
  vertical-align: top;
  opacity: 0.6;
}

.lineContent {
  padding: 0 12px;
  white-space: pre;
  overflow-x: auto;
}

/* Line type styles */
.lineAddition {
  background: rgba(158, 206, 106, 0.12);
}

.lineAddition .lineContent {
  color: var(--success);
}

.lineDeletion {
  background: rgba(247, 118, 142, 0.12);
}

.lineDeletion .lineContent {
  color: var(--error);
}

.lineHunk {
  background: var(--bg-highlight);
}

.lineHunk .lineContent {
  color: var(--fg-muted);
}

.lineHunk .lineNum {
  background: var(--bg-highlight);
}

.lineHeader {
  /* skip rendering — file headers handled by fileHeader */
}

.lineContext {
  /* default styling */
}

/* Mode toggle in header */
.modeToggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.modeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.1s, background 0.1s;
}

.modeBtn:hover {
  color: var(--fg-secondary);
  background: var(--bg-highlight);
}

.modeBtnActive {
  color: var(--accent);
  background: var(--bg-highlight);
  border-color: var(--accent);
}

.emptyState {
  padding: 24px;
  text-align: center;
  color: var(--fg-muted);
}
