:root { --clr-btn-border: #BBBBBB; }
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #121212;
	color: #e0e0e0;
	padding-top: 60px;
}
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: #1e1e1e;
	border-bottom: 1px solid #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	z-index: 1000;
}
.header h1 {
	font-size: 1.3rem;
	color: #ffffff;
}
.lang-picker button {
	background-color: #1e1e1e;
	color: #fff;
	border: 1px solid #333;
	border-radius: 4px;
	width: 40px; height: 26px;
	text-align: center;
	margin-left: 5px;
	cursor: pointer;
	transition-duration: 0.2s;
}
.lang-picker button:hover {
	font-weight: bold;
	border-color: var(--clr-btn-border);
	box-shadow: 0 0 6px var(--clr-btn-border);
	transform: translateY(-3px);
}
.layout-container {
	display: flex;
	min-height: calc(100vh - 60px);
}
.sidebar {
	width: 220px;
	background-color: #181818;
	border-right: 1px solid #2a2a2a;
	padding: 20px;
	position: fixed;
	top: 60px;
	bottom: 0;
	overflow-y: auto;
}
.sidebar h3 {
	font-size: 0.9rem;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 12px;
	letter-spacing: 1px;
}
.sidebar nav a {
	display: block;
	color: #bbb;
	border: 1px solid #0000;
	border-radius: 4px;
	text-decoration: none;
	padding: 8px 10px;
	margin-bottom: 4px;
	text-transform: capitalize;
	transition-duration: 0.2s;
}
.sidebar nav a:hover {
	font-weight: bold;
	border-color: var(--clr-btn-border);
 	box-shadow: 0 0 6px var(--clr-btn-border);
	transform: translateY(-3px);
}
#docs-container {
	margin-left: 220px;
	padding: 20px 40px;
	flex: 1;
}
.category-section {
	margin-bottom: 40px;
	scroll-margin-top: 70px;
}
.category-title {
	font-size: 1.5rem;
	color: #888;
	border-bottom: 1px solid #333;
	padding-bottom: 8px;
	margin-bottom: 16px;
	text-transform: capitalize;
	transition-duration: 0.2s;
}
.func-row {
	background-color: #1e1e1e;
	border: 1px solid #2a2a2a;
	border-left: 4px solid var(--clr-btn-border);
	border-radius: 4px;
	display: flex;
	align-items: center;
	transition-duration: 0.2s;
	height: 46px;
	min-height: 46px;
	padding: 10px 16px;
	border: none;
	justify-content: space-between;
}
.func-row:hover {
	border-color: var(--clr-btn-border);
	box-shadow: 0 0 6px var(--clr-btn-border);
	transform: translateY(-3px);
}
.func-row code {
	font-family: 'Consolas', 'Fira Code', monospace;
	font-size: 1rem;
	white-space: nowrap;
}
.func-row .func-separator {
	position: relative;
	width: 1px; height: 40px;
	background-image: linear-gradient(
		to bottom,
		transparent 0%,
		#888 30%,
		#888 70%,
		transparent 100%
	);
	margin: 0 15px;
	flex-shrink: 0;
}
.func-row .func-separator::after {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-image: linear-gradient(
		to bottom,
		transparent 0%,
		#aaa 20%,
		#aaa 80%,
		transparent 100%
	);
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}
.func-row:hover .func-separator::after { opacity: 1; }
.func-row .func-desc {
	color: #abb2bf;
	font-size: 0.95rem;
	flex: 1;
	word-break: break-word;
}
.func-container {
	margin-bottom: 10px;
	border-radius: 4px;
	overflow: visible;
	border: 1px solid #2a2a2a;
	background-color: #1e1e1e;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.func-container:hover {
	border-color: var(--clr-btn-border);
	box-shadow: 0 0 6px var(--clr-btn-border);
}
.func-row:hover {
	box-shadow: none;
	transform: none;
}
.func-main-info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.func-toggle-btn {
	background: transparent;
	border: none;
	color: #888;
	cursor: pointer;
	padding: 4px 8px;
	font-size: 0.8rem;
	transition: color 0.2s, transform 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.func-toggle-btn:hover { color: #fff; }
.func-toggle-btn.active .arrow { transform: rotate(180deg); }
.arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}
.func-example-box {
	max-height: 0;
	overflow: hidden;
	background-color: #141414;
	border-top: 1px solid transparent;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	transition: max-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}
.func-container.is-open .func-example-box {
	max-height: 500px;
	border-top-color: #2a2a2a;
	padding: 12px 16px;
}
.func-example-box pre {
	margin: 0;
	font-family: 'Consolas', 'Fira Code', monospace;
	font-size: 0.9rem;
	color: #abb2bf;
	white-space: pre-wrap;
	word-break: break-all;
}
.arg-wrapper {
	position: relative;
	cursor: help;
	border-bottom: 1px dashed #444;
	display: inline-block;
}
.arg-wrapper .tooltip-box {
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background-color: #252526;
	color: #cccccc;
	border: 1px solid #454545;
	padding: 5px 9px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-family: Arial, sans-serif;
	white-space: nowrap;
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100;
}
.arg-wrapper:hover { z-index: 101; }
.arg-wrapper:hover .tooltip-box {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-4px);
}
.arg-wrapper::after {
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background-color: #252526;
	color: #cccccc;
	border: 1px solid #454545;
	padding: 5px 9px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-family: Arial, sans-serif;
	white-space: nowrap;
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100;
}
.arg-wrapper:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-4px);
}
.syntax-return,.code-keyword { color: #2980b9; font-weight: bold; }
.syntax-name,.code-function  { color: #8e44ad; }
.code-control                { color: #fdbc4b; font-weight: bold; }
.syntax-arg-type             { color: #2980b9; }
.syntax-arg-name             { color: #27aeae; }
.syntax-punct                { color: #abb2bf; font-weight: bold; }
.code-define                 { color: #27ae60; }
.code-number                 { color: #f67400; }
.code-string                 { color: #e06c75; }
.code-comment                { color: #7a7c7d; font-style: italic; }
.code-format-specifier       { color: #3daee9; font-weight: bold; }
