/* --- Globale Basis Stijlen --- */
:root {
    --bg-main: #020617;
    --bg-slide: #0f172a;
    --bg-tile: rgba(30, 41, 59, 0.6);
    --color-teal: #2dd4bf;
    --color-gold: #fbbf24;
    --color-text: #f8fafc;
    --color-muted: #94a3b8;
    --color-danger: #f87171;
    --color-warning: #f97316;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

/* Standaard achtergrond voor je gehele applicatie (Dashboard, Cursussen, etc.) */
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: #f8fafc; /* Wit/lichtgrijze basis voor dashboard */
    color: #212529; /* Donkere tekst voor leesbaarheid */
}

    /* MAGIC: Zodra er een .presentation-wrapper op de pagina staat, wordt de body zwart */
    body:has(.presentation-wrapper) {
        background-color: #020617 !important;
    }

/* --- Presentatie Wrapper & Layout --- */
.presentation-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(circle at top right, #1e293b, var(--bg-slide));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--color-text); /* Witte tekst in presentatie */
    z-index: 9999;
}

/* Slides */
.slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 60px;
    flex-direction: column;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-out;
}

    .slide.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Splash Screen & Typografie --- */
.chapter-splash {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.presentation-wrapper h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-teal);
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* --- Navigatie Controls --- */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(2, 6, 23, 0.85);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid var(--color-teal);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--color-teal);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-btn:disabled {
        color: var(--color-muted);
        cursor: not-allowed;
    }

.slide-counter {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
}
