/* ==========================================================================
   eLearn LMS — Student Portal (scoped to .elp)
   Brand: CPD certificate purple (#5E3B8F / #8A6CB4 / #C9B8E2 / grey #8B8A8F), Poppins
   ========================================================================== */
.elp{
	--elp-1:#4A2C73;      /* primary dark  */
	--elp-2:#5E3B8F;      /* primary       */
	--elp-3:#2E1F47;
	--elp-4:#8A6CB4;
	--elp-grad:linear-gradient(95deg,#4A2C73 0%,#5E3B8F 55%,#8A6CB4 100%);
	--elp-tint:#F1ECF8;
	--elp-tint2:#DCD0EE;
	--elp-ink:#1F1A2B;
	--elp-body:#4A4553;
	--elp-muted:#6E6A78;
	--elp-line:#E4E0EA;
	--elp-bg:#F7F5FA;
	--elp-white:#fff;
	--elp-radius:16px;

	font-family:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
	color:var(--elp-body);
	background:var(--elp-bg);
	display:grid;
	grid-template-columns:264px 1fr;
	min-height:82vh;
	border-radius:var(--elp-radius);
	overflow:hidden;
	border:1px solid var(--elp-line);
}
.elp *{box-sizing:border-box}
/* clean full-screen canvas (theme-free portal page) */
body.elearn-portal-canvas{margin:0;padding:0;background:var(--elp-bg,#F7F5FA)}
body.elearn-portal-canvas .elp{border:0;border-radius:0;min-height:100vh}
body.elearn-portal-canvas .elp-auth,body.elearn-portal-canvas .elrn-login{min-height:100vh}
.elp h1,.elp h2,.elp h3{color:var(--elp-ink);margin:0;font-weight:600;letter-spacing:-.01em}
.elp a{text-decoration:none;color:inherit}
.elp .elp-ic{width:20px;height:20px;flex:0 0 auto}

/* ---- Sidebar ------------------------------------------------------------ */
.elp-side{
	background:var(--elp-white);
	border-right:1px solid var(--elp-line);
	display:flex;flex-direction:column;
	padding:22px 16px;
}
.elp-brand{display:flex;align-items:center;gap:11px;padding:6px 8px 20px}
.elp-brand-mark{
	width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
	background:var(--elp-grad);color:#fff;font-weight:700;font-size:14px;letter-spacing:.02em;
}
.elp-brand-name{font-weight:600;font-size:15px;color:var(--elp-ink)}

.elp-nav{display:flex;flex-direction:column;gap:4px}
.elp-nav-item{
	display:flex;align-items:center;gap:12px;
	padding:11px 12px;border-radius:11px;
	font-size:14.5px;font-weight:500;color:var(--elp-body);
	transition:background .15s ease,color .15s ease;
	cursor:pointer;position:relative;
}
.elp-nav-item span{flex:1}
.elp-nav-item:hover{background:var(--elp-tint);color:var(--elp-1)}
.elp-nav-item.is-active{background:var(--elp-grad);color:#fff;box-shadow:0 12px 24px -14px rgba(94,59,143,.8)}
.elp-nav-item.is-active .elp-ic{color:#fff}
.elp-count{
	font-style:normal;font-size:11.5px;font-weight:600;
	background:var(--elp-tint2);color:var(--elp-1);
	padding:1px 8px;border-radius:100px;
}
.elp-nav-item.is-active .elp-count{background:rgba(255,255,255,.25);color:#fff}
.elp-nav-item.is-locked{color:var(--elp-muted);cursor:not-allowed}
.elp-nav-item.is-locked:hover{background:transparent;color:var(--elp-muted)}
.elp-nav-item.is-locked .elp-ic{opacity:.7}
.elp-nav-item.is-locked svg:last-child{width:15px;height:15px}

.elp-side-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--elp-line);display:flex;flex-direction:column;gap:4px}
.elp-logout:hover{background:#FCEBEC;color:#C0344B}
.elp-logout:hover .elp-ic{color:#C0344B}

/* ---- Main --------------------------------------------------------------- */
.elp-main{display:flex;flex-direction:column;min-width:0}
.elp-top{
	display:flex;align-items:center;justify-content:space-between;gap:16px;
	padding:22px 30px;background:var(--elp-white);border-bottom:1px solid var(--elp-line);
}
.elp-title{font-size:22px;font-weight:600}
.elp-user{display:flex;align-items:center;gap:10px}
.elp-avatar{
	width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
	background:var(--elp-tint);color:var(--elp-1);font-weight:600;font-size:13px;
}
.elp-uname{font-size:14px;font-weight:500;color:var(--elp-ink)}

.elp-body{padding:28px 30px;flex:1}
.elp-hello{margin:0 0 20px;font-size:15px;color:var(--elp-muted)}

/* ---- Stat cards --------------------------------------------------------- */
.elp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.elp-stat{
	background:var(--elp-white);border:1px solid var(--elp-line);border-radius:var(--elp-radius);
	padding:20px;display:flex;align-items:center;gap:14px;
	transition:transform .16s ease,box-shadow .16s ease;
}
.elp-stat:hover{transform:translateY(-3px);box-shadow:0 22px 40px -28px rgba(94,59,143,.5)}
.elp-stat-ic{
	width:46px;height:46px;border-radius:12px;flex:0 0 auto;display:grid;place-items:center;
	background:var(--elp-tint);color:var(--elp-2);
}
.elp-stat-ic .elp-ic{width:22px;height:22px}
.elp-stat-label{display:block;font-size:12.5px;color:var(--elp-muted);font-weight:500}
.elp-stat-value{display:block;font-size:26px;font-weight:700;color:var(--elp-ink);line-height:1.1;letter-spacing:-.02em}

/* ---- Panels ------------------------------------------------------------- */
.elp-panel{
	background:var(--elp-white);border:1px solid var(--elp-line);border-radius:var(--elp-radius);
	padding:24px 26px;margin-bottom:20px;
}
.elp-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.elp-panel-head h2{font-size:18px}
.elp-link,.elp-panel-head .elp-link{font-size:13.5px;font-weight:600;color:var(--elp-2)}
.elp-link:hover{color:var(--elp-1)}

.elp-empty{padding:26px;text-align:center;color:var(--elp-muted);background:var(--elp-bg);border-radius:12px}

/* ---- Course rows -------------------------------------------------------- */
.elp-course-list{display:flex;flex-direction:column;gap:12px}
.elp-course{
	display:flex;align-items:center;gap:18px;
	padding:16px 18px;border:1px solid var(--elp-line);border-radius:13px;background:var(--elp-white);
	transition:border-color .15s ease,box-shadow .15s ease;
}
.elp-course:hover{border-color:var(--elp-tint2);box-shadow:0 16px 30px -26px rgba(94,59,143,.55)}
.elp-course-main{flex:1;min-width:0}
.elp-course-main h3{font-size:15.5px;font-weight:600;margin:0 0 10px}
.elp-course-main h3 a:hover{color:var(--elp-2)}
.elp-bar{height:8px;border-radius:100px;background:var(--elp-tint2);overflow:hidden}
.elp-bar span{display:block;height:100%;border-radius:100px;background:var(--elp-grad)}
.elp-course-main small{display:block;margin-top:8px;font-size:12.5px;color:var(--elp-muted)}
.elp-course-act{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.elp-pill-done{font-size:12px;font-weight:600;color:#5E3B8F;background:#F1ECF8;padding:5px 12px;border-radius:100px}

/* ---- Certificates ------------------------------------------------------- */
.elp-cert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.elp-cert-card{
	border:1px solid var(--elp-line);border-radius:14px;padding:24px;text-align:center;background:var(--elp-white);
	transition:transform .16s ease,box-shadow .16s ease;
}
.elp-cert-card:hover{transform:translateY(-3px);box-shadow:0 22px 40px -28px rgba(94,59,143,.5)}
.elp-cert-ic{width:54px;height:54px;border-radius:14px;display:inline-grid;place-items:center;background:var(--elp-tint);color:var(--elp-2);margin-bottom:12px}
.elp-cert-ic .elp-ic{width:28px;height:28px}
.elp-cert-card h3{font-size:15.5px;margin-bottom:4px}
.elp-cert-card p{font-size:12.5px;color:var(--elp-muted);margin:0 0 16px}

/* ---- Support / Settings ------------------------------------------------- */
.elp-support-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.elp-support-item{border:1px solid var(--elp-line);border-radius:13px;padding:20px}
.elp-support-ic{width:44px;height:44px;border-radius:12px;display:inline-grid;place-items:center;background:var(--elp-tint);color:var(--elp-2);margin-bottom:12px}
.elp-support-item h3{font-size:15px;margin-bottom:6px}
.elp-support-item a{color:var(--elp-2);font-weight:500}
.elp-support-note{font-size:12.5px;color:var(--elp-muted);margin-top:6px}
.elp-support p{line-height:1.6}

.elp-set-row{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--elp-line);font-size:14.5px}
.elp-set-row span{color:var(--elp-muted)}
.elp-set-row strong{color:var(--elp-ink);font-weight:600}
.elp-set-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}

/* ---- Buttons ------------------------------------------------------------ */
.elp .elp-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:.5em;
	background:var(--elp-grad);color:#fff !important;border:0;border-radius:100px;
	padding:11px 22px;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;
	transition:transform .14s ease,box-shadow .14s ease;line-height:1;text-decoration:none;
}
.elp .elp-btn:hover,.elp .elp-btn:visited,.elp .elp-btn:focus{transform:translateY(-2px);box-shadow:0 16px 28px -16px rgba(94,59,143,.8);color:#fff !important}
.elp .elp-btn-sm{padding:9px 16px;font-size:13px}
.elp .elp-btn-ghost{background:transparent;color:var(--elp-1) !important;border:1.5px solid var(--elp-tint2)}
.elp .elp-btn-ghost:hover{background:var(--elp-tint);color:var(--elp-1) !important;box-shadow:none;transform:translateY(-2px)}
.elp .elp-btn[disabled],.elp .elp-btn.is-disabled{opacity:.5;pointer-events:none;box-shadow:none;transform:none}

/* settings form */
.elp-form{max-width:520px}
.elp-field{margin-bottom:16px}
.elp-field label{display:block;font-size:12.5px;font-weight:600;color:var(--elp-muted);margin-bottom:6px}
.elp-input{width:100%;padding:12px 14px;border:1.5px solid var(--elp-line);border-radius:11px;font-size:14.5px;font-family:inherit;color:var(--elp-ink);background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.elp-input:focus{outline:none;border-color:var(--elp-2);box-shadow:0 0 0 3px rgba(94,59,143,.15)}
.elp-input:disabled{background:var(--elp-bg);color:var(--elp-muted)}
.elp-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.elp-form-actions{display:flex;gap:12px;align-items:center;margin-top:8px;flex-wrap:wrap}
.elp-form-hint{font-size:12.5px;color:var(--elp-muted);margin:10px 0 0}
.elp-notice{border-radius:11px;padding:13px 16px;font-size:14px;margin-bottom:18px;line-height:1.5}
.elp-notice.ok{background:#F1ECF8;border:1px solid #DCD0EE;color:#4A2C73}
.elp-notice.warn{background:#FFF6E6;border:1px solid #F6D68A;color:#8A5A00}
.elp-notice.err{background:#FDECEE;border:1px solid #F5C2C8;color:#B0324B}
.elp-pill-dl{font-size:12px;font-weight:600;color:var(--elp-muted);background:var(--elp-bg);border:1px solid var(--elp-line);padding:5px 12px;border-radius:100px;display:inline-flex;align-items:center;gap:6px}

/* ---- Guest -------------------------------------------------------------- */
.elp-guest{display:block;background:transparent;border:0;min-height:auto}
.elp-guest-card{max-width:420px;margin:40px auto;text-align:center;background:var(--elp-white);border:1px solid var(--elp-line);border-radius:var(--elp-radius);padding:40px 32px}
.elp-guest-card h2{font-size:20px;margin-bottom:10px}
.elp-guest-card p{color:var(--elp-muted);margin-bottom:22px}

/* ---- Responsive --------------------------------------------------------- */
/* hamburger toggle (mobile only) */
.elp-side-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.elp-burger{display:none;flex:0 0 auto;width:42px;height:42px;border:1px solid var(--elp-line);border-radius:11px;background:#fff;color:var(--elp-ink);cursor:pointer;align-items:center;justify-content:center}
.elp-burger svg{width:22px;height:22px}

@media(max-width:900px){
	.elp{grid-template-columns:1fr}
	.elp-side{display:block;padding:12px 16px;border-right:0;border-bottom:1px solid var(--elp-line)}
	.elp-brand{padding:0}
	.elp-burger{display:inline-flex}
	.elp-nav,.elp-side-foot{display:none}
	.elp.nav-open .elp-nav{display:flex;flex-direction:column;gap:4px;margin-top:12px}
	.elp.nav-open .elp-side-foot{display:flex;flex-direction:column;gap:4px;margin-top:8px;border-top:1px solid var(--elp-line);padding-top:10px}
	.elp-nav-item{padding:12px 14px}
	.elp-stats{grid-template-columns:repeat(2,1fr)}
	.elp-cert-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
	.elp-stats,.elp-cert-grid,.elp-support-grid{grid-template-columns:1fr}
	.elp-top,.elp-body{padding-left:18px;padding-right:18px}
	.elp-course{flex-direction:column;align-items:stretch;gap:12px}
}

/* Not-enrolled guide (v1.15.1) */
.elp-empty-guide{text-align:left;padding:28px 30px;background:var(--elp-white);border:1px dashed var(--elp-tint2)}
.elp-empty-ic{width:48px;height:48px;border-radius:14px;display:inline-grid;place-items:center;background:var(--elp-tint);color:var(--elp-2);margin-bottom:10px}
.elp-empty-ic .elp-ic{width:24px;height:24px}
.elp-empty-guide h3{margin:0 0 6px;font-size:18px;color:var(--elp-ink)}
.elp-empty-guide>p{margin:0 0 16px;color:var(--elp-body)}
.elp-steps{list-style:none;counter-reset:s;margin:0 0 20px;padding:0;display:grid;gap:10px}
.elp-steps li{counter-increment:s;position:relative;padding:12px 14px 12px 52px;background:var(--elp-bg);border-radius:12px;display:flex;flex-direction:column;gap:2px}
.elp-steps li::before{content:counter(s);position:absolute;left:14px;top:12px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--elp-grad);color:#fff;font-weight:700;font-size:13px}
.elp-steps strong{color:var(--elp-ink);font-size:14.5px}
.elp-steps span{color:var(--elp-body);font-size:13.5px;line-height:1.5}
.elp-empty-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.elp-empty-help{margin:0;font-size:13px;color:var(--elp-muted)}
.elp-empty-help a{color:var(--elp-2);font-weight:600}
@media (max-width:640px){.elp-empty-guide{padding:20px 16px}.elp-steps li{padding-left:46px}.elp-steps li::before{left:12px}}
