* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fafbfc;
    color: #222;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
header {
    background: #fff;
    color: #222;
    padding: 24px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #ececec;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

h1 {
    font-size: 1.7em;
    font-weight: 700;
    color: #8a0057;
    background: none;
    -webkit-text-fill-color: unset;
}

.student-info h2 {
    font-size: 1em;
    font-weight: 500;
    color: #555;
}

.stats {
    display: flex;
    gap: 24px;
    background: none;
    padding: 0;
    border-radius: 0;
    color: #8a0057;
}

.stat-item {
    text-align: left;
    padding: 0 10px;
    border: none;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 2px;
    color: #8a0057;
}

.stat-label {
    font-size: 0.95em;
    color: #888;
}

/* Dashboard layout */
.dashboard-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Section */
.section {
    background: #fff;
    padding: 18px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid #ececec;
    box-shadow: none;
    transition: none;
}

.section h2 {
    color: #8a0057;
    margin-bottom: 12px;
    font-size: 1.1em;
    border-bottom: none;
    padding-bottom: 0;
    font-weight: 600;
}

/* Blokken */
.blokken-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blok {
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.blok-header {
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ececec;
}

.blok-header h3 {
    margin: 0;
    color: #8a0057;
    font-size: 1em;
    font-weight: 600;
}

.blok-content {
    padding: 0;
}

.module {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f4;
    background: #fff;
    cursor: default;
    font-size: 1em;
}

.module:last-child {
    border-bottom: none;
}

.module-code {
    font-weight: 600;
    color: #8a0057;
    font-size: 0.97em;
    margin-right: 8px;
}

.module-naam {
    color: #222;
    margin: 0 8px;
    font-size: 1em;
    flex: 1;
}

.module-punten {
    color: #888;
    font-size: 0.97em;
    font-weight: 500;
    margin-right: 8px;
}

.module-status {
    font-size: 1.1em;
    margin-left: 8px;
}

.cijfer-badge {
    background: #8a0057;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 8px;
}

/* Vakken */
.vakken-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vak {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 18px 18px 0;
    border: none;
    border-radius: 14px;
    background: #f6fff9;
    position: relative;
    margin-bottom: 18px;
    box-shadow: none;
    border-left: 5px solid #00b86b;
}

.vak.niet-behaald {
    border-left: 5px solid #ff9800;
    background: #fff8e1;
}

.vak-header {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-left: 18px;
}

.vak-code {
    font-weight: 700;
    color: #8a0057;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.vak-naam {
    color: #222;
    font-size: 1em;
    margin-bottom: 2px;
    font-weight: 400;
}

.vak-punten {
    color: #888;
    font-size: 0.97em;
    font-weight: 500;
    margin-bottom: 2px;
}

.vak-status {
    font-size: 1.2em;
    margin-left: 0;
    color: #746969f0;
}

.cijfer-badge {
    background: #8a0057;
    color: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    margin-left: 10px;
    margin-top: 2px;
    display: inline-block;
}

/* Toetsen */
.toetsen-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    flex: 1;
}

.toets-kaart {
    background: #f6fff9;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d7f5e7;
    box-shadow: none;
    min-width: 220px;
}

.toets-cijfer {
    background: #8a0057;
    color: #fff;
    border-radius: 10px;
    padding: 2px 10px;
    font-weight: 700;
    font-size: 1em;
    margin-right: 6px;
    min-width: 38px;
    text-align: center;
}

.toets-naam {
    color: #222;
    font-size: 1em;
    font-weight: 500;
    margin-right: 8px;
    flex: 1;
}

.toets-weging, .toets-datum {
    color: #888;
    font-size: 0.97em;
    margin-left: 10px;
    background: #f2f2f2;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 400;
}

/* Sidebar */
.stats-box {
    text-align: left;
    background: #fff;
    border-radius: 8px;
    padding: 12px 10px;
    border: 1px solid #ececec;
}

.progress-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #8a0057;
    margin-bottom: 8px;
    position: static;
    transform: none;
}

.stats-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-detail {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: none;
    font-weight: 500;
    font-size: 0.98em;
}

.stat-detail span:last-child {
    color: #8a0057;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-content {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    .header-content {
        gap: 10px;
    }
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    .dashboard-content {
        flex-direction: column;
        gap: 12px;
    }
    .sidebar {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        gap: 10px;
    }
    .blok-header, .module, .vak, .vak-header {
        padding: 10px 8px;
        font-size: 0.98em;
    }
    .vak {
        flex-direction: column;
        gap: 10px;
        padding: 12px 6px 12px 0;
    }
    .vak-header {
        min-width: 0;
        padding-left: 10px;
    }
    .toetsen-container {
        min-width: 0;
    }
}