:root {
	--primary: #ffffff;
	--secondary: #E15966;
	--accent: #9cdbca;
	--accent-hover: #2980b9;
	--text: #d4faf0;
	--text-light: #9cdbca;
	--bg: #862630;
	--content-bg: #0a5c3f;
	--bg-panel: #0c7550;
	--border: #0c7550;
	--success: #27ae60;
	--warning: #f39c12;
	--danger: #e74c3c;
	--xmas-grey: #cccccc;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
	background-color: var(--bg);
	color: var(--text);
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: 0;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	overflow-x: hidden;
}

.dashboard-container {
	display: flex;
	width: 1200px;
	height: 100vh;
	margin: 0 auto;
	overflow: hidden;
	background-color: var(--bg);
	box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
	border-radius: 8px;
}

.sidebar {
	width: 280px;
	background-color: var(--bg-panel);
	border-right: 1px solid var(--border);
	overflow-y: auto;
	transition: width 0.3s ease;
	height: 100%;
	padding: 0;
	position: relative;
}

.content-area {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
	background-color: var(--content-bg);
	position: relative;
}

.header {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border);
	background-color: var(--bg-panel);
}

.logo {
	font-weight: 700;
	font-size: 18px;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-icon {
	width: 24px;
	height: 24px;
	background-color: var(--accent);
	border-radius: 6px;
	position: relative;
}

.logo-icon::before, 
.logo-icon::after {
	content: '';
	position: absolute;
	background-color: white;
}

.logo-icon::before {
	width: 12px;
	height: 2px;
	top: 11px;
	left: 6px;
}

.logo-icon::after {
	width: 2px;
	height: 12px;
	top: 6px;
	left: 11px;
}

.accordion {
	padding: 0;
	list-style: none;
}

.accordion-item {
	border-bottom: 1px solid var(--border);
}

.accordion-button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	text-align: left;
	padding: 16px 20px;
	border: none;
	background-color: var(--bg-panel);
	color: var(--text);
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s ease;
}

.accordion-button:hover {
	background-color: var(--content-bg);
	color: var(--accent);
}

.accordion-button.active {
	background-color: var(--content-bg);
	color: var(--accent);
}

.accordion-button-text {
	display: flex;
	align-items: center;
	gap: 12px;
}

.icon {
	font-size: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--text-light);
	transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-button.active .icon {
	color: var(--accent);
}

.chevron {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.accordion-button.active .chevron {
	transform: rotate(180deg);
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background-color: rgba(44, 62, 80, 0.02);
	z-index: 2;
}

.accordion-content-inner {
	padding: 8px 0;
}

.sub-menu {
	list-style: none;
	padding: 0;
}

.sub-menu-item {
	padding: 0;
}

.sub-menu-link {
	display: flex;
	align-items: center;
	padding: 10px 20px 10px 54px;
	color: var(--text-light);
	text-decoration: none;
	font-weight: 500;
	font-size: 13px;
	position: relative;
	transition: all 0.2s ease;
}

.sub-menu-link:hover {
	background-color: rgba(10, 92, 63, 0.25);
	color: var(--accent);
}

.sub-menu-link.active {
	color: var(--accent);
	background-color: rgba(10, 92, 63, 0.35);
}

.sub-menu-link.active::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 20px;
	background-color: var(--accent);
	border-radius: 2px;
}

.badge {
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
	background-color: var(--accent);
	color: white;
	margin-left: 8px;
}

.badge.warning {
	background-color: var(--warning);
}

.badge.danger {
	background-color: var(--danger);
}

.badge.success {
	background-color: var(--success);
}

.content-header {
	margin-bottom: 24px;
	height: 40px;
	border-bottom: 1px solid var(--border);
}

.content-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 24px;
}

.content-description {
	color: var(--text-light);
	font-size: 14px;
}

.data-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.data-card {
	background-color: var(--bg-panel);
	border-radius: 8px;
	padding: 16px;
	border: 1px solid var(--border);
	transition: all 0.2s ease;
}

.data-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(44, 62, 80, 0.1);
}

.data-card-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 8px;
}

.data-card-value {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
}

.data-card-trend {
	display: flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
}

.trend-up {
	color: var(--success);
}

.trend-down {
	color: var(--danger);
}

.data-chart {
	background-color: var(--bg-panel);
	border-radius: 8px;
	padding: 16px;
	border: 1px solid var(--border);
	position: relative;
	margin-bottom: 24px;
}

.chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.chart-title {
	font-size: 15px;
	font-weight: 600;
}

.chart-controls {
	display: flex;
	gap: 8px;
}

.chart-control {
	padding: 6px 12px;
	background-color: transparent;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-light);
	cursor: pointer;
	transition: all 0.2s ease;
}

.chart-control:hover {
	background-color: rgba(52, 152, 219, 0.05);
	color: var(--accent);
	border-color: var(--accent);
}

.chart-control.active {
	background-color: var(--accent);
	color: white;
	border-color: var(--accent);
}

.chart-canvas {
	width: 100%;
	height: 160px;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding-top: 20px;
}

.chart-bar {
	flex: 1;
	background-color: var(--accent);
	border-radius: 4px 4px 0 0;
	transition: height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	opacity: 0.7;
}

.chart-bar:hover {
	opacity: 1;
}

.chart-bar::after {
	content: attr(data-value);
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	font-weight: 600;
	color: var(--text);
}

.chart-axis {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
}

.chart-label {
	font-size: 10px;
	color: var(--text-light);
	flex: 1;
	text-align: center;
}

.toggle-btn {
	position: absolute;
	top: 20px;
	right: 24px;
	background-color: var(--accent);
	color: white;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
	z-index: 10;
	transition: all 0.3s ease;
}

.toggle-btn:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(52, 152, 219, 0.4);
}

.user-profile {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	margin-top: auto;
	border-top: 1px solid var(--border);
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color: var(--bg-panel);
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--accent);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	margin-right: 12px;
}

.user-info {
	flex: 1;
}

.user-name {
	font-size: 13px;
	font-weight: 600;
}

.user-role {
	font-size: 11px;
	color: var(--text-light);
}

.settings-btn {
	color: var(--text-light);
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.settings-btn:hover {
	color: var(--accent);
}

/* Tooltip styles */
[data-tooltip] {
	position: relative;
	z-index: 9999;
}

[data-tooltip]:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 8px;
	padding: 6px 10px;
	background-color: var(--secondary);
	color: white;
	font-size: 11px;
	border-radius: 4px;
	white-space: nowrap;
	z-index: 10;
}

[data-tooltip]:hover::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: var(--secondary) transparent transparent transparent;
	z-index: 10;
}

/* Animation keyframes */
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.pulse {
	animation: pulse 2s infinite;
}

.fadeIn {
	animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 700px) {
	.dashboard-container {
		flex-direction: column;
		height: 700px;
	}

	.sidebar {
		width: 100%;
		height: auto;
		max-height: 350px;
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

	.content-area {
		height: auto;
	}

	.data-cards {
		grid-template-columns: 1fr;
	}

	.user-profile {
		position: relative;
	}
}
.overlay{
	position:fixed;
	width:100%;
	height:100%;
	top:0px;
	left:0px;
	z-index:-1000;
}
.difficulty-highlight {
	color: var(--secondary);
}
.difficulty {
	color: var(--xmas-grey);
}

pre {
	border-radius: 5px;
	position: relative;
	margin-top: 12px;
	margin-bottom: 12px;
	white-space: pre; /* Preserves spaces and prevents line breaks by default */
	/*word-wrap: normal;*/
	overflow-x: auto !important;
	width: 100%;
}

pre::before {
	content: attr(class);
	position: absolute;
	top: 0px;
	right: 0;
	padding: 0.2em 0.5em;
	background-color: #333; /* Customize colors as needed */
	color: white;
	font-size: 0.8em;
	text-transform: uppercase;
	border-radius: 0 0 0 5px;
}

pre > code {
    font-family: "Sans Mono", "Consolas", "Courier", monospace;
}

.showcased-img {
	display: block;
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
	border-radius: 5px;
	margin-bottom: 10px;
	margin-top: 10px;
}

.caption {
	width: 100%;
	text-align: center;
	font-style: italic;
	margin-bottom: 10px;
	color: var(--text-light);
}

.footer a{
	color: var(--text-light);
	text-decoration: none;
}

.content-container {
	min-height: calc(100vh - 100px);
}

p {
	margin-bottom: 20px;
}

a.plain-link, a.plain-link:visited {
	color: var(--text);
	text-decoration: none;
}

.mini-gnome-container img {
	width: 20px; 
	height: auto; 
	position: fixed; 
	left: 10px; 
	bottom: 10px;
}

pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/* Table Style */
.styled-table{
	font-family: Arial, Helvetica, sans-serif;
	border-collapse: collapse;
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 10px;
}

.styled-table a:link{
	color: black;
}

.styled-table a:visited{
	color: black;
}

.styled-table td, .styled-table th {
	border: 1px solid #ddd;
	padding: 8px;
}

.styled-table tr:nth-child(even) {
	color: var(--color-dark);
	background-color: var(--bg-panel);
}

.styled-table tr:hover {
	color: #FFFFFF;
	background-color: var(--bg);
}

.styled-table th {
	padding-top: 12px;
	padding-bottom: 12px;
	text-align: left;
	background: var(--content-bg);
	color: #FFFFFF;
}

.ul {
	margin-left: 40px;
	margin-bottom: 10px;
	margin-top: 10px;
}

.ul ul li {
	margin-left: 20px;
}

.data-chart a {
	text-decoration: none;
	font-weight: bold;
	text-decoration: underline;
	color: var(--text);
}

.footer a {
	text-decoration: none;
	font-weight: bold;
	color: var(--text);
}

.back-to-top {
	position: absolute;
	bottom: 10px;
	right: 20px;
	color: var(--content-bg);
	font-size: 2rem;
}

.back-to-top:hover {
	color: var(--bg-panel);
}