/**
 * UI do painel — tokens, header responsivo, item ativo na sidebar, utilitários.
 * Carregado após style.css
 */

:root {
	--dash-primary: #2e488e;
	--dash-primary-hover: #243a72;
	--dash-surface: #ffffff;
	--dash-sidebar-bg: #2e488e;
	--dash-text-on-primary: #ffffff;
	--dash-muted: rgba(255, 255, 255, 0.72);
	--dash-radius: 10px;
	--dash-shadow-header: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 24px rgba(46, 72, 142, 0.08);
}

/* ——— Header logado: menu mobile (≤767px) ——— */
@media (max-width: 767px) {
	.simplebar-scrollbar {
		width: 15px;
	}

	.navbar {
		background-color: transparent !important;
		border: none;
	}

	.navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280, 0, 0, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
	}

	.nomeusuario {
		color: var(--dash-primary);
	}

	.navbar-collapse {
		padding: 15px;
		position: absolute;
		bottom: 100%;
		right: 0;
		left: auto;
		width: 70%;
		background-color: var(--dash-sidebar-bg);
		box-shadow: -6px -6px 12px rgba(0, 0, 0, 0.3);
		border-radius: 15px 0 0 0;
		transition: max-height 0.4s ease-out, opacity 0.4s ease-out, transform 0.4s ease-out;
		max-height: 0;
		transform: translateX(100%);
		overflow: hidden;
		z-index: 1000;
	}

	.navbar-collapse.show {
		max-height: 500px;
		opacity: 0.96;
		transform: translateX(0);
	}

	.navbar-nav .nav-link i {
		margin-right: 8px;
		vertical-align: middle;
	}

	.navbar-nav .nav-link {
		color: #fff;
		font-size: 18px;
		padding-left: 0;
		margin-left: 0;
	}

	.navbar-nav {
		padding: 10px 0 0 10px;
		text-align: left;
	}

	.navbar-nav .nav-link:hover {
		color: #ddd;
	}

	.navbar-nav .nav-item {
		margin-bottom: 20px;
		list-style-type: none;
	}

	.navbar-nav .nav-item::marker {
		content: none;
	}
}

/* ——— Logo / utilitários header ——— */
.mfp-bg {
	opacity: 0.7;
}

.desc_btn_login {
	margin-top: 2px;
}

@media (max-width: 990px) {
	#logo img {
		max-width: 70%;
	}
	.imagelogo {
		width: 100px;
	}
	.desc_btn_login {
		display: none;
	}
}

@media (max-width: 767px) {
	#logo img {
		max-width: 55%;
	}
	.imagelogo {
		width: 100px;
	}
	.desc_btn_login {
		display: none;
	}
}

/* ——— Menu inferior (mobile logado) ——— */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.menu-inferior {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	justify-content: space-around;
	align-items: center;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--dash-surface);
	padding-top: 10px;
	z-index: 1000;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.item-menu {
	text-align: center;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.item-menu .icon {
	font-size: 24px;
	margin-bottom: 4px;
}

.item-menu span {
	font-size: 12px;
}

.icon-menu-inferior {
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
	color: var(--dash-primary);
	font-size: 24px;
}

@media (min-width: 769px) {
	.menu-inferior {
		display: none;
	}
}

/* ——— Dropdown usuário (topo) ——— */
.header-user-role {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dash-muted);
	margin-top: 2px;
}

.header-avatar-edit {
	display: block;
	margin-top: 6px;
	font-size: 11px;
}

.header-avatar-edit a {
	color: inherit;
	opacity: 0.85;
	text-decoration: underline;
}

.header-avatar-edit a:hover {
	opacity: 1;
}

.user-menu-small-nav a {
	font-size: 14px;
}

/* ——— Sidebar: item ativo (painel azul) ——— */
.dashboard-sidebar .dashboard-nav ul li.active {
	border-left-color: rgba(255, 255, 255, 0.95);
	background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar .dashboard-nav ul li.active > a,
.dashboard-sidebar .dashboard-nav ul li.active > a i {
	color: #fff !important;
}

.dashboard-sidebar .dashboard-nav ul li.active > a .fontcolor {
	color: #fff !important;
}
