:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --success: #16a34a;
    --danger: #dc2626;

    --bg: #f3f4f6;

    --card: #ffffff;

    --text: #111827;
    --muted: #6b7280;

    --border: #d1d5db;

    --radius: 14px;

    --shadow:
        0 4px 12px rgba(
            0,
            0,
            0,
            .08
        );
}

body {

    background:
        var(--bg);

    font-family:
        Inter,
        Arial,
        sans-serif;

    color:
        var(--text);

    margin: 0;
    padding: 10px;
}

#app {

    max-width:
        1100px;

    margin:
        0 auto;
}

/*
=========================================
CARDS
=========================================
*/

.card {

    background:
        white;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

    margin-bottom:
        15px;
}

.card-body {

    padding:
        20px;
}

/*
=========================================
HEADER SCORE
=========================================
*/

.quiz-header {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        20px;
}

.quiz-stat {

    flex: 1;

    text-align:
        center;

    background:
        white;

    border-radius:
        14px;

    padding:
        15px;

    border:
        1px solid
        var(--border);

    box-shadow:
        var(--shadow);
}

.quiz-stat-value {

    font-size:
        2rem;

    font-weight:
        700;
}

.quiz-stat-label {

    color:
        var(--muted);
}

/*
=========================================
PROGRESS
=========================================
*/

.progress {

    height:
        12px;

    border-radius:
        999px;

    overflow:
        hidden;

    background:
        #e5e7eb;

    margin-top:
        10px;
}

.progress-bar {

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #60a5fa
        );

    transition:
        width .3s ease;
}

/*
=========================================
VRAAG
=========================================
*/

.question-card {

    background:
        white;

    border-radius:
        16px;

    padding:
        20px;

    box-shadow:
        var(--shadow);
}

.question-text {

    font-size:
        1.7rem;

    line-height:
        1.3;

    font-weight:
        700;

    margin-bottom:
        20px;
}

/*
=========================================
AFBEELDINGEN
=========================================
*/

.question-image {

    display:
        block;

    max-width:
        100%;

    border-radius:
        10px;

    margin:
        20px auto;

    box-shadow:
        var(--shadow);
}

/*
=========================================
ANTWOORDEN
=========================================
*/

.answer-btn {

    width:
        100%;

    text-align:
        left;

    padding:
        18px;

    background:
        white;

    border:
        2px solid
        #cbd5e1;

    border-radius:
        12px;

    margin-bottom:
        12px;

    cursor:
        pointer;

    transition:
        all .15s ease;
}

.answer-btn:hover {

    border-color:
        var(--primary);

    background:
        #eff6ff;
}

.answer-btn.selected {

    border-color:
        var(--primary);

    background:
        #dbeafe;
}

/*
=========================================
OPEN VRAAG
=========================================
*/

.form-control {

    border-radius:
        12px;

    border:
        2px solid
        #d1d5db;

    min-height:
        50px;
}

.form-control:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 .2rem
        rgba(
            37,
            99,
            235,
            .15
        );
}

/*
=========================================
BUTTONS
=========================================
*/

.btn {

    border-radius:
        12px;

    min-height:
        50px;

    font-weight:
        600;
}

.btn-primary {

    background:
        var(--primary);

    border:
        none;
}

.btn-primary:hover {

    background:
        var(--primary-hover);
}

.btn-success {

    background:
        var(--success);

    border:
        none;
}

/*
=========================================
FEEDBACK
=========================================
*/

.correct-answer {

    background:
        #dcfce7;

    border-left:
        5px solid
        var(--success);

    border-radius:
        10px;

    padding:
        20px;

    margin-top:
        20px;
}

.wrong-answer {

    background:
        #fee2e2;

    border-left:
        5px solid
        var(--danger);

    border-radius:
        10px;

    padding:
        20px;

    margin-top:
        20px;
}

.explanation {

    background:
        #ecfdf5;

    border-left:
        5px solid
        var(--success);

    border-radius:
        10px;

    padding:
        20px;

    margin-top:
        15px;
}

/*
=========================================
LOGIN
=========================================
*/

.login-card {

    max-width:
        500px;

    margin:
        60px auto;
}

.login-title {

    text-align:
        center;

    margin-bottom:
        25px;

    font-size:
        2rem;

    font-weight:
        700;
}

/*
=========================================
LOADING
=========================================
*/

#loadingOverlay {

    position:
        fixed;

    inset:
        0;

    background:
        rgba(
            255,
            255,
            255,
            .75
        );

    backdrop-filter:
        blur(4px);

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    z-index:
        9999;
}

/*
=========================================
MOBIEL
=========================================
*/

@media (max-width: 768px) {

    body {

        padding:
            6px;
    }

    .question-text {

        font-size:
            1.25rem;
    }

    .quiz-header {

        flex-direction:
            row;
    }

    .quiz-stat-value {

        font-size:
            1.4rem;
    }

    .answer-btn {

        padding:
            14px;
    }

    .card-body {

        padding:
            15px;
    }
}

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

    padding: 12px 18px;

    background: white;

    border-radius: 14px;

    box-shadow:
        0 2px 10px rgba(
            0,
            0,
            0,
            .06
        );
}

.topbar-brand {

    font-size: 1.2rem;

    font-weight: 700;
}

.topbar-actions {

    display: flex;

    gap: 10px;
}

@media (max-width: 768px) {

    .topbar {

        flex-direction: column;

        gap: 10px;
    }

    .topbar-actions {

        width: 100%;
    }

    .topbar-actions button {

        flex: 1;
    }
}