/**
 * Academia Fénix - Tutor LMS dashboard adjustments.
 *
 * Every rule is scoped to the body class added only on Tutor LMS dashboard
 * requests. Elementor pages outside the dashboard remain untouched.
 */

.aftd-tutor-dashboard .aftd-hidden-external-logo {
	display: none !important;
}

.aftd-tutor-dashboard .aftd-sidebar-brand-logo-container {
	align-items: center;
	background: #fff !important;
	box-sizing: border-box;
	display: flex !important;
	filter: none !important;
	justify-content: center;
	margin: 0 !important;
	min-height: 190px;
	opacity: 1 !important;
	padding: 28px 32px !important;
	text-decoration: none !important;
	visibility: visible !important;
	width: 100% !important;
}

.aftd-tutor-dashboard .aftd-sidebar-brand-logo-image {
	background: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block !important;
	height: auto !important;
	margin: 0 auto !important;
	max-height: 105px !important;
	max-width: 235px !important;
	object-fit: contain !important;
	object-position: center !important;
	opacity: 1 !important;
	padding: 0 !important;
	visibility: visible !important;
	width: 100% !important;
}

.aftd-tutor-dashboard .aftd-hidden-announcement,
.aftd-tutor-dashboard .aftd-hidden-earnings,
.aftd-tutor-dashboard .aftd-hidden-analytics-earnings {
	display: none !important;
}

/*
 * Missing Tutor icons are positioned over the space already reserved by
 * Tutor's menu links. This avoids pushing the text to the right.
 */
.aftd-tutor-dashboard .aftd-menu-link--with-icon {
	align-items: center !important;
	display: flex !important;
	gap: 20px !important;
	position: relative !important;
}

.aftd-tutor-dashboard .aftd-menu-link--needs-space {
	padding-inline-end: 22px !important;
	padding-inline-start: 22px !important;
}

.aftd-tutor-dashboard .aftd-menu-icon {
	align-items: center;
	color: #0d6efd;
	display: inline-flex;
	flex: 0 0 24px;
	height: 24px;
	justify-content: center;
	margin: 0 !important;
	position: static;
	transform: none;
	width: 24px;
}

.aftd-tutor-dashboard .aftd-menu-icon svg {
	display: block;
	height: 24px;
	width: 24px;
}

.aftd-tutor-dashboard .aftd-native-menu-icon--hidden {
	display: none !important;
}

/*
 * Tutor versions and themes use several active-state patterns. Cover the
 * known variants so fallback icons stay visible in white on the blue item.
 */
.aftd-tutor-dashboard .tutor-dashboard-permalinks li.active > a .aftd-menu-icon,
.aftd-tutor-dashboard .tutor-dashboard-permalinks li.is-active > a .aftd-menu-icon,
.aftd-tutor-dashboard .tutor-dashboard-menu-item.active > a .aftd-menu-icon,
.aftd-tutor-dashboard .tutor-dashboard-menu-item.is-active > a .aftd-menu-icon,
.aftd-tutor-dashboard .tutor-dashboard-permalinks a.active .aftd-menu-icon,
.aftd-tutor-dashboard .tutor-dashboard-permalinks a.is-active .aftd-menu-icon,
.aftd-tutor-dashboard .tutor-dashboard-permalinks a[aria-current="page"] .aftd-menu-icon {
	color: #fff;
}

.aftd-tutor-dashboard .aftd-logout-item {
	margin-top: 10px;
}

.aftd-tutor-dashboard .aftd-logout-link {
	align-items: center;
	border-radius: 6px;
	box-sizing: border-box;
	color: inherit;
	display: flex;
	gap: 20px;
	min-height: 52px;
	padding: 12px 22px;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
	width: 100%;
}

.aftd-tutor-dashboard .aftd-logout-link:hover,
.aftd-tutor-dashboard .aftd-logout-link:focus-visible {
	background: #eef6ff;
	color: #0d6efd;
	outline: none;
}

/*
 * The native Tutor grid is intentionally preserved. Once the complete
 * earnings column is hidden, Tutor reflows the five remaining cards itself.
 */
.aftd-dashboard-home .aftd-stats-grid {
	align-content: stretch;
}

@media (max-width: 991px) {
	.aftd-tutor-dashboard .aftd-sidebar-brand-logo-container {
		min-height: 150px;
		padding: 22px 24px !important;
	}

	.aftd-tutor-dashboard .aftd-sidebar-brand-logo-image {
		max-height: 92px !important;
		max-width: 215px !important;
	}
}

@media (max-width: 575px) {
	.aftd-tutor-dashboard .aftd-sidebar-brand-logo-container {
		min-height: 110px;
		padding: 16px 20px !important;
	}

	.aftd-tutor-dashboard .aftd-sidebar-brand-logo-image {
		max-height: 76px !important;
		max-width: 180px !important;
	}

	.aftd-tutor-dashboard .aftd-menu-icon {
		flex-basis: 22px;
		height: 22px;
		width: 22px;
	}

	.aftd-tutor-dashboard .aftd-menu-link--needs-space {
		padding-inline-end: 18px !important;
		padding-inline-start: 18px !important;
	}

	.aftd-tutor-dashboard .aftd-logout-link {
		padding-inline-end: 18px;
		padding-inline-start: 18px;
	}
}
