/* ============================================================
   course.css — CYB 565 course page
   ============================================================ */

/* ── SHELL ── */
.course-shell {
  display: flex;
  height: calc(100vh - 54px);
  overflow: hidden;
  background: #080b14;
}

/* ── SIDENAV ── */
.course-sidenav {
  width: 240px;
  min-width: 240px;
  background: #0a0e1a;
  border-right: 1px solid #1e2a40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidenav-header {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid #1e2a40;
}

.sidenav-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00c8e8;
  margin-bottom: 5px;
}

.sidenav-title {
  font-size: 11px;
  color: #c8d4f0;
  line-height: 1.5;
  font-family: 'Sora', sans-serif;
  font-weight: 300;
}

.sidenav-overview-link {
  padding: 0.75rem 1rem 0.25rem;
}

.overview-link {
  display: block;
  font-size: 12px;
  color: #b0bcd8;
  background-color: rgb(27, 33, 42);
  border-color: rgb(29, 37, 44);
  border-style: solid;
  border-width: 1px;
  text-decoration: none;
  padding: .5rem 1.5rem .5rem .75rem;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  text-align: center;
  transition: color 0.15s, background 0.15s;
  margin-right: 1rem;
}

.overview-link:hover { color: #e0eeff; background: #0e1525; }
.overview-link.active { color: #e0eeff; background: #0e1525; }

.sidenav-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b0bcd8;
  padding: 0.6rem 1rem 0.3rem;
}

.week-list {
  list-style: none;
  padding: 0 0 1.5rem;
}

.week-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 1rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.week-link:hover { background: #0d1120; border-left-color: #2a3a58; }
.week-link.active { background: #0d1120; border-left-color: #00c8e8; }

.week-num {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #b0bcd8;
  min-width: 22px;
}

.week-link.active .week-num { color: #00c8e8; }

.week-label {
  font-size: 11px;
  color: #b0bcd8;
  font-family: 'Sora', sans-serif;
  line-height: 1.35;
  flex: 1;
}

.week-link:hover .week-label { color: #d8e4ff; }
.week-link.active .week-label { color: #f0f6ff; }

.week-badge {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.badge-done { background: #003828; color: #00ff9d; border: 1px solid #00a860; }
.badge-prog { background: #1a1d45; color: #b0b8ff; border: 1px solid #4050c0; }

/* ── MAIN ── */
.course-main {
  flex: 1;
  overflow-y: auto;
  background: #080b14;
}

/* ── OVERVIEW HERO ── */
.course-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem 1.75rem;
  border-bottom: 1px solid #1e2a40;
  overflow: hidden;
}

.course-hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: brightness(1.5)
}

.course-hero-geo .geo,
.course-hero-geo svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.course-hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00c8e8;
  margin-bottom: 8px;
}

.hero-h1 {
  font-size: 26px;
  font-weight: 300;
  color: #f0f6ff;
  font-family: 'Sora', sans-serif;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 12px;
  color: #b0bcd8;
  font-family: 'Sora', sans-serif;
}

/* ── OVERVIEW STATS ── */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid #1e2a40;
}

.stat-card {
  background: #0e1220;
  border: 1px solid #253040;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.stat-val {
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 4px;
  line-height: 1;
}

.stat-val.cyan   { color: #00c8e8; }
.stat-val.indigo { color: #909fff; }
.stat-val.amber  { color: #e07830; }
.stat-val.muted  { color: #b0bcd8; }

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0bcd8;
}

/* ── OVERVIEW BODY ── */
.overview-body {
  padding: 1.5rem 2.5rem 3rem;
}

.overview-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8d4f0;
  margin-bottom: 0.85rem;
  margin-top: 1.5rem;
}

.overview-section-label:first-child { margin-top: 0; }

/* Resume card */
.resume-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0e1220;
  border: 1px solid #253040;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.25rem;
}

.resume-week-tag {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #003d50;
  border: 1px solid #0088aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #00c8e8;
  flex-shrink: 0;
  font-weight: 500;
}

.resume-info { flex: 1; }

.resume-week-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #b0bcd8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.resume-title {
  font-size: 14px;
  color: #f0f6ff;
  font-family: 'Sora', sans-serif;
  margin-bottom: 3px;
  font-weight: 400;
}

.resume-sub {
  font-size: 11px;
  color: #b0bcd8;
  font-family: 'Sora', sans-serif;
}

/* Mini charts */
.mini-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0.25rem;
  align-items: stretch;
}

.mini-chart-card {
  background: #0e1220;
  border: 1px solid #253040;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.bar-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

.bar-scroll::-webkit-scrollbar { width: 6px; }
.bar-scroll::-webkit-scrollbar-track { background: #0a0e1a; border-radius: 3px; }
.bar-scroll::-webkit-scrollbar-thumb { background: #253040; border-radius: 3px; }
.bar-scroll::-webkit-scrollbar-thumb:hover { background: #4a6088; }

.mini-chart-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8d4f0;
  margin-bottom: 12px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bar-name {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #b0bcd8;
  min-width: 46px;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: #0a0e1a;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 6px;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.bar-pct {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #b0bcd8;
  min-width: 30px;
  text-align: right;
}

.spark-wrap {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.spark-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
}

/* All labs grid */
.all-labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.lab-grid-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0e1220;
  border: 1px solid #253040;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
  min-height: 100px;
}

.lab-grid-card:hover { border-color: #4a6088; transform: translateY(-2px); }
.lab-grid-card.card-done   { border-color: #00a860; }
.lab-grid-card.card-active { border-color: #4050c0; }

.lab-grid-week {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #b0bcd8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-grid-title {
  font-size: 12px;
  color: #d8e4ff;
  font-family: 'Sora', sans-serif;
  line-height: 1.4;
  flex: 1;
}

.lab-grid-open {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #b0bcd8;
  margin-top: auto;
}

/* ── WEEK DETAIL HEADER ── */
.lab-detail-header {
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid #1e2a40;
  overflow: hidden;
}

.lab-detail-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: brightness(1.5);
  opacity: 1;
}

.lab-detail-geo .geo,
.lab-detail-geo svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.lab-detail-header-content {
  position: relative;
  z-index: 1;
}

.lab-detail-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00c8e8;
  margin-bottom: 8px;
}

.lab-detail-h1 {
  font-size: 22px;
  font-weight: 300;
  color: #f0f6ff;
  font-family: 'Sora', sans-serif;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.lab-detail-desc {
  font-size: 13px;
  color: #b0bcd8;
  font-family: 'Sora', sans-serif;
  line-height: 1.6;
  max-width: 560px;
}

/* ── WEEK DETAIL BODY ── */
.lab-detail-body {
  padding: 1.5rem 2.5rem 3rem;
}

.attempt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.attempt-stat {
  background: #0e1220;
  border: 1px solid #253040;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.attempt-stat-val {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 300;
  color: #f0f6ff;
  margin-bottom: 4px;
  line-height: 1;
}

.attempt-stat-val.cyan     { color: #00c8e8 !important; }
.attempt-stat-val.indigo   { color: #909fff !important; }
.attempt-stat-val.lavender { color: #988df0 !important; }
.attempt-stat-val.rose     { color: #e060a0 !important; }

.attempt-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0bcd8;
}

/* Attempts table */
.attempts-table-wrap {
  margin-bottom: 1.5rem;
  border: 1px solid #253040;
  border-radius: 10px;
  overflow: hidden;
}

.attempts-table {
  width: 100%;
  border-collapse: collapse;
}

.attempts-table th {
  text-align: left;
  padding: 9px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8d4f0;
  background: #0a0d18;
  border-bottom: 1px solid #1e2a40;
  font-weight: 400;
}

.attempts-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #111828;
  color: #d8e4ff;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
}

.attempts-table tbody tr:last-child td { border-bottom: none; }
.attempts-table tbody tr:hover td { background: #0a0d18; }

.attempt-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #c8d4f0;
}

.status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.status-done { background: #001f14; color: #00ff9d; border: 1px solid #00d880; }
.status-prog { background: #0e0f28; color: #c0c8ff; border: 1px solid #7080ff; }

.score-val {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #7fffff;
  font-weight: 600;
}

.score-pending {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #b0bcd8;
  font-style: italic;
}

.dummy-row td { opacity: 0.65; }

.ts-time {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #8898b8;
  letter-spacing: 0.04em;
}

.resume-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #9aa5ef;
    color: #080b14;
    border: none;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.resume-btn:hover {
    background: #b0b8ff;
    color: #080b14;
}

/* Launch bar */
.launch-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #0e1220;
  border: 1px solid #253040;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.launch-bar-text { flex: 1; }

.launch-bar-title {
  font-size: 14px;
  color: #f0f6ff;
  font-family: 'Sora', sans-serif;
  margin-bottom: 4px;
  font-weight: 400;
}

.launch-bar-sub {
  font-size: 11px;
  color: #b0bcd8;
  font-family: 'Sora', sans-serif;
}

/* Buttons */
.btn-cyan {
  background: #00c8e8;
  color: #080b14;
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-cyan:hover { background: #33d4f0; }


/* ============================================================
   WEEK 4 — PAPER ASSIGNMENT VIEW
   Append these rules to course.css
   ============================================================ */

.assignment-card {
    background: #0d1829;
    border: 1px solid #1e2a40;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
}

.assignment-section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00c8e8;
    margin-bottom: 1rem;
}

.assignment-body {
    color: #b0bcd4;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.assignment-body:last-child { margin-bottom: 0; }

.assignment-req-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.assignment-req-list li {
    color: #b0bcd4;
    font-size: 0.95rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.assignment-req-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #00c8e8;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}

.prompt-block {
    border-left: 2px solid #1e2a40;
    padding: 0.85rem 0 0.85rem 1.25rem;
    margin: 1.25rem 0;
}

.prompt-block:first-of-type { margin-top: 1.5rem; }
.prompt-block:last-of-type { margin-bottom: 0; }

.prompt-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #909fff;
    margin-bottom: 0.6rem;
}

.prompt-intro {
    color: #b0bcd4;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.prompt-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.prompt-list li {
    color: #8a9bb8;
    font-size: 0.92rem;
    line-height: 1.65;
}

.assignment-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #07101f;
    border: 1px solid #1e2a40;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-top: 0.5rem;
}

.assignment-submit-title {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #e8eaf6;
    margin-bottom: 0.3rem;
}

.assignment-submit-sub {
    font-size: 0.88rem;
    color: #5a6a85;
    line-height: 1.5;
}
