:root{
  /* Modernized palette */
  --bg:#06050a; /* deep base */
  --panel:rgba(255,255,255,0.03); /* translucent panel overlay */
  --accent:#8b5cf6; /* brighter purple */
  --accent-2:#34d399; /* mint/teal accent */
  --muted:#94a3b8;
  --text:#eaf2ff;
  --danger:#ff7b7b;
}

*{box-sizing:border-box}
body{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;margin:0;background:linear-gradient(180deg,#05060a 0%, var(--bg) 100%);color:var(--text);-webkit-font-smoothing:antialiased}
header{padding:28px 32px;background:linear-gradient(90deg, rgba(124,58,237,0.06), rgba(6,182,212,0.03));border-bottom:1px solid rgba(255,255,255,0.03);backdrop-filter:blur(2px)}
main{display:flex;min-height:80vh}
.sidebar{width:300px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:20px;border-right:1px solid rgba(255,255,255,0.03);box-shadow:0 6px 18px rgba(2,6,23,0.6) inset}
.sidebar h2{margin-top:0;color:var(--accent)}
.sidebar ul{list-style:none;padding:0;margin:0}
.sidebar li{margin:12px 0}
.courseLink{display:block;padding:10px;border-radius:10px;color:var(--text);cursor:pointer;background:transparent;transition:background .18s ease,box-shadow .18s ease}
.courseLink:hover{background:rgba(255,255,255,0.02);box-shadow:0 6px 18px rgba(0,0,0,0.4)}
.courseLink.locked{color:rgba(255,255,255,0.35)}
.content{flex:1;padding:36px 28px}

/* Show sidebar on the left and center course content */
.sidebar{display:block;order:0;border-right:1px solid rgba(255,255,255,0.03)}
.content{order:1;max-width:980px;margin:0 auto}

.courseCard{margin-bottom:22px;padding:0;border-radius:14px;background:transparent}
.courseCard .innerCard{padding:14px;border-radius:12px;background:var(--panel);border:1px solid rgba(255,255,255,0.03);box-shadow:0 8px 24px rgba(2,6,23,0.6)}


/* Course header (purple) used as a dropdown trigger */
.courseHeader{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-radius:12px;background:linear-gradient(90deg,var(--accent),#9555ff);cursor:pointer;border:1px solid rgba(124,58,237,0.18);color:#fff;font-weight:700;margin-bottom:8px;box-shadow:0 6px 18px rgba(124,58,237,0.12);transition:box-shadow .18s ease,background .18s ease}
.courseHeader:hover{box-shadow:0 14px 30px rgba(124,58,237,0.12)}
.courseHeader .chev{font-size:14px;color:rgba(255,255,255,0.95);transition:transform .18s ease}
.courseHeader.open .chev{transform:rotate(180deg)}

/* Placeholder when a course has no modules */
.emptyPlaceholder{
  padding:18px 20px;
  color:var(--muted);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border:1px dashed rgba(255,255,255,0.03);
  margin:12px 0 8px 0;
  font-weight:600;
  text-align:center;
}

/* Module page header (top-left title + small subtitle) */
.modulePageHeader{background:transparent;padding:8px 0 12px 0;border-radius:0;box-shadow:none;margin-bottom:6px}
.modulePageHeader .modulePageTitle{display:flex;flex-direction:column;align-items:flex-start}
.modulePageHeader .courseTitle{font-size:20px;font-weight:800;color:var(--text);margin:0}
.modulePageHeader .moduleSubtitle{font-size:13px;color:var(--muted);margin-top:4px}
/* Ensure no chevron or dropdown styling appears on module pages */
.modulePageHeader{background:transparent !important;border:none !important;box-shadow:none !important}
.modulePageHeader .chev{display:none !important}

/* Slightly tweak badge for modern contrast */
.badge-quiz{background:rgba(255,255,255,0.03);color:#fff;padding:6px 10px;border-radius:999px;font-size:12px;margin-left:10px;font-weight:700;letter-spacing:0.2px}
.modulesList{padding:0;margin:0}
.moduleRow{list-style:none;margin-bottom:8px}
.moduleLink{color:var(--text);text-decoration:none;font-weight:600}
.backBtn{display:inline-block;width:100%;text-align:center;margin-top:18px;background:linear-gradient(90deg,var(--accent),#7a4df0);color:#fff;border:0;padding:12px 16px;border-radius:12px;font-weight:700;box-shadow:0 10px 30px rgba(124,58,237,0.14);cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.backBtn:hover{box-shadow:0 18px 42px rgba(124,58,237,0.24);background:linear-gradient(90deg,#9555ff,#7a4df0)}
.module{background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));border:1px solid rgba(255,255,255,0.03);border-radius:10px;margin-bottom:14px;overflow:hidden}
.moduleToggle{width:100%;text-align:left;padding:14px 18px;background:transparent;border:0;display:flex;justify-content:space-between;align-items:center;cursor:pointer}
.moduleBody{padding:14px 18px;border-top:1px solid rgba(255,255,255,0.02);display:none}
.module.open .moduleBody{display:block}
.moduleTitle{font-weight:700}
.moduleState{font-size:13px;color:var(--muted)}
.moduleText{margin-bottom:12px}
.moduleActions{display:flex;gap:8px}
button{background:linear-gradient(90deg,var(--accent),#8a4cf7);color:#fff;border:0;padding:10px 14px;border-radius:10px;cursor:pointer;box-shadow:0 8px 20px rgba(124,58,237,0.12);transition:box-shadow .12s ease,background .12s ease}
button:hover{box-shadow:0 14px 36px rgba(124,58,237,0.12)}
button.secondary{background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,0.03)}
.quiz{background:linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));padding:12px;border-radius:8px;border:1px dashed rgba(255,255,255,0.03)}
.quiz .question{margin-bottom:8px}
.choice{display:block;margin:6px 0;color:var(--text)}
.choice input{margin-right:8px}
.lockedOverlay{padding:12px;color:var(--danger)}
.small{font-size:13px;color:var(--muted)}
.badge-quiz{background:rgba(255,255,255,0.03);color:#fff;padding:6px 10px;border-radius:999px;font-size:12px;margin-left:10px;font-weight:700;letter-spacing:0.2px}
.moduleToggle .left{display:flex;align-items:center;gap:12px}
@media (max-width:800px){
  .sidebar{display:none}
  main{flex-direction:column}
}

/* Section / syllabus styles (Canvas-like) */
.section{background:transparent;border-radius:8px;margin-bottom:12px}
.sectionToggle{width:100%;text-align:left;padding:14px 16px;background:linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));border:1px solid rgba(255,255,255,0.02);display:flex;justify-content:space-between;align-items:center;cursor:pointer;border-radius:8px}
.sectionBody{padding:8px 12px 14px 12px;display:none}
.section.open .sectionBody{display:block}
.sectionList{list-style:none;padding:0;margin:8px 0 0 0}
.sectionList li{background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));padding:10px;border-radius:6px;border:1px solid rgba(255,255,255,0.02);margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}
.fileMeta{display:flex;flex-direction:column}
.fileTitle{font-weight:600}
.fileSub{font-size:12px;color:var(--muted)}
.status{font-weight:700;font-size:16px}
.status.check{color:#34d399} /* green */
.status.x{color:#ff6b6b} /* red */
.itemTag{font-size:11px;color:var(--accent);background:rgba(124,58,237,0.08);padding:2px 6px;border-radius:6px}

/* Resources list in the sidebar */
.resources{margin-top:18px;padding-top:12px;border-top:1px solid rgba(255,255,255,0.02)}
.resources h3{margin:0 0 8px 0;color:var(--accent-2);font-size:14px}
.resources ul{list-style:none;padding:0;margin:0}
.resources li{margin:8px 0}
.resource-link{color:var(--text);text-decoration:none}
.resource-link .phone{display:block;color:var(--muted);font-size:13px}
.resource-tag{font-size:11px;color:var(--accent);background:rgba(124,58,237,0.08);padding:2px 6px;border-radius:6px;margin-left:8px}
