*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f5f9 url('/assets/cow_bko.png') no-repeat right 40px top 120px;
    background-size: 220px auto;
    color: #1f2933;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #071C2F;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.06em;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.8;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s, transform 0.1s;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.page-main {
    padding: 24px 0 40px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e5f4ff;
    color: #05509b;
    margin-left: 6px;
}

.badge-success {
    background: #e0f7ec;
    color: #0b6b3a;
}

.badge-warning {
    background: #fff4e5;
    color: #8a4b0b;
}

/* Buttons */
.btn {
    display: inline-block;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0b8bd4;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 4px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn:hover {
    background: #096ba4;
    box-shadow: 0 3px 8px rgba(15,23,42,0.24);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #4b5563;
}

.btn-secondary:hover {
    background: #374151;
}

.btn-ghost {
    background: transparent;
    color: #0b8bd4;
    border: 1px solid rgba(11,139,212,0.4);
}

.btn-ghost:hover {
    background: rgba(11,139,212,0.06);
}

/* Forms */
form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 4px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd2e1;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #0b8bd4;
    box-shadow: 0 0 0 2px rgba(11,139,212,0.16);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row > div {
    flex: 1;
}

.error {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.success {
    background: #dcfce7;
    color: #166534;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.table th,
.table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table th {
    font-weight: 600;
    background: #f9fafb;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    height: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0b8bd4, #22c55e);
}

/* Quiz */
.quiz-question {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

.quiz-question h4 {
    margin: 0 0 8px;
    font-size: 15px;
}

.quiz-options label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 0 20px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 20px;
}

/* Utility */
.text-muted {
    color: #6b7280;
    font-size: 13px;
}

.text-right {
    text-align: right;
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .main-nav a {
        margin-left: 0;
        margin-right: 8px;
        display: inline-block;
    }
    .form-row {
        flex-direction: column;
    }
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 52px;
    width: auto;
}

/* tekst in 'tabel'-achtige kaart */
.home-intro-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.home-intro-row {
    display: table-row;
}

.home-intro-cell {
    display: table-cell;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}


/* Horizontale moduleknoppen zoals BKO-traject */
.module-nav {
    margin: 18px 0 22px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.module-nav::-webkit-scrollbar {
    height: 6px;
}
.module-nav::-webkit-scrollbar-thumb {
    background: rgba(15,23,42,0.3);
    border-radius: 999px;
}

.module-pill {
    flex: 0 0 auto;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e05638, #14466e);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(15,23,42,0.35);
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.module-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(15,23,42,0.45);
    opacity: 0.97;
}

@media (max-width: 640px) {
    .module-pill {
        padding: 6px 14px;
        font-size: 12px;
    }
}

.alert-info {
    background: #e0f2fe;
    color: #075985;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
    border: 1px solid #7fb4e8;
}



/* === Module layout + video + voortgang / toets === */

.module-card {
    margin-top: 20px;
}

.module-video {
    max-width: 900px;
    margin: 0 auto 20px;
}

.module-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: block;
    background: #000;
}

.module-body {
    max-width: 900px;
    margin: 0 auto 24px;
    background: #ffffff;
    padding: 22px 26px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    line-height: 1.6;
    font-size: 15px;
}

.module-body h2 {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 22px;
}

.module-body h3 {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 18px;
}

.module-body ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.module-progress-wrapper {
    max-width: 900px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-progress-card,
.module-quiz-card {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.module-progress-card h2,
.module-quiz-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.module-progress-card p,
.module-quiz-card p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.module-quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.module-quiz-header .badge {
    margin-left: 0;
}

.module-quiz-card.module-quiz-locked {
    opacity: 0.9;
    border-style: dashed;
}

.hint-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}


/* =======================================
   Toets / Quiz pagina's
   ======================================= */
.quiz-page {
    max-width: 900px;
    margin: 32px auto 40px;
}

.quiz-page h1.h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.quiz-page .text-muted {
    font-size: 14px;
    color: #6b7280;
}

.quiz-page .card {
    border-radius: 12px;
}

.quiz-page .card + .card {
    margin-top: 12px;
}

.quiz-page .fw-semibold {
    font-weight: 600;
}

.quiz-page .form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f9fafb;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.quiz-page .form-check + .form-check {
    margin-top: 4px;
}

.quiz-page .form-check:hover {
    background: #edf2ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15,23,42,0.05);
}

.quiz-page .form-check-input {
    margin-top: 3px;
}

.quiz-page .form-check-label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}


/* =======================================
   QUIZ / TOETS ANTWOORDOPMAAK
   Zorg dat de tekst direct achter het bolletje staat
   ======================================= */

.quiz-page .form-check {
    position: static;
    padding-left: 0;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.quiz-page .form-check-input {
    position: static;
    margin: 3px 4px 0 0;
    flex-shrink: 0;
}

.quiz-page .form-check-label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
}
