﻿* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

#sidebar {
	position: fixed;
	left: 0;
	top: 4rem;
	width: 15rem;
	height: 100%;
	background-color: #f0f0f0;
	border-right: 1px solid #ccc;
	color: white;
	z-index: 2;
	transition: transform 0.3s ease-in-out;
}

	#sidebar header {
		font-size: 1.5em;
		margin-bottom: 20px;
		text-align: center;
	}

.cap-taskbar {
	display: flex;
	position: fixed;
	flex-direction: row;
	align-items: center;
	color: white;
	background-color: #190039;
	width: 100%;
	height: 4rem;
	z-index: 1;
	gap: 0.5rem;
	padding: 0 1.5rem;
}

.cap-logo img {
	height: 2rem;
}

.cap-content {
	padding-left: 15rem;
	padding-top: 4rem;
}

@media (max-width: 768px) {
	#sidebar {
		transform: translateX(-250px);
		top: 3rem;
	}

	.cap-taskbar {
		height: 3rem;
	}

	.cap-content {
		padding-left: 0;
		padding-top: 3rem;
	}
}

.cap-nav-link {
	display: block;
	padding: 10px 0;
	color: #333;
	text-decoration: none;
	top: -30px;
}

	.cap-nav-link:hover {
		background-color: #e0e0e0;
	}

.cap-subsection {
	list-style: none;
	margin-top: 0.75rem;
	margin-bottom: 0;
	padding-left: 0;
	flex-direction: column;
	gap: 0;
	display: inline-flex;
	text-decoration: none;
	color: #333;
	font-size: 1.0rem;
	font-weight: 250;
	width: 100%;
}

.cap-subsection-list {
	width: 100%;
	font-weight: 400;
	display: block;
	color: inherit;
	text-decoration: none;
	text-decoration-color: #f0f0f0;
	top: -30px;
	fill: currentColor;
	font-size: 0.88rem;
	padding: 0.4rem;
	padding-left: 4rem;
}

	.cap-subsection-list :hover {
		background: #d5c8ff;
	}

.cap-subsection-list-active {
	background: #d5c8ff;
	border-right: 2px solid #5c26ff;
	font-weight: 500;
	color: #5c26ff;
}

.cap-link-container {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0.5rem 1rem;
	text-decoration: none;
	font-weight: 500;
	color: #333;
	transition: all 0.3s ease;
	font-family: Roboto, Arial, Helvetica, sans-serif;
	font-size: 0.88rem;
}

	.cap-link-container svg {
		width: 24px;
		height: 24px;
		fill: currentColor;
		transition: transform 0.2s ease;
	}

	.cap-link-container:hover svg {
		transform: rotate(10deg) scale(1.1);
	}

.cap-taskbar p {
	text-align: center;
}

.cap-sidebar-header {
	height: 4rem;
	padding: 1rem;
}

.cap-dropdown {
	max-width: 200px;
	margin: 0 auto;
	background: transparent;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.cap-1);
	overflow: hidden;
	padding: 0.25rem;
}

	.cap-dropdown button {
		display: flex;
		flex-direction: row;
		background-color: transparent;
		border-width: 0;
		color: white;
	}

		.cap-dropdown button::after {
			display: inline-block;
			width: 24px;
			height: 24px;
			background-color: currentColor; /* This will use the parent's color */
			mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M480-360 280-560h400L480-360Z"/></svg>');
			mask-size: contain;
			mask-repeat: no-repeat;
			content: '';
		}

.cap-p {
	text-align: center;
	color: #333;
	padding: 20px 0;
	margin: 0;
}

.cap-dropdown-1 {
	background-color: inherit;
	color: #444;
	cursor: pointer;
	padding: 18px;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	font-size: 15px;
	transition: 0.4s;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.cap-active,
	.cap-dropdown-1:hover {
		background-color: #ccc;
	}

.cap-dropdown-icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.cap-button-icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.cap-dropdown-menu {
	display: block;
	position: absolute;
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid #d2d2d2;
	background-color: white;
	border-radius: 0.5rem;
	z-index: 3;
}

.cap-dropdown-menu-hidden {
	height: 0;
	width: 0;
	display: none;
}


.cap-dropdown-item {
	border-top: 1px solid #eee;
}

	.cap-dropdown-item p {
		padding: 15px 18px;
		margin: 0;
		color: #333;
		text-align: left;
	}

	.cap-dropdown-item:hover {
		font-weight: 500;
	}

.cap-flex-separator {
	flex-grow: 1;
}

/* other */
.cap-menu-icon {
	width: 24px;
	height: 24px;
	fill: white;
}

.cap-dropdown-item:first-child {
	border-top: none;
}

.cap-dropdown-item a {
	display: block;
	padding: 15px 18px;
	color: #333;
	text-decoration: none;
	transition: background-color 0.2s;
}

.cap-dropdown-content {
	padding: 0;
	background-color: white;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}
