/* CSS Variables for Theming */
:root {
	--sidebar-width: 250px;
	--background-color: #1e1e1e;
	--sidebar-background: #252525;
	--text-color: #e1e1e1;
	--accent-color: #4e9af1;
	--hover-background: #4e4e4e;
	--active-background: #ee7700;
	--active-text-color: #ffffff;
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
		"Helvetica Neue", sans-serif;
	--label-default-bg: #333333;
	--label-success-bg: #2e7d32;
	--label-error-bg: #c62828;
}

/* General Styles */
* {
	scrollbar-width: thin;
	scrollbar-track-color: #2c2c2c;
}

html {
	background-color: var(--background-color);
}

body {
	font-family: var(--font-family);
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	margin: 0;
	scrollbar-face-color: #888;
	scrollbar-track-color: #2c2c2c;
}

.container {
	margin-left: var(--sidebar-width);
	padding: 20px;
}

h1,
h2,
h3,
h4,
h5 {
	color: var(--text-color);
}

h2 {
	margin-bottom: 1.2em;
}

h3 {
	font-weight: normal;
	margin-top: 3em;
}

h2 + h3 {
	margin-top: unset;
}

::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: #2c2c2c;
}

::-webkit-scrollbar-thumb {
	background: #888;
}

::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.section {
	background-color: var(--sidebar-background);
	border-radius: 5px;
	padding: 20px;
	margin-bottom: 20px;
}

/* Sidebar Styles */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--sidebar-width);
	height: 100%;
	background-color: var(--sidebar-background);
	padding-top: 20px;
	overflow-y: auto;
}

.sidebar h2 {
	color: var(--text-color);
	text-align: center;
	margin: 0;
	padding-bottom: 20px;
	border-bottom: 1px solid #444;
}

.sidebar ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.sidebar li {
	width: 100%;
}

.sidebar a {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	color: var(--text-color);
	text-decoration: none;
	transition: background 0.3s;
}

.sidebar a:hover {
	background-color: var(--hover-background);
}

.sidebar a.active {
	background-color: var(--active-background);
	color: var(--active-text-color);
}

.sidebar a .icon {
	margin-right: 10px;
	font-size: 18px;
}

.sidebar details {
	border-bottom: 1px solid #444;
}

.sidebar summary {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	list-style: none;
	cursor: pointer;
	color: var(--text-color);
	transition: background 0.3s;
}

.sidebar summary:hover {
	background-color: var(--hover-background);
}

.sidebar summary::-webkit-details-marker {
	display: none;
}

.sidebar summary::after {
	content: "\25B6"; /* Right arrow */
	margin-left: auto;
	transition: transform 0.3s;
}

.sidebar details[open] > summary::after {
	transform: rotate(90deg);
}

.sidebar ul ul {
	background-color: #333;
}

.sidebar ul ul li a {
	padding-left: 40px;
	font-size: 14px;
}

/* Code Block Styles */
.code-block {
	background-color: #1c1c1c;
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
	overflow-x: auto;
}

.code-block-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.code-block + p {
	margin-top: 2em;
}

.language-label {
	font-size: 0.8em;
	color: #888;
}

.copy-button {
	background-color: transparent;
	border: none;
	color: #888;
	cursor: pointer;
}

pre {
	margin: 0;
	white-space: pre-wrap;
}

code {
	font-family: "Courier New", Courier, monospace;
}

.json-key {
	color: #e06c75;
}

.json-string {
	color: #98c379;
}

.json-number {
	color: #d19a66;
}

/* Label Styles */
.label {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--text-color);
}

.label-default {
	background-color: var(--label-default-bg);
}

.label-success {
	font-size: 0.9em;
	font-weight: bold;
	background-color: var(--label-success-bg);
	margin-right: 0.8em;
}

.label-error {
	font-size: 0.9em;
	font-weight: bold;
	background-color: var(--label-error-bg);
	margin-right: 0.8em;
}

.label-get,
.label-post,
.label-put,
.label-patch,
.label-delete,
.label-head,
.label-options {
	padding: 1px 12px;
	color: white;
}

.label-get {
	background-color: #4286f4;
}

.label-post {
	background-color: #34a853;
}

.label-put {
	background-color: #fb8c00;
}

.label-patch {
	background-color: #009688;
}

.label-delete {
	background-color: #ea4335;
}

.label-head {
	background-color: #9c27b0;
}

.label-options {
	background-color: #607d8b;
}

.code-block .label-get,
.code-block .label-post,
.code-block .label-put,
.code-block .label-patch,
.code-block .label-delete,
.code-block .label-head,
.code-block .label-options {
	border-radius: 5px;
	float: left;
	margin: -3px 12px 8px 0;
}

.label-patch {
	background-color: #ffc107;
	color: black;
}

.code-block > .label-post {
}

.label-get {
	background-color: #2196f3;
	color: white;
}

/* Table Styles */
table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
	min-width: 100%;
}

table tbody {
	display: table;
	width: 100%;
}

th,
td {
	text-align: left;
	padding: 10px;
	border-bottom: 1px solid #444;
}

th {
	background-color: #2c2c2c;
}

td {
	max-width: 20em;
	white-space: normal;
	overflow-wrap: break-word;
	min-width: 5em;
}

/* List Styles */
ul,
ol {
	padding-left: 20px;
}

/* List Styles for Additional Details Section */
.section ul,
.section ol {
	padding-left: 24px;
	margin-bottom: 20px;
}

.section li {
	margin-bottom: 12px;
}

.section li > ul,
.section li > ol {
	margin-top: 8px;
	margin-bottom: 0;
}

.section > ul > li,
.section > ol > li {
	margin-bottom: 16px;
}

.section ul ul,
.section ol ol,
.section ul ol,
.section ol ul {
	margin-top: 8px;
}

/* Responsive Adjustments */
@media screen and (max-width: 60em) {
	.sidebar {
		width: 100%;
		position: relative;
		height: auto;
	}
	.container {
		margin-left: 0;
	}
}
