/* Sidebar Tabs */
.sidebar-tabs {
	display: flex;
	gap: 2px;
	padding: 4px 8px;
	border-bottom: 1px solid #333;
}

.sidebar-tab {
	flex: 1;
	padding: 4px 8px;
	background: transparent;
	border: none;
	color: #888;
	font-size: 0.75rem;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	font-family: inherit;
}
.sidebar-tab:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #ccc;
}
.sidebar-tab.active {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-weight: 500;
}

/* Outline Container */
.outline-list {
	flex: 1;
	overflow-y: auto;
	padding: 4px 0;
}

.outline-empty {
	padding: 2rem 1rem;
	text-align: center;
	color: #666;
	font-size: 0.8rem;
}

/* Outline Items */
.outline-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	padding-right: 8px;
	cursor: pointer;
	font-size: 0.78rem;
	color: #bbb;
	border-left: 2px solid transparent;
	transition: background 0.1s;
	min-height: 24px;
}
.outline-item:hover {
	background: rgba(255, 255, 255, 0.06);
}
.outline-item.outline-active {
	background: rgba(137, 180, 250, 0.1);
	border-left-color: #89b4fa;
	color: #fff;
}

.outline-icon {
	flex-shrink: 0;
	width: 20px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6rem;
	font-weight: 700;
	border-radius: 3px;
	color: #fff;
}

.outline-number {
	flex-shrink: 0;
	font-size: 0.7rem;
	color: #999;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.outline-title {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.outline-line {
	flex-shrink: 0;
	font-size: 0.65rem;
	color: #666;
	font-variant-numeric: tabular-nums;
}

/* Type-specific icon colors */
.outline-type-part .outline-icon { background: #b48ead; }
.outline-type-chapter .outline-icon { background: #c678dd; }
.outline-type-section .outline-icon { background: #61afef; }
.outline-type-subsection .outline-icon { background: #56b6c2; }
.outline-type-subsubsection .outline-icon { background: #4ec9b0; }
.outline-type-paragraph .outline-icon { background: #6a9955; }
.outline-type-figure .outline-icon { background: #d19a66; }
.outline-type-table .outline-icon { background: #e5c07b; }

/* Starred sections (no number) */
.outline-starred .outline-title {
	font-style: italic;
}

/* File headers in multi-file outline */
.outline-file-header {
	padding: 4px 10px 2px;
	font-size: 0.68rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-top: 1px solid #2a2a2a;
	margin-top: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.outline-file-header:first-child {
	border-top: none;
	margin-top: 0;
}
