/* SDN Student Portal — dark theme, gold/amber accents (matches main site) */
:root {
    --bg: #0c0d12;
    --bg-soft: #14151d;
    --card: #1a1c26;
    --border: #2c2f3d;
    --text: #e8e6df;
    --muted: #a5a294;
    --gold: #c9a227;
    --gold-bright: #e8c34a;
    --amber: #d98e2b;
    --green: #4caf7d;
    --red: #d9534f;
    --radius: 10px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.55;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }
a { color: var(--gold-bright); }
h1, h2, h3 { color: #fff; line-height: 1.25; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; border-bottom: 1px solid var(--border); padding-bottom: 6px; }

/* Header / footer */
.site-header { background: var(--bg-soft); border-bottom: 2px solid var(--gold); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 8px; }
.brand { color: #fff; text-decoration: none; font-size: 1.15rem; letter-spacing: .4px; }
.brand-mark { color: var(--gold); }
.main-nav a { color: var(--text); text-decoration: none; margin-left: 16px; }
.main-nav a:hover { color: var(--gold-bright); }
.nav-user { color: var(--muted); margin-left: 16px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); margin-top: 48px; padding: 20px 0 32px; font-size: .9rem; }
.footer-note { color: var(--amber); }

/* Flash messages */
.flash { border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; border: 1px solid var(--border); background: var(--card); }
.flash-success { border-color: var(--green); }
.flash-error { border-color: var(--red); }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.card.locked { opacity: .55; }
.hero { text-align: center; padding: 40px 16px 8px; }
.hero .tagline { color: var(--gold-bright); text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Forms */
label { display: block; margin: 14px 0 5px; color: var(--muted); font-size: .95rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select {
    width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-soft); color: var(--text); font-size: 1rem; font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--gold); }
.btn {
    display: inline-block; background: var(--gold); color: #141414; border: none; cursor: pointer;
    padding: 11px 22px; border-radius: 8px; font-size: 1rem; font-weight: bold; text-decoration: none;
    font-family: inherit; margin-top: 16px;
}
.btn:hover { background: var(--gold-bright); }
.btn-secondary { background: transparent; color: var(--gold-bright); border: 1px solid var(--gold); }
.btn-small { padding: 6px 14px; font-size: .9rem; margin-top: 0; }
.form-box { max-width: 480px; margin: 24px auto; }

/* Progress */
.progress-shell { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; height: 20px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--amber), var(--gold-bright)); height: 100%; }
.status-line { font-size: 1.05rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--gold); color: var(--gold-bright); }
.badge-green { border-color: var(--green); color: var(--green); }
.badge-red { border-color: var(--red); color: var(--red); }
.badge-muted { border-color: var(--border); color: var(--muted); }

/* Lessons & quizzes */
.lesson-list { list-style: none; padding: 0; margin: 8px 0; }
.lesson-list li { padding: 8px 0; border-bottom: 1px dotted var(--border); }
.lesson-list li:last-child { border-bottom: none; }
.done-mark { color: var(--green); font-weight: bold; }
.lock-note { color: var(--muted); font-style: italic; }
.quiz-option { display: block; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 8px 0; cursor: pointer; }
.quiz-option input { margin-right: 10px; }
.lesson-body { background: var(--bg-soft); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; white-space: pre-wrap; }

/* Tables (instructor) */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--gold-bright); }
tr:hover td { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
    h1 { font-size: 1.5rem; }
    .main-nav a, .nav-user { margin-left: 10px; }
    .card { padding: 14px; }
}
