@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg:              #f0f4ff;
    --bg-card:         #ffffff;
    --bg-nav:          #1e3a8a;
    --border:          #dbe4f7;
    --border-hover:    #93aee8;
    --accent:          #1d4ed8;
    --accent-light:    #eff4ff;
    --accent-hover:    #1e40af;
    --text:            #1e293b;
    --text-muted:      #475569;
    --text-dim:        #94a3b8;
    --header-from:     #1e3a8a;
    --header-to:       #1e40af;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; }

/* ─── HEADER ──────────────────────────────────────── */
header {
    background: linear-gradient(160deg, var(--header-from) 0%, var(--header-to) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
    pointer-events: none;
}
header h1 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.4rem;
    position: relative;
}
header p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    font-family: 'Fira Code', monospace;
    position: relative;
}

/* ─── NAV ──────────────────────────────────────────── */
nav {
    background: var(--bg-nav);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
}
nav a {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.18s;
    letter-spacing: 0.02em;
}
nav a:hover, nav a:focus {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
}

/* ─── MAIN ─────────────────────────────────────────── */
main {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* ─── GENERIC SECTION (labo detail pages) ───────────── */
section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(30,58,138,0.06);
}
section h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}
section p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.75;
}
section p:last-child { margin-bottom: 0; }
section p strong { color: var(--text); font-weight: 600; }

/* ─── LABO DETAIL: .labo-btn & .labo-opdrachten ─────── */
.labo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #fff;
    padding: 0.38rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.18s;
    white-space: nowrap;
}
.labo-btn:hover, .labo-btn:focus {
    background: var(--accent-hover);
    color: #fff;
}
.labo-btn.verslag-btn {
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    padding: 0.55rem 1.1rem;
}

.labo-opdrachten {
    list-style: none;
    padding: 0;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.labo-opdrachten li {
    font-size: 0.855rem;
    color: var(--text-muted);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.65;
}
.labo-opdrachten li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
    top: 0.05em;
}

/* ─── LABO DETAIL: .labo-bestanden (nested files) ───── */
.labo-bestanden {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0.1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.labo-opdrachten .labo-bestanden li {
    font-size: 0.76rem;
    padding-left: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}
.labo-opdrachten .labo-bestanden li::before {
    content: '◦';
    color: var(--text-dim);
    font-size: 0.8rem;
    top: 0.05em;
}
.labo-bestanden a {
    font-family: 'Fira Code', monospace;
    font-size: 0.74rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.labo-bestanden a:hover { color: var(--accent); }
.labo-bestanden a.bestand-css::before,
.labo-bestanden a.bestand-js::before {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.08rem 0.3rem;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}
.labo-bestanden a.bestand-css::before {
    content: 'CSS';
    background: #ede9fe;
    color: #5b21b6;
}
.labo-bestanden a.bestand-js::before {
    content: 'JS';
    background: #dcfce7;
    color: #166534;
}

/* ─── LABO TABLE (fallback for detail pages) ────────── */
.labo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
.labo-table tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.labo-table tr:last-child { border-bottom: none; }
.labo-table tr:hover { background: var(--accent-light); }
.labo-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.855rem;
    vertical-align: middle;
    color: var(--text-muted);
}
.labo-table td:last-child { text-align: right; width: 130px; }

/* ─── HOME HERO ─────────────────────────────────────── */
.home-hero {
    background: linear-gradient(160deg, var(--header-from) 0%, var(--header-to) 100%);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 90% at 0% 50%, black, transparent);
    pointer-events: none;
}
.home-hero-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
    font-family: 'Fira Code', monospace;
}
.home-hero h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.6rem;
}
.home-hero p {
    color: rgba(255,255,255,0.72);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    line-height: 1.7;
}
.home-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* White solid button (on blue hero) */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 1.2rem;
    border-radius: 7px;
    border: none;
    transition: all 0.18s;
    font-family: 'Inter', sans-serif;
}
.btn-hero-primary:hover { background: #e8eeff; color: var(--accent-hover); }

/* White outlined button (on blue hero) */
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 7px;
    border: 1.5px solid rgba(255,255,255,0.55);
    transition: all 0.18s;
    font-family: 'Inter', sans-serif;
}
.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.85);
    color: #fff;
}

/* ─── HOME INFO GRID ────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 1px 4px rgba(30,58,138,0.05);
}
.info-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-family: 'Fira Code', monospace;
}
.info-card-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}
.info-card-sub { font-size: 0.775rem; color: var(--text-muted); }

/* ─── HOME TOPICS CARD ──────────────────────────────── */
.topics-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(30,58,138,0.05);
}
.topics-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topics-card h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--accent);
    border-radius: 2px;
}
.topics-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.topics-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.845rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.topic-num {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 1.4rem;
    padding-top: 0.07rem;
}

/* ─── HOME EVAL CARD ────────────────────────────────── */
.eval-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(30,58,138,0.05);
}
.eval-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.eval-card h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--accent);
    border-radius: 2px;
}
.eval-bars { display: flex; flex-direction: column; gap: 0.8rem; }
.eval-row  { display: flex; align-items: center; gap: 0.75rem; }
.eval-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 200px;
}
.eval-track {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}
.eval-fill { height: 100%; border-radius: 99px; }
.fill-jan  { background: #60a5fa; width: 40%; }
.fill-jun  { background: #818cf8; width: 45%; }
.fill-perm { background: #34d399; width: 15%; }
.eval-pct {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 2.5rem;
    text-align: right;
}

/* ─── LATEST LAB BAR (home + labos) ─────────────────── */
.latest-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(30,58,138,0.05);
    color: inherit;
    transition: all 0.18s;
}
.latest-bar:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(29,78,216,0.1);
}
.latest-bar-left { display: flex; align-items: center; gap: 1rem; }
.latest-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--border-hover);
    font-family: 'Fira Code', monospace;
    line-height: 1;
}
.latest-info-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.2rem;
}
.latest-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.latest-info-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ─── SHARED BADGES ─────────────────────────────────── */
.badge-new {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: #dbeafe;
    color: #1e40af;
    letter-spacing: 0.04em;
}
.badge-latest {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #dbeafe;
    color: #1e40af;
}

/* ─── LABOS PAGE: GROUP HEADERS ─────────────────────── */
.labo-group { margin-bottom: 0.5rem; }
.labo-group-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 80px;
}
.group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-html { background: #f59e0b; }
.dot-css  { background: #8b5cf6; }
.dot-js   { background: #22c55e; }

/* ─── LABOS PAGE: CARD ROWS ─────────────────────────── */
.labo-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.labo-card-row {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    gap: 1rem;
    transition: all 0.18s;
    box-shadow: 0 1px 3px rgba(30,58,138,0.04);
    color: inherit;
}
.labo-card-row:hover {
    border-color: var(--border-hover);
    box-shadow: 0 3px 12px rgba(29,78,216,0.09);
    transform: translateX(3px);
}
.labo-card-row.is-latest {
    border-color: var(--border-hover);
    background: #f0f6ff;
}
.labo-card-num {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
    min-width: 2.2rem;
}
.labo-card-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}
.labo-card-row.is-latest .labo-card-title { font-weight: 600; }
.labo-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.tag-html { background: #fef3c7; color: #92400e; }
.tag-css  { background: #ede9fe; color: #5b21b6; }
.tag-js   { background: #dcfce7; color: #166534; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    text-align: center;
    margin-top: auto;
    background: var(--bg-card);
}
footer p {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.03em;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
    header  { padding: 2.5rem 1.25rem 2rem; }
    header h1 { font-size: 1.3rem; }
    main    { margin: 1.5rem auto; padding: 0 1rem; }
    section { padding: 1.5rem 1.25rem; }
    .info-grid { grid-template-columns: 1fr; }
    .eval-label { min-width: 130px; font-size: 0.72rem; }
    .labo-table td:last-child { width: 110px; }
}