.file-tree {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.file-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.file-tree-bible-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.55;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.file-tree-bible-btn:hover {
  opacity: 1;
}

.file-tree-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}

.tree-dir-header {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.tree-dir-header:hover {
  color: var(--text-primary);
}

.tree-arrow {
  font-size: 10px;
  width: 10px;
  flex-shrink: 0;
}

.tree-file {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 12px;
  padding: 5px 8px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s, background 0.15s;
  border-radius: 3px;
  margin: 0 4px;
  width: calc(100% - 8px);
}

.tree-file:hover {
  color: var(--text-primary);
  background: var(--hover-bg);
}

.tree-file.active {
  color: var(--accent);
  background: var(--active-bg);
}

.tree-file.dragging,
.tree-dir-header.dragging {
  opacity: 0.35;
  cursor: grabbing;
}

.tree-file.drag-over {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.tree-dir-header.drag-over {
  background: var(--active-bg);
  color: var(--text-primary);
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}

/* ── Inline rename / create input ─────────────────────────────────────── */

.tree-rename-input {
  display: block;
  width: calc(100% - 8px);
  background: var(--bg-secondary, #1e1e1e);
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 12px;
  padding: 4px 6px;
  margin: 1px 4px;
  outline: none;
  box-sizing: border-box;
}

/* Context menu styles live in ContextMenu.css (imported by ContextMenu.tsx) */
