@font-face {
	font-family: Monocraft;
	src: url('/files/Monocraft.otf');		
}

@font-face {
	font-family: NerdFont;
	src: url('/files/NerdFont.ttf');
}

* {
	font-family: Monocraft, NerdFont;
	color: #1f1;
}

#sidebar {
	width: 260px;
	background: #222;
	border-right: 5px solid #1f1;
	padding: 12px;
	overflow-y: auto;
	position: fixed;
	top: 0;
	bottom: 0;
}

.header {
	font-weight: bold;
	padding-bottom: 8px;
	border-bottom: 3px solid #1f1;
	margin-bottom: 10px;
}

.tree,
.tree ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tree li {
	margin: 6px 0;
}

.tree ul {
	margin-left: 12px;
	padding-left: 12px;
	border-left: 1px solid #1f1;
}

.node-wrapper {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.toggle {
	width: 1em;
	display: inline-block;
	user-select: none;
	cursor: pointer;
}

li.collapsed > .node-wrapper .toggle::after {
	content: "▶";
}

li:not(.collapsed) > .node-wrapper .toggle::after {
	content: "▼";
}

.node-link {
	color: #1f1;
	text-decoration: none;
	padding-left: 4px;
	word-break: break-word;
}

.node-link:hover {
	text-decoration: underline;
}

li.collapsed > ul {
	display: none;
}

#content {
	flex: 1;
	margin-left: 280px;
	padding: 40px;
	max-width: 900px;
}

#content h1 {
	margin-bottom: 20px;
}

#content p {
	margin-bottom: 16px;
	line-height: 1.6;
}

.code-block {
  background: #222;
  border: 1px solid #1f1;
  border-radius: 6px;
  margin: 16px 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #222;
  border-bottom: 1px solid #1f1;
}

.code-lang {
  font-size: 12px;
  color: #1f1;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #1f1;
  color: #1f1;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #333;
  border-color: #1f1;
  color: #1f1;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background: #444;
  border-color: #1f1;
  color: #1f1;
}

.copy-icon {
  font-size: 14px;
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #1e1e1e;
}

.code-block code {
  color: #1f1;
  font-size: 14px;
  line-height: 1.6;
}

.code-block pre::-webkit-scrollbar {
  height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
  background: #222;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
  background: #222;
}
