/* ==========================================================================
   Quang Phan — Override CSS cho trang Student Profile (LearnPress)
   KHONG co file PHP override — trang nay dung dung markup mac dinh cua
   LearnPress (#learn-press-profile, .lp-profile-nav-tabs, .lp_profile_course_progress...),
   chi doi giao dien bang CSS, dung cach duongk.vn dang lam.
   Cac class name duoi day lay tu ban LearnPress dang chay tren duongk.vn —
   neu ban dung LearnPress ban khac, mo Inspect Element de doi chieu lai.
   ========================================================================== */

#learn-press-profile {
	--sp-navy: #002342;
	--sp-blue: #0073B9;
	--sp-blue-dark: #01598F;
	--sp-bg: #F5F7F8;
	--sp-white: #FFFFFF;
	--sp-text: #1F2426;
	--sp-muted: #5B6670;
	--sp-line: #E3E8EB;
	--sp-green: #2FBC97;
	--sp-gold: #F2C230;
	--sp-font: 'Plus Jakarta Sans', system-ui, sans-serif;

	max-width: 1200px;
	margin: 44px auto 90px;
	background: transparent;
	border: none;
	padding: 0 40px;
	box-shadow: none;
	color: var(--sp-text);
	font-family: var(--sp-font);
}

#learn-press-profile * { box-sizing: border-box; }
#learn-press-profile a { text-decoration: none; color: var(--sp-blue); }
#learn-press-profile img { max-width: 100%; display: block; }

#learn-press-profile .lp-user-cover-image_background { display: none !important; }

/* ---------- Layout tong: sidebar 280px + content ---------- */
#learn-press-profile .lp-content-area {
	display: grid;
	grid-template-columns: 280px 1fr;
	grid-template-areas:
		"header  header"
		"sidebar content";
	gap: 30px;
	align-items: start;
}
#learn-press-profile .wrapper-profile-header { grid-area: header; }
#learn-press-profile #profile-sidebar { grid-area: sidebar; width: 100%; border: none; }
#learn-press-profile #profile-content { grid-area: content; min-width: 0; width: 100%; }

/* ---------- Profile header: avatar + ten, dong khung card giong sidebar card cua card khac ---------- */
#learn-press-profile .lp-profile-content-area {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--sp-white);
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 35, 66, 0.08);
	padding: 24px 28px;
	margin-bottom: 20px;
}
#learn-press-profile .lp-profile-left { position: relative; flex-shrink: 0; }
#learn-press-profile .user-avatar img.avatar {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--sp-blue);
}
#learn-press-profile .lp-profile-username {
	font-weight: 800;
	font-size: 18px;
	color: var(--sp-navy);
	margin: 0;
}

/* ---------- Sidebar menu ---------- */
#learn-press-profile #profile-sidebar {
	background: var(--sp-white);
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 35, 66, 0.08);
	padding: 14px;
}
#learn-press-profile #profile-sidebar .lp-profile-nav-tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
#learn-press-profile #profile-sidebar .lp-profile-nav-tabs > li { border: none; border-radius: 10px; }
#learn-press-profile #profile-sidebar .lp-profile-nav-tabs > li > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 10px;
	color: var(--sp-muted);
	font-size: 14px;
	font-weight: 700;
	transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
#learn-press-profile .lp-profile-nav-tabs > li:not(.active):hover > a {
	background: var(--sp-bg);
	color: var(--sp-navy);
	padding-left: 20px;
}
#learn-press-profile #profile-sidebar .lp-profile-nav-tabs > li.active > a {
	color: var(--sp-blue);
	background: #EFF6FB;
	box-shadow: none;
}

/* Submenu Settings */
#learn-press-profile #profile-sidebar li.has-child { position: relative; }
#learn-press-profile #profile-sidebar .profile-tab-sections {
	background: var(--sp-bg);
	list-style: none;
	margin: 0 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .25s ease, opacity .2s ease, margin .25s ease;
	border-radius: 10px;
}
#learn-press-profile #profile-sidebar li.has-child:hover .profile-tab-sections {
	max-height: 240px;
	opacity: 1;
	margin: 2px 0 6px 20px;
}
#learn-press-profile #profile-sidebar .profile-tab-sections a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--sp-muted);
	font-size: 12.5px;
	font-weight: 600;
}
#learn-press-profile #profile-sidebar .profile-tab-sections a:hover,
#learn-press-profile #profile-sidebar .profile-tab-sections li.active > a {
	background: var(--sp-white);
	color: var(--sp-navy);
}

/* ---------- TAB Courses / My Courses — statistic-box ---------- */
#learn-press-profile #profile-content .dashboard-statistic__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 30px;
}
#learn-press-profile #profile-content .statistic-box {
	width: 100%;
	background: var(--sp-white);
	border: none;
	box-shadow: 0 2px 10px rgba(0, 35, 66, 0.08);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 14px;
}
#learn-press-profile #profile-content .statistic-box__icon,
#learn-press-profile #profile-content .statistic-box__icon span {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	background: #EFF6FB;
	color: var(--sp-blue);
}
#learn-press-profile #profile-content .statistic-box__text label {
	display: block;
	font-size: 13px;
	color: var(--sp-muted);
	font-weight: 600;
	margin-bottom: 2px;
}
#learn-press-profile #profile-content .statistic-box__text__number {
	font-weight: 800;
	font-size: 24px;
	color: var(--sp-navy);
}

/* Tabs filter (All / In Progress / Finished...) */
#learn-press-profile #profile-content .learn-press-tabs {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	border-bottom: 1px solid var(--sp-line);
	margin-bottom: 22px;
}
#learn-press-profile #profile-content .learn-press-filters {
	list-style: none;
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
#learn-press-profile #profile-content .learn-press-filters a {
	display: inline-block;
	padding-bottom: 12px;
	color: var(--sp-muted);
	font-size: 14px;
	font-weight: 700;
	position: relative;
}
#learn-press-profile #profile-content .learn-press-filters a.active { color: var(--sp-blue); }
#learn-press-profile #profile-content .learn-press-filters a.active::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 2px;
	background: var(--sp-blue);
}
#learn-press-profile #profile-content .learn-press-course-builder-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: var(--sp-blue);
	color: #fff;
	font-weight: 700;
	font-size: 12.5px;
}
#learn-press-profile #profile-content .learn-press-course-builder-link:hover { background: var(--sp-blue-dark); }

/* Trang thai rong ("No Course available!") */
#learn-press-profile #profile-content .lp-ajax-message {
	background: var(--sp-white);
	border: 1px dashed var(--sp-line);
	border-radius: 14px;
	padding: 30px;
	text-align: center;
	color: var(--sp-muted);
	font-size: 14px;
}

/* Skeleton loading */
#learn-press-profile #profile-content .lp-skeleton-animation { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#learn-press-profile #profile-content .lp-skeleton-animation li {
	background: linear-gradient(90deg, var(--sp-bg) 25%, #EFF6FB 50%, var(--sp-bg) 75%);
	background-size: 200% 100%;
	animation: sp-shimmer 1.4s infinite;
}
@keyframes sp-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- My Courses: bang khoa hoc dang hoc / da xong ---------- */
#learn-press-profile #profile-content .learn-press-course-tab__filter__content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#learn-press-profile #profile-content .lp_profile_course_progress {
	border: none;
	width: 100%;
	min-width: 640px;
	border-collapse: separate;
	border-spacing: 0 12px;
}
#learn-press-profile #profile-content .lp_profile_course_progress__header th {
	color: var(--sp-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 700;
	padding: 0 12px 8px;
	border: none;
}
#learn-press-profile #profile-content .lp_profile_course_progress__item {
	background: var(--sp-white);
	box-shadow: 0 2px 10px rgba(0, 35, 66, 0.06);
}
#learn-press-profile #profile-content .lp_profile_course_progress__item td {
	background: transparent;
	padding: 16px 12px;
	border: none;
	border-top: 1px solid var(--sp-line);
	border-bottom: 1px solid var(--sp-line);
	font-size: 14px;
	vertical-align: middle;
}
#learn-press-profile #profile-content .lp_profile_course_progress__item td:first-child { border-left: 1px solid var(--sp-line); border-radius: 12px 0 0 12px; }
#learn-press-profile #profile-content .lp_profile_course_progress__item td:last-child { border-right: 1px solid var(--sp-line); border-radius: 0 12px 12px 0; }
#learn-press-profile #profile-content .lp_profile_course_progress .course-img img {
	width: 70px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
}
#learn-press-profile #profile-content .lp_profile_course_progress .course-title {
	font-weight: 700;
	font-size: 14px;
	color: var(--sp-navy);
	line-height: 1.4;
}
#learn-press-profile #profile-content .lp_profile_course_progress__item td:nth-child(3) {
	color: var(--sp-navy);
	font-weight: 800;
	font-size: 15px;
}
#learn-press-profile #profile-content .lp-user-item.expire-date-time,
#learn-press-profile #profile-content .lp-user-item.end-date-time {
	color: var(--sp-muted);
	font-size: 13px;
}

/* Nut "Tiep tuc hoc / Xem lai" neu LP xuat ra dang <a class="lp-button"> */
#learn-press-profile #profile-content .lp-button,
#learn-press-profile #profile-content a.continue-course {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--sp-blue);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
}
#learn-press-profile #profile-content .lp-button:hover,
#learn-press-profile #profile-content a.continue-course:hover {
	background: var(--sp-blue-dark);
}

/* ---------- Orders ---------- */
#learn-press-profile #profile-content .profile-heading {
	font-weight: 800;
	font-size: 20px;
	color: var(--sp-navy);
	margin-bottom: 20px;
}
#learn-press-profile #profile-content .profile-orders { overflow-x: auto; }
#learn-press-profile #profile-content .profile-list-orders { width: 100%; min-width: 640px; border-collapse: collapse; }
#learn-press-profile #profile-content .profile-list-orders thead th {
	text-align: left;
	color: var(--sp-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 700;
	padding: 10px 12px;
	border-bottom: 1px solid var(--sp-line);
}
#learn-press-profile #profile-content .profile-list-orders tbody td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--sp-line);
	font-size: 14px;
	color: var(--sp-text);
}
#learn-press-profile #profile-content .lp-label {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
}
#learn-press-profile #profile-content .label-completed { background: #E1F5E6; color: #1F7A3D; }
#learn-press-profile #profile-content .label-pending { background: #FFF3D6; color: #A9760C; }

/* ---------- Pagination ---------- */
#learn-press-profile #profile-content .learn-press-pagination { display: flex; justify-content: flex-end; margin-top: 16px; }
#learn-press-profile #profile-content .page-numbers { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
#learn-press-profile #profile-content .page-numbers .page-numbers {
	display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
	border-radius: 8px; background: var(--sp-white); border: 1px solid var(--sp-line);
	color: var(--sp-muted); font-size: 13px; font-weight: 700;
}
#learn-press-profile #profile-content .page-numbers .current { background: var(--sp-blue); color: #fff; border-color: transparent; }

/* Recover order box */
#learn-press-profile #profile-content .profile-recover-order {
	margin-top: 30px; background: var(--sp-white); border: 1px solid var(--sp-line); border-radius: 14px; padding: 24px;
}
#learn-press-profile #profile-content .button-recover-order {
	padding: 11px 22px; border: none; border-radius: 999px; background: var(--sp-blue); color: #fff; font-weight: 700; font-size: 13px;
}
