/* Sidebar Component Styles */

#menulateral {
	width: 60px;
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 1001;
	background-color: var(--secondary-color);
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	transition: width 0.3s ease;
	overflow: hidden;
}

#menulateral.open {
	width: 240px;
}

#menulateral #profile {
	text-align: center;
	padding: 20px 10px;
	height: auto;
	width: 100%;
	box-sizing: border-box;
}

#menulateral #profile img {
	width: 40px;
	height: 40px;
	border-radius: 16px;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

#menulateral #profile.active img {
	border-color: var(--primary-color);
}

#menulateral.open #profile img {
	width: 80px;
	height: 80px;
}

#menulateral ul#sections {
	background-color: transparent;
	padding: 0;
	margin: 0;
	width: 100%;
	flex-grow: 1;
}

#menulateral ul#sections li {
	list-style: none;
	padding: 5px 0;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	color: rgba(255, 255, 255, 0.6);
	position: relative;
}

/* Menu Buttons */
#menulateral .menubutton {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin: 0 auto 5px;
	border-radius: 12px;
	transition: all 0.2s;
	color: rgba(255, 255, 255, 0.6);
}

#menulateral.open .menubutton {
	width: 210px;
	justify-content: flex-start;
	padding-left: 15px;
}

#menulateral .menubutton i {
	font-size: 20px;
	min-width: 24px;
	text-align: center;
	color: white;
	opacity: 0.8;
	transition: all 0.2s ease-in-out;
}

#menulateral .menubutton:hover,
#menulateral .menubutton.active {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

#menulateral .menubutton:hover i,
#menulateral .menubutton.active i {
	opacity: 1;
	color: var(--primary-color);
	transform: scale(1.1);
}

/* Toggle Button */
#menu-toggle {
	cursor: pointer;
	margin-top: 15px;
	margin-bottom: 10px;
}

#menulateral ul#sections.sectionsPublic {
	max-height: calc(100% - 150px);
}

/* Text Labels */
.menu-text {
	display: none;
	white-space: nowrap;
	margin-left: 15px;
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.2s;
}

#menulateral.open .menu-text {
	display: inline-block;
	opacity: 1;
}

/* Notification Badge */
.notification-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 18px;
	height: 18px;
	background-color: #e74c3c;
	color: white;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	border: 2px solid var(--secondary-color);
	z-index: 10;
}

#menulateral.open .notification-badge {
	top: 12px;
	right: 15px;
}

#menulateral ul#general {
	background: transparent;
	padding: 20px 0;
	margin: 0;
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#menulateral ul#general li {
	list-style: none;
	padding: 5px 0;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	color: rgba(255, 255, 255, 0.5);
}

/* Tooltip */
.menutooltip {
	visibility: hidden;
	background-color: #333;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 6px 12px;
	position: absolute;
	z-index: 100;
	left: 55px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity 0.3s;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 500;
	pointer-events: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.menutooltip::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 100%;
	margin-top: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent #333 transparent transparent;
}

#menulateral .menubutton:hover .menutooltip {
	visibility: visible;
	opacity: 1;
}

#menulateral.open .menutooltip {
	display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
	#menulateral {
		left: -80px;
		box-shadow: none;
	}

	#menulateral.active {
		left: 0;
		box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
	}
}
