/**
 * Dashboard Tutor LMS — Consolidados (design mis-cursos)
 * Solo estiliza el área de contenido; el menú lateral se mantiene.
 */

body.hexfly-tutor-dashboard {
	--hexfly-dash-primary: #234c86;
	--hexfly-dash-primary-hover: #173b6f;
	--hexfly-dash-primary-rgb: 35, 76, 134;
	--hexfly-dash-bg: #f5f7fa;
	--hexfly-dash-surface: #ffffff;
	--hexfly-dash-ink: #1f2937;
	--hexfly-dash-muted: #6b7280;
	--hexfly-dash-line: #e5e7eb;
	--hexfly-dash-text-rgb: 31, 41, 55;
	--hexfly-dash-sans: 'DM Sans', system-ui, sans-serif;

	background: var(--hexfly-dash-bg) !important;
}

body.hexfly-tutor-dashboard .tutor-wrap.tutor-frontend-dashboard,
body.hexfly-tutor-dashboard .tutor-wrap.tutor-dashboard {
	font-family: var(--hexfly-dash-sans);
	background: var(--hexfly-dash-bg);
}

body.hexfly-tutor-dashboard .tutor-wrap.tutor-frontend-dashboard.tutor-dashboard {
	padding: 1.5rem 1rem 3rem;
}

@media (min-width: 768px) {
	body.hexfly-tutor-dashboard .tutor-wrap.tutor-frontend-dashboard.tutor-dashboard {
		padding: 2rem 1.25rem 3.5rem;
	}
}

/* ── Menú lateral: conservar estructura, pulir ── */

body.hexfly-tutor-dashboard .tutor-dashboard-left-menu,
body.hexfly-tutor-dashboard .tutor-dashboard-left-menu-fixed {
	background: var(--hexfly-dash-surface);
	border-right: 1px solid var(--hexfly-dash-line);
}

body.hexfly-tutor-dashboard .tutor-dashboard-permalinks .tutor-dashboard-menu-item a {
	font-size: 0.88rem;
	font-weight: 500;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

body.hexfly-tutor-dashboard .tutor-dashboard-permalinks .tutor-dashboard-menu-item.active a,
body.hexfly-tutor-dashboard .tutor-dashboard-permalinks .tutor-dashboard-menu-item.is-active a {
	color: var(--hexfly-dash-primary);
	background: rgba(var(--hexfly-dash-primary-rgb), 0.08);
}

/* ── Área de contenido ── */

body.hexfly-tutor-dashboard .tutor-dashboard-content {
	padding: 0 0 0 0.5rem;
}

@media (min-width: 992px) {
	body.hexfly-tutor-dashboard .tutor-dashboard-content {
		padding-left: 1rem;
	}
}

/* Título de sección (Mis cursos, etc.) */

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses > .tutor-fs-5,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses > .tutor-fs-5,
body.hexfly-tutor-dashboard .tutor-dashboard-content > .tutor-fs-5:first-child {
	margin-bottom: 0.35rem !important;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
	color: var(--hexfly-dash-ink) !important;
}

body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses > .tutor-fs-5::before {
	content: 'Área de estudiante';
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hexfly-dash-primary);
}

body.hexfly-tutor-dashboard .tutor-dashboard-content-inner {
	padding-top: 0.25rem;
}

/* Tabs: Publicado, Pendiente, etc. */

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-nav,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1.5rem !important;
	padding: 0;
	border: none;
	list-style: none;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-nav-item,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-nav-item {
	margin: 0;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-nav-link,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-nav-link {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--hexfly-dash-muted);
	background: var(--hexfly-dash-surface);
	border: 1px solid var(--hexfly-dash-line);
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-nav-link:hover,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-nav-link:hover {
	color: var(--hexfly-dash-primary);
	border-color: rgba(var(--hexfly-dash-primary-rgb), 0.35);
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-nav-link.is-active,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-nav-link.is-active {
	color: #fff;
	background: var(--hexfly-dash-primary);
	border-color: var(--hexfly-dash-primary);
}

/* Grid → lista estilo mis-cursos */

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-grid,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-grid {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	grid-template-columns: none !important;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-card,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-card {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
		'thumb'
		'body'
		'footer';
	background: var(--hexfly-dash-surface);
	border: 1px solid var(--hexfly-dash-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(var(--hexfly-dash-text-rgb), 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-card:hover,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-card:hover {
	border-color: rgba(var(--hexfly-dash-primary-rgb), 0.25);
	box-shadow: 0 12px 32px rgba(var(--hexfly-dash-text-rgb), 0.08);
}

@media (min-width: 640px) {
	body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-card,
	body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-card {
		grid-template-columns: 200px 1fr;
		grid-template-areas:
			'thumb body'
			'thumb footer';
		align-items: stretch;
	}

	body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-card > a.tutor-d-block,
	body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-card > a.tutor-d-block {
		grid-area: thumb;
		height: 100%;
		min-height: 140px;
	}

	body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-card .tutor-ratio,
	body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-card .tutor-ratio {
		height: 100%;
		min-height: 140px;
	}
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-card > a.tutor-d-block,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-card > a.tutor-d-block {
	grid-area: thumb;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-card-image-top,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-card-image-top {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-card-body,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-card-body {
	grid-area: body;
	padding: 1.1rem 1.15rem 0.75rem;
	border: none;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-card-footer,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-card-footer {
	grid-area: footer;
	padding: 0.75rem 1.15rem 1.1rem;
	background: transparent;
	border: none;
	border-top: 1px solid var(--hexfly-dash-line);
}

@media (min-width: 640px) {
	body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-card-footer,
	body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-card-footer {
		margin-left: 0;
		border-top: none;
		padding-top: 0;
	}
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-meta,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-meta {
	font-size: 0.78rem;
	color: var(--hexfly-dash-muted);
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-name,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-name {
	margin-bottom: 0.5rem !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1.35;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-name a,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-name a {
	color: var(--hexfly-dash-ink);
	text-decoration: none;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-name a:hover,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-name a:hover {
	color: var(--hexfly-dash-primary);
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-meta-icon,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-meta-icon {
	color: var(--hexfly-dash-primary);
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-card-footer .price,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-card-footer .price {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hexfly-dash-primary);
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-iconic-btn,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-iconic-btn {
	border-radius: 8px;
	border: 1px solid var(--hexfly-dash-line);
	transition: border-color 0.15s ease, color 0.15s ease;
}

body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-iconic-btn:hover,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-iconic-btn:hover {
	border-color: var(--hexfly-dash-primary);
	color: var(--hexfly-dash-primary);
}

/* Barra de progreso (cursos inscritos) */

body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-progress-bar,
body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-progress-content {
	font-size: 0.82rem;
}

body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-progress-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--hexfly-dash-line);
	overflow: hidden;
}

body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-progress-bar .tutor-progress-value {
	background: var(--hexfly-dash-primary);
	border-radius: inherit;
}

/* Botones primarios del dashboard */

body.hexfly-tutor-dashboard .tutor-dashboard-content .tutor-btn-primary {
	background: var(--hexfly-dash-primary) !important;
	border-color: var(--hexfly-dash-primary) !important;
	border-radius: 8px;
	font-weight: 600;
}

body.hexfly-tutor-dashboard .tutor-dashboard-content .tutor-btn-primary:hover {
	background: var(--hexfly-dash-primary-hover) !important;
	border-color: var(--hexfly-dash-primary-hover) !important;
}

body.hexfly-tutor-dashboard .tutor-dashboard-content .tutor-btn-outline-primary {
	color: var(--hexfly-dash-primary) !important;
	border-color: var(--hexfly-dash-line) !important;
	border-radius: 8px;
}

body.hexfly-tutor-dashboard .tutor-dashboard-content .tutor-btn-outline-primary:hover {
	border-color: var(--hexfly-dash-primary) !important;
	background: rgba(var(--hexfly-dash-primary-rgb), 0.06) !important;
}

@media (prefers-reduced-motion: reduce) {
	body.hexfly-tutor-dashboard .tutor-dashboard-my-courses .tutor-course-card,
	body.hexfly-tutor-dashboard .tutor-dashboard-enrolled-courses .tutor-course-card {
		transition: none;
	}
}
