/* ========================================= */
/* 1. VARIABELEN & KLEURENPALET              */
/* ========================================= */
:root {
  --black-forest: #283618;
  --olive-leaf:   #606c38;
  --orange:       #ffa600;
  --cornsilk:     #fefae0;
  --floral-white: #fffef5;

  --pen-blauw:   #3891a6;
  --pen-rood:    #c75000;
  --pen-groen:   #a1b95e;
  --pen-oranje:  #e4b363;
  --pen-paars:   #af90cb;

  --soft-orange:   #FFDB99;
  --header-height: 110px;
  --max-width:     1400px;
  --radius-pill:   50px;
  
  --font-heading: 'KG Red Hands', 'Segoe UI', sans-serif;
  --font-body:    'KG Red Hands', 'Segoe UI', sans-serif;
}

/* ========================================= */
/* 2. FONTS & RESET                          */
/* ========================================= */
@font-face {
  font-family: 'KG Red Hands';
  src: url('fonts/KGRedHands.woff2') format('woff2'),
       url('fonts/KGRedHands.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: block;
}

* { padding: 0; margin: 0; box-sizing: border-box; text-decoration: none; list-style: none; }

html { width: 100%; overflow-y: scroll; }

/* Subtiele scrollbalk */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(96, 108, 56, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(96, 108, 56, 0.6); }

body {
  background-color: var(--floral-white);
  color: var(--olive-leaf);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

main.content-wrapper { flex: 1; width: 100%; }

/* ========================================= */
/* 3. ALGEMENE LAYOUT & FOOTER               */
/* ========================================= */
.container {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 20px; position: relative;
}

/* Utility classes voor consistente spacing */
.page-spacing-top { padding-top: 140px !important; }
.margin-bottom-large { margin-bottom: 40px !important; }

footer {
  text-align: center;
  padding: 20px 20px; 
  color: var(--olive-leaf);
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: auto;
  background-color: transparent; 
}

footer a {
  color: inherit; text-decoration: none;
  border-bottom: 1px dotted rgba(96, 108, 56, 0.4); 
  transition: all 0.2s ease;
}

footer a:hover { opacity: 1; border-bottom-style: solid; border-bottom-color: var(--olive-leaf); }

.home-footer {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: transparent; color: var(--olive-leaf);
    text-align: center; padding: 15px; opacity: 0.7; z-index: 10;
}

.home-footer a { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; transition: border-color 0.2s; }
.home-footer a:hover { border-bottom-color: var(--olive-leaf); opacity: 1; }

/* FIX: Footer op mobiel niet laten zweven */
@media (max-width: 900px) {
    .home-footer {
        position: relative;
        bottom: auto;
        background-color: var(--floral-white);
        opacity: 1;
        margin-top: 30px;
        padding-bottom: 20px;
    }
    
    .hero {
        min-height: auto;
        padding-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .home-footer { background: rgba(255, 254, 245, 0.9); }
}

/* ========================================= */
/* 4. NAVBAR & NAVIGATIE                     */
/* ========================================= */
.navbar {
  position: fixed; right: 0; top: 0; width: 100%; z-index: 1000;
  padding: 25px 0; background: var(--floral-white);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { width: 280px; height: auto; display: block; transition: filter 0.3s ease; }
.logo:hover img { filter: drop-shadow(0 5px 8px rgba(96, 108, 56, 0.3)); }
.nav-links { display: flex; gap: 50px; }
.nav-links a {
  color: var(--olive-leaf); font-size: 18px; font-weight: 600;
  border-bottom: 2px solid transparent; transition: color 0.2s;
}
.nav-links a:hover { border-bottom: 2px solid var(--olive-leaf); }
.nav-links a.current-page { border-bottom: 2px solid var(--olive-leaf); color: var(--olive-leaf); cursor: default; }
.nav-cta { color: var(--orange) !important; display: flex; align-items: center; gap: 5px; }
.nav-cta:hover { border-bottom: 2px solid var(--orange) !important; }
.menu-toggle { display: none; font-size: 32px; color: var(--olive-leaf); cursor: pointer; }

/* ========================================= */
/* 5. HERO SECTION                           */
/* ========================================= */
.hero {
  min-height: 100vh; width: 100%; padding-top: var(--header-height);
  display: flex; align-items: center; position: relative;
}
.hero-container { height: 100%; display: flex; align-items: center; width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 4rem; width: 100%; padding-left: 60px;
}
.hero-content { display: flex; flex-direction: column; justify-content: center; gap: 45px; }
.hero-text h1 { font-size: clamp(1.8rem, 2.5vw, 2.2rem); margin-bottom: 25px; line-height: 1.2; color: var(--olive-leaf); }
.hero-text p { font-size: 16px; line-height: 1.9; max-width: 95%; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-img { display: flex; justify-content: center; }
.hero-img img { width: 100%; width: clamp(280px, 45vw, 600px); height: auto; object-fit: contain; pointer-events: none; }

/* ========================================= */
/* 6. BUTTONS & UI ELEMENTEN                 */
/* ========================================= */
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 180px; padding: 12px 24px; border-radius: 30px;
  font-size: 16px; font-weight: 600; text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background-color: var(--soft-orange); border: 2px solid #e3c081; color: var(--olive-leaf); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(96, 108, 56, 0.2); background-color: #f0ce92; border-color: #dcb36d; }
.btn-secondary { background-color: transparent; border-color: var(--olive-leaf); color: var(--olive-leaf); }
.btn-secondary:hover { transform: translateY(-3px); background-color: #FFF9C3; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* Sim Buttons */
.btn-sim {
  background-color: var(--floral-white); border: 2px solid var(--olive-leaf); color: var(--olive-leaf);
  font-family: var(--font-heading); font-weight: normal;
  min-width: 120px; font-size: 0.95rem; padding: 8px 16px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: background-color 0.2s ease, box-shadow 0.2s ease; transform: none !important;
}
.btn-sim:hover { background-color: #ebe9d6; box-shadow: 0 2px 6px rgba(0,0,0,0.1); color: var(--black-forest); }

.btn-sim-action {
  background-color: var(--soft-orange); border: 2px solid #dcb36d; color: var(--black-forest);
  font-family: var(--font-heading); font-weight: normal; 
  min-width: 120px; font-size: 0.95rem; padding: 8px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08); transition: all 0.2s ease; transform: none !important;
}
.btn-sim-action:hover { background-color: #eebf68; border-color: #cda255; box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

.btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; background-color: #ddd; border-color: #ccc; color: #888; }

.floating-icons {
  position: absolute; left: max(20px, 2%); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 25px; z-index: 10;
}
.floating-icons i { font-size: 26px; color: var(--olive-leaf); transition: transform 0.3s ease; }
.floating-icons i:hover { transform: translateY(-2px); }
.ri-instagram-line:hover { background: linear-gradient(43deg,#FFCC70 0%, #C850C0 59%, #4158D0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ri-youtube-line:hover { color: #c75000; }
.ri-facebook-circle-line:hover { color: #3891a6; }

/* ========================================= */
/* 7. FORMULIEREN & INPUTS                   */
/* ========================================= */
input[type="text"], input[type="number"], select {
  padding: 10px 15px; border: 2px solid var(--black-forest); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; color: var(--black-forest); background: white; outline: none; transition: border-color 0.3s ease; width: 100%; 
}
input[type="text"]:focus, input[type="number"]:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 166, 0, 0.2); }
input[type="checkbox"] { accent-color: var(--olive-leaf); width: 20px; height: 20px; cursor: pointer; }
.control-group { margin-bottom: 20px; width: 100%; }
.control-header { display: flex; justify-content: space-between; font-weight: bold; color: var(--olive-leaf); margin-bottom: 8px; font-size: 0.95rem; }
.control-value { font-weight: normal; color: var(--black-forest); opacity: 0.8; font-family: monospace; font-size: 1rem; }

input[type=range] { -webkit-appearance: none; appearance: none;  width: 100%; background: transparent; cursor: pointer; height: 24px; margin: 0; border: none; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; background: var(--cornsilk); border: 1px solid var(--olive-leaf); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--olive-leaf); border: 3px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); margin-top: -10px; transition: transform 0.1s ease; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); }


/* Zorg dat de placeholder hetzelfde font gebruikt als de input zelf */
input::placeholder,
textarea::placeholder {
    font-family: var(--font-body);
    /* Optioneel: pas de kleur/opacity aan voor betere leesbaarheid */
    color: var(--olive-leaf);
    opacity: 0.6;
}

/* Specifiek voor Webkit (Chrome, Safari, Edge) */
input::-webkit-input-placeholder {
    font-family: var(--font-body);
}

/* Specifiek voor Firefox */
input::-moz-placeholder {
    font-family: var(--font-body);
    opacity: 0.6;
}

/* Zorg dat de getypte tekst het juiste lettertype gebruikt */
#sim-search, 
input[type="text"], 
input[type="number"], 
select {
    font-family: var(--font-body) !important;
    font-size: 1rem;
    color: var(--black-forest);
}
/* ========================================= */
/* 8. UNIVERSELE CARDS (Sim & Video)         */
/* ========================================= */

/* INTRO & CONTROLS */
.page-intro { padding: calc(var(--header-height) + 30px) 0 20px; text-align: center; }
.page-intro.intro-left { text-align: left; }
.page-intro h1 { font-size: 2rem; color: var(--olive-leaf); font-weight: 700; margin-bottom: 8px; max-width: 100%; hyphens: auto; -webkit-hyphens: auto; }
.page-intro p { font-size: 0.95rem; color: var(--black-forest); opacity: 0.9; max-width: 800px; line-height: 1.6; margin: 0 auto; }
.page-intro.intro-left p { margin: 0; }
.controls-wrapper { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; width: 100%; }

@media (max-width: 900px) {
    .page-intro {
        padding-top: 100px !important; 
    }
}

/* GRID SYSTEMEN */
.sim-grid, .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding-bottom: 80px; justify-content: center; width: 100%; }
.video-grid { gap: 25px; }

/* CARD BASIS (Geldt nu voor ALLE kaarten) */
.sim-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid rgba(96, 108, 56, 0.15); display: flex; flex-direction: column; transition: all 0.3s ease; height: 100%; width: 100%; max-width: 340px; text-decoration: none; color: var(--olive-leaf); animation: fadeIn 0.4s ease-out; margin: 0 auto; cursor: pointer; }
.sim-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(96, 108, 56, 0.15); border-color: var(--orange); }

/* THUMBNAILS: DE "HYBRID" AANPAK */
/* 1. Standaard (Simulaties): Afbeelding past er volledig in (contain) met witruimte */
.sim-thumb { width: 100%; height: 200px; background-color: var(--cornsilk); border-bottom: 1px solid rgba(96, 108, 56, 0.1); position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.thumb-icon-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--olive-leaf); font-size: 4rem; opacity: 0.3; pointer-events: none; z-index: 1; }
.sim-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 20px; /* Ruime padding voor screenshots */ transition: transform 0.5s ease; z-index: 2; }
.sim-thumb img.img-cover {
    object-fit: cover;
    padding: 0; /* Geen witruimte rondom */
    width: 100%;
    height: 100%;
    background-color: white; /* Of var(--floral-white) voor safe bet */
}
.sim-card:hover .sim-thumb img { transform: scale(1.05); }

/* 2. Video Override: Afbeelding vult alles (cover) en is donkerder */
.video-grid .sim-thumb, .spotlight-grid .sim-thumb { background: #000; height: auto; }
.video-grid .sim-thumb img, .spotlight-grid .sim-thumb img { object-fit: cover; padding: 0; opacity: 0.9; }
.video-grid .thumb-icon-placeholder, .spotlight-grid .thumb-icon-placeholder { color: white; opacity: 0.8; z-index: 3; font-size: 3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* CONTENT BASIS (Nu identiek voor Sim & Video) */
.sim-content { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; /* Alles onder elkaar */
    align-items: stretch; 
    text-align: left; 
    gap: 0; 
    flex-grow: 1; 
}

/* De Header Groep (Titel + Info) */
.card-header-group { margin-bottom: 8px; }

/* Titel Styling */
.sim-content h3 { 
    font-size: 1rem; 
    line-height: 1.5; 
    color: var(--olive-leaf); 
    font-weight: 700; 
    margin: 0 0 10px 0; /* Ruimte onder titel */
    height: 3rem; /* Vaste hoogte voor 2 regels */
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}

/* AUTEUR & JAAR (Grid Layout) */
.card-subheader { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; margin-top: 4px; gap: 15px; }
.author-link-base { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; font-size: 0.85rem; font-weight: 600; color: var(--black-forest); }
.author-link-base, .author-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-link-base i { font-size: 1.1rem; flex-shrink: 0; color: inherit; }
a.author-link-base:hover { color: var(--pen-blauw); text-decoration: underline; }
.level-badge { display: inline-block; background: var(--cornsilk); padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; border: 1px solid rgba(96,108,56,0.2); color: var(--olive-leaf); font-weight: 600; white-space: nowrap; }

/* METADATA & SEPARATORS */
.card-separator { width: 100%; height: 1px; background: rgba(96, 108, 56, 0.15); margin: 12px 0; }
.card-bottom-meta { font-size: 0.85rem; color: var(--black-forest); opacity: 0.8; width: 100%; margin-top: auto; display: flex; flex-direction: column; gap: 6px; }

/* SECTIE HEADERS */
.section-header { grid-column: 1 / -1; font-family: var(--font-heading); font-size: 1.4rem; color: var(--olive-leaf); border-bottom: 2px solid rgba(96, 108, 56, 0.2); padding-bottom: 5px; margin: 30px 0 10px; display: flex; align-items: baseline; gap: 6px; animation: fadeIn 0.4s ease-out; width: 100%; }
.section-header:first-child { margin-top: 0; }
.header-theme-part { font-family: var(--font-body); font-size: 1.1rem; opacity: 0.8; font-weight: normal; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================= */
/* 9. SIMULATIE FRAMEWORK (ALGEMEEN)         */
/* ========================================= */
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--olive-leaf); opacity: 0.8; margin-bottom: 10px; }
.breadcrumbs a { color: var(--olive-leaf); font-weight: 600; display: flex; align-items: center; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.breadcrumbs a:hover { border-bottom-color: var(--olive-leaf); }
.breadcrumbs span { opacity: 0.6; cursor: default; }
.breadcrumbs i { font-size: 1rem; }

.vector-label { position: relative; display: inline-block; }
.vector-label::after { content: "→"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 1.1em; font-weight: bold; font-family: sans-serif; line-height: 1; }

.app-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; width: 100%; max-width: 1400px; margin: 0 auto; padding-bottom: 50px; user-select: none; }

.sim-panel { background-color: var(--floral-white); border: 2px solid var(--olive-leaf); border-radius: 20px; padding: 20px; min-height: 520px; display: flex; flex-direction: column; align-items: center; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.sim-panel-clean { background: transparent; border: none; box-shadow: none; padding: 0; width: 100%; display: flex; flex-direction: column; }
.sim-section-below{width: 100%;max-width: var(--max-width); margin: 0 auto; padding: 0 20px; margin-top: 15px; margin-bottom: 50px;}
.panel-header { font-family: var(--font-heading); font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; color: var(--olive-leaf); width: 100%; text-align: center; border-bottom: 2px dashed var(--olive-leaf); padding-bottom: 10px; opacity: 0.9; position: relative; }

.visual-fill-space { flex: 1; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 200px; position: relative; }
.instruction-text { text-align: center; color: var(--olive-leaf); font-size: 0.9rem; margin-top: 15px; margin-bottom: 5px; width: 100%; }

.panel-actions { display: flex; gap: 10px; margin-top: auto; width: 100%; flex-wrap: wrap; justify-content: center; }
.panel-actions .btn { min-width: 0 !important; flex: 1 1 auto; padding: 8px 12px; font-size: 0.9rem; border-radius: 20px; transform: none !important; display: flex; justify-content: center; align-items: center; box-shadow: none; white-space: nowrap; }
.panel-actions .btn:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.panel-actions .btn i { margin-right: 6px; font-size: 1rem; }

.circle-action-btn { position: absolute; top: -5px; right: 0; width: 32px; height: 32px; border-radius: 50%; background: transparent; border: 1px solid var(--olive-leaf); color: var(--olive-leaf); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.2s ease; font-size: 1.1rem; z-index: 5; }
.circle-action-btn:hover { background-color: rgba(96, 108, 56, 0.1); color: var(--black-forest); transform: scale(1.05); }
.circle-action-btn:active { transform: scale(0.90); background-color: var(--olive-leaf); color: white; }
.circle-action-btn.active { background-color: var(--olive-leaf); color: white; }

.feedback-correct::after { content: '✓'; color: var(--black-forest); font-weight: bold; position: absolute; font-size: 18px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.feedback-wrong::after { content: '✗'; color: var(--pen-rood); font-weight: bold; position: absolute; font-size: 18px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.fs-fab { position: fixed; bottom: 30px; right: 30px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(96, 108, 56, 0.2); box-shadow: 0 4px 8px rgba(0,0,0,0.15); color: var(--olive-leaf); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-size: 1.5rem; backdrop-filter: blur(4px); }
.fs-fab:hover { background-color: white; color: var(--orange); border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }

.toggle-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: auto; }
.toggle-item { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: background-color 0.2s; }
.toggle-item:hover { background-color: rgba(96, 108, 56, 0.05); }
.toggle-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--olive-leaf); }
.toggle-label { font-size: 0.95rem; font-weight: bold; }
.sub-toggle { margin-left: 32px; font-size: 0.9rem; }
.smartboard-toggle { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(96, 108, 56, 0.2); font-size: 0.9rem; color: var(--black-forest); }

/* ========================================= */
/* 10. MODULE: SIMULATIE LAYOUTS & CANVAS UI */
/* ========================================= */

/* --- SPLIT VIEW MODUS --- */
.app-container.split-view {
    display: flex; flex-direction: column;
    height: 85vh; padding: 0 !important; margin: 0 auto;
    overflow: hidden; background: transparent;
    max-width: none;
}
.sim-grid-layout { display: flex; flex-direction: column; gap: 10px; height: 100%; width: 100%; padding-bottom: 0; }

.canvas-panel {
    order: -1; flex: 0 0 55%; min-height: 300px; margin: 0;
    border: 2px solid var(--olive-leaf); border-radius: 12px;
    overflow: hidden; padding: 0 !important; position: relative;
    background-color: var(--floral-white); display: flex; flex-direction: column;
}

.settings-panel {
    flex: 1 1 auto; min-height: 0; margin: 0;
    border: 2px solid var(--olive-leaf); border-radius: 12px;
    background-color: var(--floral-white); 
    padding: 15px; 
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    display: flex; flex-direction: column;
}

.layout-distributed { flex: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: min-content; }

/* DESKTOP SPLIT */
@media (min-width: 901px) {
    .app-container.split-view {
        height: calc(100vh - 160px); 
        min-height: 650px; 
        max-height: 900px; 
        margin-bottom: 40px;
    }
    .app-container.split-view .sim-grid-layout {
        display: grid; grid-template-columns: 340px 1fr; /* Vast menu links, rest rechts */
        gap: 20px; align-items: stretch;
    }
    .canvas-panel { order: 0; flex: auto; height: 100%; border-radius: 18px; }
    .settings-panel { padding-right: 10px; height: 100%; }
    .canvas-controls-left { display: none; }
}

/* --- FULLSCREEN OVERRIDES (ALTIJD BOVEN ALLES) --- */
body.fullscreen-mode { background-color: var(--floral-white) !important; overflow: hidden; }
body.fullscreen-mode .app-container.split-view {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100dvh; /* Forceer 100% viewport hoogte */
    z-index: 10000; 
    margin: 0; 
    max-height: none !important; /* Reset limitaties */
    
    /* SAFE AREA FIX voor iOS Notch */
    padding-top: max(15px, env(safe-area-inset-top)) !important;
    padding-right: max(15px, env(safe-area-inset-right)) !important;
    padding-bottom: max(15px, env(safe-area-inset-bottom)) !important;
    padding-left: max(15px, env(safe-area-inset-left)) !important;

    background: var(--floral-white);
    border-radius: 0;
}
body.fullscreen-mode .sim-grid-layout { height: 100%; }

@media (max-width: 900px) {
    body.fullscreen-mode .settings-panel { padding-bottom: 90px !important; }
    .smartboard-toggle { display: none !important; }
}
@media (max-width: 600px) {
    .settings-panel .panel-header { display: none; }
}
/* --- B. CANVAS UI ELEMENTEN --- */
.canvas-wrapper { width: 100%; height: 100%; position: relative; cursor: default; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.canvas-controls-left { display: flex; position: absolute; bottom: 10px; left: 10px; z-index: 20; gap: 10px; pointer-events: none; }
.canvas-fab { width: 44px; height: 44px; border-radius: 50%; border: 2px solid white; background-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px); color: var(--olive-leaf); font-size: 1.4rem; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; transition: transform 0.1s ease; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.canvas-fab:hover { transform: scale(1.05); background-color: var(--olive-leaf); color: white; border-color: var(--olive-leaf); }
.canvas-fab:active { transform: scale(0.92); background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.overlay-play-btn { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); z-index: 10; display: none; justify-content: center; align-items: center; width: 60px; height: 60px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(4px); color: var(--olive-leaf); border: 2px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; transition: all 0.2s ease; pointer-events: auto; }
.overlay-play-btn:hover { transform: translateX(-50%) scale(1.1); background-color: rgba(255, 255, 255, 0.8); color: var(--black-forest); }
.overlay-play-btn i { font-size: 32px; margin-left: 4px; }


/* ========================================= */
/* 10B. SIMULATIE UI COMPONENTEN (Content)    */
/* ========================================= */

/* --- 11.1 Sliders & Waarde Weergave --- */
.slider-group { 
    margin-bottom: 20px; 
}

.slider-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 5px; 
    width: 100%; 
}

.slider-label-text { 
    font-size: 0.9rem; 
    color: var(--olive-leaf); 
    font-family: var(--font-body); 
    font-weight: bold;
    flex-grow: 1; 
}

/* Wiskundige symbolen in labels altijd in Serif (wetenschappelijk correct) */
.slider-label-text i {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
}

.slider-value-group { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-shrink: 0; 
}

.control-value { 
    font-family: monospace; 
    font-size: 0.95rem; 
    color: var(--black-forest); 
    text-align: right; 
    min-width: 85px; 
}

.mini-reset-btn {
    background: none; 
    border: 1px solid transparent; 
    color: var(--pen-oranje); 
    cursor: pointer;
    padding: 4px; 
    border-radius: 50%; 
    transition: all 0.2s;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.mini-reset-btn:hover { 
    background-color: rgba(228, 179, 99, 0.1); 
    color: var(--pen-rood); 
    border-color: rgba(228, 179, 99, 0.3); 
}

.panel-divider {
    border: 0;
    border-top: 2px dashed rgba(96, 108, 56, 0.2);
    margin: 20px 0;
}

/* --- 11.2 Unit Selector (Keuzerondjes) --- */
.unit-selector {
    display: flex;
    background: transparent; 
    border-radius: 8px;
    padding: 0;
    margin-bottom: 10px;
    gap: 8px;
    justify-content: center;
}

.unit-option {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 20px;
    border: 1px solid rgba(96, 108, 56, 0.3);
    color: var(--olive-leaf);
    background-color: white;
    font-weight: normal;
}

.unit-option:hover { 
    background-color: rgba(96, 108, 56, 0.05); 
}

.unit-option.active {
    border: 2px solid var(--olive-leaf);
    background-color: rgba(96, 108, 56, 0.1);
    font-weight: bold;
    color: var(--black-forest);
    box-shadow: none;
}

.unit-option input { display: none; }

/* --- 11.3 Math Box (Formule Weergave) --- */
.math-box {
    border-radius: 8px;
    padding: 12px 4px; 
    margin-bottom: 15px;
    font-family: 'Segoe UI', Arial, sans-serif; 
    font-weight: normal; 
    font-size: 1rem; 
    color: var(--black-forest);
    display: grid;
    /* Grid: Variabele | = | Waarde */
    grid-template-columns: 45px 18px minmax(0, 1fr); 
    column-gap: 0;
    row-gap: 8px;
    align-items: baseline;
    width: 100%;
}

.math-box .m-var { 
    font-family: 'Times New Roman', serif; 
    font-style: italic; 
    font-weight: bold; 
    font-size: 1.25rem; 
    line-height: 1;
}

.math-box .m-sub { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    font-style: normal; 
    font-weight: normal; 
    font-size: 0.8rem; 
    vertical-align: baseline; 
    position: relative;
    top: 0.3em; 
}

.math-box .m-num { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    font-weight: 500; 
}

.math-var-col { 
    text-align: right; 
    white-space: nowrap; 
    padding-right: 2px; 
}

.math-eq-col { 
    text-align: center; 
    font-family: 'Segoe UI', sans-serif; 
    font-weight: normal; 
    color: #666; 
}

.math-val-col { 
    text-align: left; 
    white-space: normal; 
    line-height: 1.2; 
    font-family: 'Segoe UI', sans-serif; 
    font-weight: normal; 
    word-wrap: break-word; 
}

/* --- 11.4 Canvas Overlays & Instructies --- */
.canvas-instruction {
    position: absolute; 
    top: 20%; left: 50%; 
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9); 
    padding: 10px 20px; 
    border-radius: 20px;
    border: 2px solid var(--olive-leaf); 
    pointer-events: none; 
    z-index: 10;
    text-align: center; 
    font-weight: bold; 
    color: var(--black-forest);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    opacity: 1; 
    transition: opacity 0.5s ease;
    font-family: sans-serif;
}

.canvas-instruction.fade-out { opacity: 0; }

/* ========================================= */
/* 11. SIM (GGB) & VIDEO MODULE              */
/* ========================================= */
.sim-container { position: relative; width: 100%; height: 0; overflow: hidden; border-radius: 12px; border: 1px solid rgba(96, 108, 56, 0.2); background-color: var(--floral-white); box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 5px; }
.sim-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; }

/* De verhoudingen (Ratio's) */
.ratio-16-9 { padding-bottom: 56.25%; --aspect: 16/9; }
.ratio-4-3  { padding-bottom: 75% !important;    --aspect: 4/3;  }
.ratio-3-2  { padding-bottom: 66.66%; --aspect: 3/2;  }
.ratio-1-1  { padding-bottom: 100%;   --aspect: 1/1;  }

.sim-status-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 0 4px; width: 100%; }
.credit { font-size: 0.75rem; color: var(--black-forest); opacity: 0.6; font-family: var(--font-body); }
.credit a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(40, 54, 24, 0.3); transition: opacity 0.2s, border-bottom 0.2s; font-weight: 600; }
.credit a:hover { opacity: 1; border-bottom-style: solid; }
.status-actions { display: flex; gap: 10px; }
.btn-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: var(--floral-white); color: var(--olive-leaf); border: 1px solid rgba(96, 108, 56, 0.2); cursor: pointer; transition: all 0.4s ease; font-size: 1.1rem; }
.btn-circle:hover { background-color: var(--cornsilk); border-color: var(--olive-leaf); color: var(--black-forest); transform: rotate(-180deg); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.help-details { margin-top: 15px; width: 100%; text-align: center; scroll-margin-top: 20px; }
.help-summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 10px 24px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; background-color: var(--floral-white); color: var(--olive-leaf); border: 1px solid rgba(96, 108, 56, 0.2); transition: all 0.3s ease; position: relative; z-index: 2; }
.help-summary::-webkit-details-marker { display: none; }
.help-summary:hover { background-color: var(--cornsilk); color: var(--black-forest); border-color: var(--olive-leaf); box-shadow: 0 4px 10px rgba(96, 108, 56, 0.1); transform: translateY(-1px); }
.help-summary i.ri-youtube-fill { color: var(--pen-rood); font-size: 1.3em; transition: transform 0.2s; }
.help-summary:hover i.ri-youtube-fill { transform: scale(1.1); }
.arrow-icon { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); font-size: 1.1em; opacity: 0.7;}
.help-details[open] .arrow-icon { transform: rotate(180deg); }
.details-animated-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.help-details[open] .details-animated-wrapper { grid-template-rows: 1fr; }
.details-inner-content { overflow: hidden; min-height: 0; }
.video-wrapper { margin: 20px auto 0 auto; max-width: 700px; width: 100%; opacity: 0; transition: opacity 0.5s ease 0.2s; }
.help-details[open] .video-wrapper { opacity: 1; }
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; background-color: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.page-sim-app .app-container {max-width: 100%;overflow-x: hidden;}
.page-sim-app .sim-panel-clean {width: 100%;}

/* ========================================= */
/* 12. FULLSCREEN OVERRIDES */
/* ========================================= */
body.fullscreen-mode header,
body.fullscreen-mode footer,
body.fullscreen-mode .page-intro { display: none !important; }
body.fullscreen-mode .content-wrapper { padding-top: 20px; height: 100vh; overflow-y: auto; background-color: var(--floral-white); }
body.fullscreen-mode .fs-fab { bottom: 30px; z-index: 100000;}
body.fullscreen-mode .sim-container { position: fixed; inset: 0; margin: auto; z-index: 9999; width: 100vw; height: auto; max-height: 100dvh; padding-bottom: 0 !important; border: none; aspect-ratio: var(--aspect, 16/9); border-radius: 0; max-width: calc(100dvh * (var(--aspect, 16/9))); box-shadow: 0 0 30px rgba(0,0,0,0.1); background: white; }
body.fullscreen-mode .sim-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
body.fullscreen-mode .sim-status-bar,
body.fullscreen-mode .help-details, 
body.fullscreen-mode .instruction-text,
body.fullscreen-mode .breadcrumbs { display: none; }

@media (max-width: 1200px) {
  .floating-icons { display: none; }
  .hero { padding-top: 120px; align-items: flex-start; height: auto; }
  .hero-grid { display: flex; flex-direction: column; text-align: center; padding-left: 0; gap: 2rem; }
  .hero-img { order: 1; margin-bottom: 1rem; }
  .hero-content { order: 2; align-items: center; }
  .hero-buttons { justify-content: center; }
}
@media (max-width: 1050px) {
  .logo img { width: 200px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links { position: absolute; top: 100%; right: -100vw; width: 100vw; height: 100vh; background: var(--cornsilk); flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 80px; gap: 30px; transition: right 0.4s ease, visibility 0.4s; z-index: 999; border-top: 1px solid rgba(0,0,0,0.05); visibility: hidden; }
  .nav-links.active { right: 0; visibility: visible; }
}
@media (max-width: 900px) {
  .page-intro { padding-top: var(--header-height); padding-bottom: 5px; }
  .app-container { padding-bottom: 0px; }
  footer { display: block; margin-top: 20px; min-height: 80px; position: relative; z-index: 1; }
  body.fullscreen-mode .settings-panel .panel-header { display: none; }
}
@media (min-width: 768px) {
  .controls-wrapper { flex-direction: row; justify-content: center; }
}
@media (max-width: 600px) {
  .hero { padding-top: 100px; padding-bottom: 20px; }
  .hero-content { gap: 30px; }
  .hero-text h1 { font-size: 1.6rem; margin-bottom: 15px; }
  .hero-text p { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
  .hero-img img { max-height: 35vh; width: 100%; max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: center; width: 100%; gap: 15px; }
  .btn { width: 100%; max-width: 350px; padding: 12px 20px; font-size: 15px; }
}
@media print {
  .navbar, .fs-fab, footer, .panel-actions, .circle-action-btn { display: none !important; }
  body, .sim-panel { background-color: white !important; color: black !important; box-shadow: none !important; border: none !important; }
  .app-container { display: block !important; }
  .sim-panel { page-break-inside: avoid; border: 1px solid #ccc !important; margin-bottom: 20px; }
}

/* ========================================= */
/* 13. UI CONTROLS (Filters, Search, Panel)  */
/* ========================================= */

.search-group {
    display: flex; gap: 10px; flex: 1 1 300px;
    width: 100%; max-width: 450px; align-items: center;
}

.search-container { position: relative; width: 100%; flex-grow: 1; max-width: 450px; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--olive-leaf); opacity: 0.7; pointer-events: none; }

#vid-search, #sim-search {
    width: 100%; 
    padding: 0 15px 0 45px; 
    border: 1px solid var(--olive-leaf); 
    border-radius: var(--radius-pill); 
    font-size: 1rem; 
    color: var(--black-forest); 
    background: transparent; 
    transition: all 0.3s ease;
    height: 44px;
    line-height: 44px;
}
#vid-search:focus, #sim-search:focus {
    border-color: var(--olive-leaf);
    box-shadow: 0 0 0 4px rgba(96, 108, 56, 0.1);
    background: white;
    outline: none;
}

/* Toggle Filter knop (Mobiel) */
.toggle-filter-btn {
    display: none; height: 44px; width: 44px; padding: 0; border-radius: var(--radius-pill);
    border: 1px solid var(--olive-leaf); background-color: transparent; color: var(--olive-leaf);
    font-size: 1.2rem; cursor: pointer; transition: all 0.2s ease;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.toggle-filter-btn:hover { background-color: rgba(96, 108, 56, 0.1); }
.toggle-filter-btn.active { background-color: rgba(96, 108, 56, 0.15); font-weight: bold; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }

/* Filter Paneel */
.filter-panel {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; justify-content: center;
}
.filter-container { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } /* Legacy support sims */

/* Filter Knoppen */
.filter-btn-wrapper { display: contents; }
.filter-btn { 
    padding: 0 25px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); 
    border: 1px solid var(--olive-leaf); 
    background-color: transparent; 
    color: var(--olive-leaf); 
    font-family: var(--font-body); 
    font-weight: 600; font-size: 1rem; 
    cursor: pointer; transition: all 0.3s ease; 
}
.filter-btn:hover { background-color: rgba(96, 108, 56, 0.1); }
.filter-btn.active { background-color: rgba(96, 108, 56, 0.15); color: var(--olive-leaf); border-color: var(--olive-leaf); font-weight: 700; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }

/* Select Inputs */
select.control-input {
    width: 180px; padding: 0 35px 0 20px; height: 44px;
    border: 1px solid var(--olive-leaf); border-radius: var(--radius-pill);
    font-size: 0.95rem; color: var(--olive-leaf); font-family: var(--font-body); font-weight: 600; 
    cursor: pointer; background-color: transparent;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606c38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 14px auto;
    transition: all 0.2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
select.control-input:hover { background-color: rgba(96, 108, 56, 0.05); }
select.control-input:focus { border-color: var(--olive-leaf); box-shadow: 0 0 0 4px rgba(96, 108, 56, 0.1); background-color: white; outline: none; }
select.control-input.filter-active { background-color: rgba(96, 108, 56, 0.15); color: var(--olive-leaf); border-color: var(--olive-leaf); font-weight: 700; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }

optgroup { font-weight: 700; color: var(--black-forest); font-family: var(--font-body); background-color: #fff; font-style: normal; }
option { color: var(--olive-leaf); font-weight: normal; padding: 5px; }

.reset-btn {
    background: transparent; border: none; color: var(--olive-leaf); 
    cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 5px;
    padding: 0 12px; height: 44px; border-radius: var(--radius-pill);
    transition: all 0.2s ease; font-family: var(--font-body); font-weight: 600; 
}
.reset-btn:hover { color: var(--pen-rood); background-color: rgba(220, 20, 60, 0.05); }
.reset-btn i { font-size: 1.1rem; }

/* Responsive Logic voor Controls */
@media (max-width: 768px) {
    .controls-wrapper { flex-direction: column; align-items: center; gap: 12px; }
    .search-group { width: 100%; max-width: 380px; flex: 0 0 auto; }
    .toggle-filter-btn { display: flex; } 

    .filter-panel {
        display: none; flex-direction: column; align-items: stretch;
        background-color: rgba(96, 108, 56, 0.05); padding: 15px;
        border-radius: 12px; animation: slideDown 0.3s ease-out;
        width: 100%; max-width: 380px; 
    }
    .filter-panel.open { display: flex; } 
    .filter-panel > * { width: 100%; } 
    
    .filter-btn-wrapper { display: flex; flex-direction: row; gap: 10px; width: 100%; }
    .filter-btn { flex: 1; text-align: center; padding: 0 10px; } 

    select.control-input { width: 100%; }
    .reset-btn { justify-content: center; background-color: rgba(96, 108, 56, 0.05); }

    .video-grid { grid-template-columns: 1fr; justify-items: center; } 
    .sim-card { width: 100%; max-width: 380px; }
    .section-header { width: 100%; max-width: 380px; }

    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
}

/* --- SPOTLIGHT SECTIE (Vernieuwd: Zwevend) --- */
.spotlight-wrapper {
    /* Achtergrond: Een heel lichte tint (net niet wit) om het vlak te definiëren */
    background-color: rgba(96, 108, 56, 0.03); /* 3% Olive Leaf tint */
    
    /* Rand: Nauwelijks zichtbaar, puur voor definitie */
    border: 1px solid rgba(96, 108, 56, 0.08);
    
    /* Afronding: Iets groter dan de kaartjes voor een 'nest' gevoel */
    border-radius: 24px;
    
    /* Ruimte binnenin zodat de kaartjes kunnen ademen */
    padding: 30px;
    
    /* Ruimte aan de buitenkant */
    margin-bottom: 50px;
    
    /* Animatie bij verschijnen */
    animation: slideDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* De Header binnen de container */
.spotlight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--olive-leaf);
    padding-left: 5px; 
}

.spotlight-header h2 {
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.spotlight-header i {
    color: var(--pen-oranje); 
    font-size: 1.4rem;
}

/* HET GRID */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* DE SPECIALE KAARTJES */
.spotlight-grid .sim-card {
    border: 2px solid var(--pen-oranje);
    
    /* Omdat de achtergrond nu lichtgrijs is, maken we de kaartjes spierwit 
       zodat ze 'poppen' */
    background: #ffffff;
    
    /* Subtiele schaduw */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.spotlight-grid .sim-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(228, 179, 99, 0.15); 
}

/* VIDEO OVERRIDE FIX (Blijft hetzelfde) */
.spotlight-grid .sim-thumb {
    background: #000;
    height: auto;
    aspect-ratio: 16/9;
}
.spotlight-grid .sim-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    opacity: 0.95; 
}

/* MOBIEL AANPASSING */
@media (max-width: 600px) {
    .spotlight-wrapper {
        background-color: transparent; /* Op mobiel vaak mooier zonder kader */
        border: none;
        padding: 0 0 20px 0;
        margin-left: 0;
        margin-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-radius: 0;
    }
}
/* ========================================= */
/* 14. MODALS (Popups)                       */
/* ========================================= */
.video-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-content { position: relative; background-color: var(--black-forest); margin: auto; padding: 0; border-radius: 12px; width: 95%; max-width: 900px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #3a4d23; }
.modal-video-container { position: relative; padding-bottom: 56.25%; height: 0; background: black; width: 100%; flex-shrink: 0; }
.modal-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.modal-info { padding: 20px 25px; color: white; } 
.modal-title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--cornsilk); margin-bottom: 12px; line-height: 1.3; }
.modal-sub-header { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed rgba(255, 255, 255, 0.2); }
.modal-author-link { color: white; font-size: 0.95rem; max-width: none; opacity: 0.9; text-decoration: none; }
.modal-author-link:hover { color: var(--orange); text-decoration: underline; }
.modal-author-link i { color: var(--pen-groen); }
.modal-sub-header .level-badge { background-color: rgba(255, 255, 255, 0.1); color: var(--cornsilk); border-color: rgba(255, 255, 255, 0.2); }
.modal-details-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }
.detail-label { font-weight: bold; color: var(--pen-groen); min-width: 85px; }
.close-modal { position: absolute; top: -40px; right: 0; color: white; font-size: 32px; font-weight: bold; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.close-modal:hover { opacity: 1; color: var(--orange); }

/* Notitie in de Modal - BRANDING VERSIE */
.modal-note-box {
    /* Achtergrond: Heel subtiel lichter gemaakt zwart/grijs (geen kleur) */
    background-color: rgba(255, 255, 255, 0.08); 
    
    /* Rand: Jouw branding 'Highlighter' kleur */
    border-left: 3px solid var(--orange); 
    
    /* Tekst: Wit/Lichtgrijs voor leesbaarheid */
    color: rgba(255, 255, 255, 0.95);
    
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Het icoon krijgt ook de accentkleur */
.modal-note-box i {
    color: var(--orange); 
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========================================= */
/* 15. UTILITIES & TEKST                     */
/* ========================================= */
.text-content {
    width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px;
    padding-top: calc(var(--header-height) + 40px); padding-bottom: 60px;
    color: var(--black-forest); font-family: 'Segoe UI', sans-serif; line-height: 1.8;
}
.text-content h1 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--olive-leaf); margin-bottom: 30px; line-height: 1.2; }
.text-content h3 { font-family: var(--font-heading); color: var(--olive-leaf); margin-top: 40px; margin-bottom: 10px; font-size: 1.3rem; border-bottom: 1px solid rgba(96, 108, 56, 0.3); padding-bottom: 5px; display: inline-block; }
.text-content p, .text-content li { font-size: 1rem; margin-bottom: 15px; }
.text-content ul { list-style-type: disc; margin-left: 20px; margin-bottom: 25px; padding-left: 20px; }
.text-content li { margin-bottom: 8px; }

.license-box { border-radius: 8px; padding: 12px 15px; margin-top: 25px; margin-bottom: 50px; display: flex; gap: 15px; align-items: center; background-color: transparent; }
.license-box i { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.license-box.copyright { border: 2px solid var(--pen-rood); }
.license-box.copyright i, .license-box.copyright strong { color: var(--pen-rood); }
.license-box.creative-commons { border: 2px solid var(--olive-leaf); }
.license-box.creative-commons i { color: var(--olive-leaf); }
.license-box.creative-commons a { color: var(--olive-leaf); font-weight: bold; text-decoration: underline; }

.action-area { font-family: var(--font-heading); margin-top: 60px; border-top: 2px dashed rgba(96, 108, 56, 0.2); padding-top: 40px; text-align: center; }

/* WIP CONTAINER */
.wip-container {
    margin: calc(var(--header-height) + 60px) auto 60px;
    padding: 60px 40px;
    max-width: 700px;
    text-align: center;
    color: var(--black-forest);
    background: var(--floral-white);
    border: 1px solid rgba(96, 108, 56, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(96, 108, 56, 0.08);
}

.wip-container h2 {
    font-family: var(--font-heading);
    color: var(--olive-leaf);
    font-size: 2rem;
    margin: 15px 0 25px;
}

.wip-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.wip-container strong { color: var(--pen-rood); }

.wip-icon {
    font-size: 4rem;
    color: var(--pen-oranje);
    display: inline-block;
    margin-bottom: 10px;
    animation: swing 3s ease-in-out infinite alternate;
}

/* Extra witruimte knop-sectie */
.wip-container div[style*="margin-top"] {
    margin-top: 40px !important;
    padding-top: 30px;
    border-top: 2px dashed rgba(96, 108, 56, 0.3);
}

/* LOADING & EMPTY STATES */
.loading-container { grid-column: 1 / -1; display: flex; justify-content: center; padding: 50px 0; }
.loading-spinner { width: 40px; height: 40px; border: 4px solid rgba(96, 108, 56, 0.15); border-top-color: var(--olive-leaf); border-radius: 50%; animation: spin 1s linear infinite; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--olive-leaf); font-style: italic; }

/* ANIMATIES */
@keyframes swing { 0% { transform: rotate(-10deg); } 100% { transform: rotate(10deg); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* LANDSCAPE WARNING (Architect Feature) */
#landscape-warning { display: none; }
@media only screen and (max-width: 900px) and (orientation: portrait) {
    body:has(.app-container.split-view) #landscape-warning {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: var(--black-forest); color: var(--cornsilk);
        z-index: 99999; display: flex; flex-direction: column;
        align-items: center; justify-content: center; text-align: center; padding: 20px;
    }
    body:has(.app-container.split-view) { overflow: hidden; }
}

/* ========================================= */
/* TAB-SYSTEEM                               */
/* ========================================= */

/* 17. TAB-SYSTEEM VERFIJND */
.tabs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Desktop: Tabs links, Content rechts */
.tabs-vertical {
    flex-direction: row;
    align-items: flex-start;
}

.tab-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    background: rgba(96, 108, 56, 0.05);
    padding: 10px;
    border-radius: 15px;
    flex-shrink: 0; /* Voorkomt dat de knoppen kolom smaller wordt */
}

.tabs-vertical .tab-list {
    flex-direction: column;
    width: 260px;
}

/* De Content Container moet de rest van de breedte vullen */
.tab-content-container {
    flex-grow: 1; /* Dit zorgt ervoor dat de simulatie de ruimte rechts opvult */
    min-width: 0;  /* Cruciaal voor responsiviteit binnen flexbox */
    min-height: 300px;
}

.tab-btn {
    padding: 12px 18px;
    border: 2px solid transparent;
    background: transparent;
    color: var(--olive-leaf);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
}

.tab-btn:hover {
    background: rgba(96, 108, 56, 0.1);
}

.tab-btn.active {
    background: rgba(96, 108, 56, 0.15);
    color: var(--black-forest);
    border-color: rgba(96, 108, 56, 0.2);
}

/* BELANGRIJK: Verberg niet-actieve content */
.tab-content {
    display: none; /* Standaard alles weg */
    width: 100%;
}

.tab-content.active {
    display: block; /* Alleen de actieve tonen */
    animation: fadeIn 0.3s ease;
}

/* Zorg dat in fullscreen alleen de actieve container getoond wordt */
body.fullscreen-mode .tab-content:not(.active) .sim-container {
    display: none !important;
}

/* Zorg dat de container altijd zijn ratio behoudt als de tab actief is */
.tab-content.active .ratio-16-9 { padding-bottom: 56.25%; }
.tab-content.active .ratio-4-3  { padding-bottom: 75%; }
.tab-content.active .ratio-3-2  { padding-bottom: 66.66%; }
.tab-content.active .ratio-1-1  { padding-bottom: 100%; }

/* Zorgt dat de rechterkolom de volledige breedte benut */
.tab-content-container {
    flex: 1;
    min-width: 0;
}

/* Specifieke correctie voor mobiele titels */
@media (max-width: 480px) {
    .page-intro h1 { font-size: 1.5rem !important; }
}


/* Mobiele aanpassing */
@media (max-width: 900px) {
    .tabs-vertical {
        flex-direction: column;
    }
    .tabs-vertical .tab-list {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
}

/* 18. FULLSCREEN BULLET NAVIGATION (VERFIJND) */
body.fullscreen-mode .tabs-wrapper {
    flex-direction: column !important;
}

/* De tab-lijst als subtiele zwevende bar onderaan */
body.fullscreen-mode .tab-list {
    position: fixed;
    bottom: 30px;
    right: 90px; /* Ruimte voor de FAB button rechts */
    left: auto;
    transform: none;
    z-index: 100001;
    background: rgba(255, 255, 255, 0.1); /* Zeer subtiel wit */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 12px;
    flex-direction: row !important;
    width: auto !important;
    gap: 15px;
    display: flex;
}

/* De bolletjes */
body.fullscreen-mode .tab-btn {
    width: 12px;
    height: 12px;
    padding: 0;
    min-width: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: transparent;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* Actieve bolletje: WiskundeHulp Groen */
body.fullscreen-mode .tab-btn.active {
    background: var(--olive-leaf); /* De olijfgroene themakleur */
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(96, 108, 56, 0.4);
}

body.fullscreen-mode .tab-btn:hover {
    transform: scale(1.3);
}

/* De onzichtbare grotere hitbox */
body.fullscreen-mode .tab-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;  /* De effectieve klikruimte */
    height: 30px; /* De effectieve klikruimte */
    background: transparent;
}

/* ========================================= */
/* RESPONSIVE TABS & CONTENT                 */
/* ========================================= */

@media (max-width: 900px) {
    /* 1. Tabs boven, Content onder */
    .tabs-vertical {
        flex-direction: column !important;
        gap: 20px;
    }

    .tabs-vertical .tab-list {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto; /* Scrollen als er te veel tabs zijn */
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        background: rgba(96, 108, 56, 0.05);
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* 2. Zorg dat de content weer verschijnt */
    .tab-content-container {
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* 1. Forceer de volgorde: eerst simulatie, dan bolletjes */
    .tabs-vertical {
        display: flex !important;
        flex-direction: column !important;
    }

    .tab-content-container {
        order: 1; /* Simulatie komt eerst */
        width: 100%;
        overflow: hidden; /* Fix voor de verspringende scrollbalk */
    }

    .tabs-vertical .tab-list {
        order: 2; /* Bolletjes komen eronder */
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        
        /* HERSTEL: De exacte Glass Look van Fullscreen */
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px auto 30px auto; 
        width: auto !important;
        border-radius: 30px;
        padding: 8px 16px;
        gap: 15px;
    }

    /* 2. De bolletjes (Tekst verbergen) */
    .tabs-vertical .tab-btn {
        width: 12px;
        height: 12px;
        padding: 0 !important;
        min-width: 0 !important;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2) !important; /* Gelijk aan fullscreen */
        color: transparent !important;
        font-size: 0;
        border: 1px solid rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, background-color 0.3s ease;
        position: relative;
    }

    /* 3. Actief bolletje: Jouw thema-groen */
    .tabs-vertical .tab-btn.active {
        background: var(--olive-leaf) !important;
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(96, 108, 56, 0.4);
    }

    /* 4. Fix voor het verspringen (Scrollbar bug) */
    .tab-content {
        overflow: hidden; /* Voorkomt dat de iframe een tijdelijke scrollbalk triggert */
    }
}
/* ========================================= */
/* TIJDELIJKE VERBORGEN ELEMENTEN            */
/* ========================================= */

/* Koffie knop verbergen voor hobby-fase */
.nav-cta {
    display: none !important;
}