/*
 * ⚠️  BELANGRIJK: CSS COMPONENT REFERENTIES
 * 
 * ALLE CSS component bestanden worden geladen via <link> tags in index.html
 * voor betere performance (parallelle downloads).
 * 
 * VOEG HIER GEEN @import statements toe - gebruik index.html!
 * 
 * Dit bestand bevat alleen:
 * - CSS variabelen (:root)
 * - Algemene body/html styling
 * - Utility classes die niet in aparte componenten horen
 */

/* Forced Colors Mode support */
@media (forced-colors: active) {
  :root {
    forced-color-adjust: none;
  }
}

/* Algemene stijlen */
:root {
  --primary-purple: #662483;
  --secondary-purple: #8A4A9E;
  --accent-purple: #F2E6F7;
  --white: #ffffff;
  --light-gray: #f8f9fa; /* Lichter grijs voor achtergronden */
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --light-purple: #e9e4f0;
  --medium-purple: #d3c6e7;
  --dark-purple: #a683c7;
  --border-radius-standard: 8px;
  --border-radius-large: 12px;
  --text-muted: #6c757d;
  --secondary-purple-accent: #ffc107;
  --primary-yellow: #ffc107;
  --secondary-yellow: #ffca28;
  --success-green: #10B981;
  --error-red: #EF4444;
  --warning-orange: #F59E0B;
  --accent-blue: #0077C8;
  --accent-orange: #F5A623;
  --background-white: #FFFFFF;
  --background-light-gray: #F8F9FA;
  --background-medium-gray: #E9ECEF;

  /* Nieuwe variabelen voor een robuuster thema */
  --black: #000000;
  
  /* Neutrale en grijstinten */
  --text-medium: #666666; /* Voor minder belangrijke tekst, ondertitels */
  --text-light: #999999; /* Voor placeholders, uitgeschakelde tekst */
  --border-color-light: #dddddd;
  --border-color-medium: #dee2e6;
  --border-color-dark: #ced4da;
  --border-color-extralight: #eeeeee;
  --border-color-dashed: #bdc3c7;
  
  /* Statuskleuren: Success, Error, Info, Warning */
  --success-text: #155724;
  --success-background: #d4edda;
  --success-border: #28a745;
  --success-border-light: #c3e6cb;
  --success-background-light: #e6ffe6;
  --success-background-lighter: #f0fff0;
  
  --error-text: #721c24;
  --error-text-strong: #D32F2F;
  --error-background: #f8d7da;
  --error-background-light: #FFF0F0;
  --error-background-lighter: #fff0f0;
  --error-border: #dc3545;
  --error-border-light: #f5c6cb;

  --info-text: #004085;
  --info-background: #e3f2fd;
  --info-border: #2196f3;
  --info-blue: #3498db;
  --info-blue-dark: #2980b9;
  
  --warning-background: #fffbe6;
  --warning-border: #f8c000;

  /* Quiz & Accentkleuren */
  --accent-color-primary: #3a6cf6;
  --accent-color-secondary: #3ad29f;
  --accent-color-error: #f66c6c;
  --accent-color-text: #2a2a2a;
  --accent-color-text-darker: #222;
  --accent-color-background-light: #f6f8fc;
  --accent-color-background-medium: #eaf1ff;
  --accent-color-background-dark: #b7c7f6;
  --accent-color-secondary-dark: #2bbf8a;
  --accent-color-error-background: #fff0f0;

  /* Aanvullende merkkleuren */
  --accent-purple-light: #ede9fe;
  --accent-purple-medium: #a78bfa;
  --text-dark-blue: #34495e;
  --text-dark-blue-2: #2c3e50;
  --accent-teal: #00a19a;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--dark-gray);
  background-color: var(--white); /* Dit is de enige beoogde wijziging */
  line-height: 1.6;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-purple);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-gray);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

/* Icons en afbeeldingen */
.icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Introductie titel styling */
.introductie-titel {
  color: var(--primary-purple);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

/* Note styling */
.note {
    font-style: italic;
    color: var(--secondary-purple);
    margin-top: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-purple);
    clear: both;
}

/* Learning objectives styling */
.leerdoelen-sectie, .vervolgtraject {
    margin-top: 25px;
}

.leerdoelen-sectie h4, .vervolgtraject h4 {
    color: var(--primary-purple);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.vervolgtraject p {
    margin-bottom: 15px;
}



/* Note Box Styling */
.note-box {
    background: var(--accent-purple);
    border-left: 4px solid var(--primary-purple);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.note-box h4 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.note-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments for ethical reflection */
@media (max-width: 768px) {
    .ethical-reflection-grid {
        grid-template-columns: 1fr;
    }
}

/* Resource Grid */
.tech-resources {
    margin: 2rem 0;
}

.tech-resources h3 {
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 1.5rem;
}

.resource-grid, .benefits-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom op mobiel */
    gap: 2rem;
    margin-top: 1.5rem;
}

/* 2 kolommen voor schermen breder dan 600px */
@media (min-width: 600px) {
    .resource-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.resource-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text */
}

.resource-card h4 {
    color: var(--primary-purple);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow p to grow to push button down */
}

.resource-card .btn {
    margin-top: auto; /* Pushes button to the bottom */
}

.resource-logo {
    max-height: 80px; /* Maximale hoogte voor de logo's */
    width: auto; /* Breedte automatisch aanpassen aan hoogte */
    max-width: 100%; /* Zorg dat het logo niet breder is dan de kaart */
    object-fit: contain; /* Behoud aspect ratio, schaal binnen dimensies */
    margin-bottom: 1rem;
}

/* Specifieke aanpassingen indien nodig per logo voor betere uitlijning (voorbeeld) */
.resource-logo[alt="GGD AppStore Logo"] {
    max-height: 60px; /* Iets kleiner als het logo van nature al erg breed is */
}

.resource-logo[alt="Zorginnovatie.nl Logo"] {
    max-height: 50px; /* Nog iets kleiner voor zeer brede/kleine logo's */
}

.resource-logo[alt="Zorg van Nu Logo"] {
    max-height: 70px;
}

/* Technologie Categorieën */
.tech-categories, .categories-grid { /* Geconsolideerd */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 1100px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid var(--primary-purple);
    padding: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h4 {
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    border-bottom: 2px solid var(--accent-purple);
    padding-bottom: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.category-content {
    color: #555;
}

.category-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.category-content li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.category-content li:before {
    content: "•";
    color: var(--info-blue);
    position: absolute;
    left: 0;
}

.example-text {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
    font-size: 0.9rem;
    border-top: 1px dashed #ddd;
    padding-top: 0.5rem;
}

/* Certificate Info Styles */
.certificate-info {
    margin: 2rem 0;
}

.certificate-info h4 {
    color: var(--text-dark-blue-2);
    margin: 1.5rem 0 1rem;
}

.certificate-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.source {
    font-size: 0.85em;
    color: var(--text-medium);
    font-style: italic;
    margin-left: 0.5em;
}

/* Responsive adjustments */

.header-content,
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Floating hamburger button styles */
.floating-hamburger .progress-ring {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-hamburger .progress-ring circle {
  fill: none;
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.floating-hamburger .hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.floating-hamburger .hamburger-lines span {
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* Add animation for hamburger to X when sidebar is open */
body.sidebar-open .floating-hamburger .hamburger-lines span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

body.sidebar-open .floating-hamburger .hamburger-lines span:nth-child(2) {
  opacity: 0;
}

body.sidebar-open .floating-hamburger .hamburger-lines span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.competency-assessment .btn {
    margin-top: 2rem;
}

.btn-clear-progress {
    display: block;
    width: calc(100% - 40px); /* Take padding of sidebar-nav into account */
    margin: 15px 20px;
    padding: 10px 15px;
    background-color: var(--white);
    color: var(--dark-gray); /* Subtielere tekstkleur initieel */
    border: 2px solid var(--medium-gray); /* Subtielere rand initieel */
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

.btn-clear-progress:hover {
    background-color: var(--error-background-light); /* Lichte rood/roze achtergrond */
    color: var(--error-text-strong); /* Sterkere rode tekstkleur */
    border-color: var(--error-text-strong); /* Sterkere rode randkleur */
    box-shadow: 0 4px 16px rgba(211,47,47,0.12);
    transform: scale(1.04);
}

/* Certificate Section Styling */
.certificate-section {
  margin-top: 20px; /* Adjusted from 40px as hr already provides top margin */
  padding: 30px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--medium-gray);
  text-align: center;
}

.certificate-section h3 {
  color: var(--primary-purple);
  font-size: 1.5rem; /* Consistent with other section sub-titles */
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent-purple);
}

.certificate-section p {
    margin-bottom: 20px;
}

.certificate-section .input-field {
  margin-bottom: 20px;
  width: 100%;
  max-width: 450px;
  display: block;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
}

.certificate-section .btn {
    /* Using global .btn style, but can be customized if needed */
    /* e.g., display: block; margin: 0 auto; if you want it centered */
}

/* Enhanced Quiz Results Styling */
#quiz-results-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

#quiz-results-container.results-excellent {
    border-top: 5px solid var(--success-border);
}

#quiz-results-container.results-passed {
    border-top: 5px solid var(--success-border);
}

#quiz-results-container.results-warning {
    border-top: 5px solid var(--primary-yellow);
}

#quiz-results-container.results-failed {
    border-top: 5px solid var(--error-border);
}

.results-header h2 {
    color: var(--dark-gray);
    font-size: 2em;
    margin-bottom: 25px;
}

.results-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.score-visual {
    width: 120px;
    height: 120px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease-in-out;
}

#quiz-results-container.results-passed .circle {
    stroke: #28a745; /* Green */
}
#quiz-results-container.results-failed .circle {
    stroke: #dc3545; /* Red */
}

.percentage-text {
    fill: var(--dark-gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.6em; /* Relative to SVG viewbox */
    text-anchor: middle;
    font-weight: bold;
}

.score-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-text p {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.score-text .pass-message {
    color: #28a745;
    font-weight: bold;
}

.score-text .fail-message {
    color: #dc3545;
    font-weight: bold;
}

.quiz-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quiz-actions .btn {
    padding: 10px 20px;
    font-size: 1em;
    display: inline-flex; /* To align icon and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.btn-icon {
    width: 18px;
    height: 18px;
    /* Add filter if icons are single color and need to match button text, e.g.: */
    /* filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(10deg) brightness(105%) contrast(101%); */
}

/* Review Mode Icons */
.mc-options.review-options .mc-option {
    display: flex;
    align-items: center;
}

.option-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.option-icon.correct-icon,
.option-icon.correct-icon-outline {
    /* Assuming SVGs, color can be controlled by fill/stroke in SVG or CSS if they are inline */
    /* For img src SVGs, they need to be colored correctly or use filters if they are monochrome */
}

.option-icon.incorrect-icon {
    /* As above */
}

.review-nav-buttons {
    margin-top: 15px;
}

#quiz-review-details-container .mc-question {
    background-color: #f9f9f9; /* Slightly different bg for reviewed question */
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
}

/* Extra inspringing voor locaties bullets in hoofdstuk 1 */
.locaties-list-indent {
  padding-left: 2.5em;
}

.style-guide-item .benefit-card h3 {
  color: var(--white) !important;
}

.qr-code-icon {
    margin: 1.5rem 0;
    color: var(--primary-purple);
}

.qr-code-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-container img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.style-guide-item .benefit-card h3 {
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  font-size: 1.1rem;
}

.collapsible-section {
    margin-bottom: 1rem;
}

.showcase-end-bar {
    background-color: var(--secondary-purple-accent);
    color: var(--dark-gray);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-standard);
}

/* Override for showcase collapsible buttons */
.style-guide .collapsible {
    background-color: var(--secondary-purple-accent);
    color: var(--dark-gray);
}

.style-guide .collapsible.active, .style-guide .collapsible:hover {
    background-color: #e0a800; /* Darker orange */
}

.style-guide .collapsible::after {
    filter: invert(1) brightness(0.2);
}

.showcase-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 1.5rem;
}

.btn-secondary {
    background-color: var(--medium-gray);
    color: var(--dark-gray);
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    transform: none; /* override default btn hover */
}

/* Content secties */
.content-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-standard);
    box-shadow: var(--shadow);
}

.content-section .section-title {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.content-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Voorbeelden */
.examples {
    margin-top: 1rem;
}

.example {
    background: var(--white);
    border-radius: var(--border-radius-standard);
    padding: 1rem;
    margin-bottom: 1rem;
}

.example p {
    margin: 0.5rem 0;
}

/* Tabel styling */
.table-container {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius-standard);
}

.content-table th,
.content-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--medium-gray);
}

.content-table th {
    background: var(--primary-purple);
    color: var(--white);
    font-weight: 600;
}

.content-table tr:nth-child(even) {
    background: var(--medium-gray);
}

.content-table tr:nth-child(even) td {
    border-color: var(--white);
}

/* Analyses */
.analyses {
    margin-top: 1.5rem;
}

.analysis {
    background: var(--light-gray);
    border-radius: var(--border-radius-standard);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.analysis h4 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

/* Ezelsbruggetje */
.rock-list {
    list-style: none;
    padding: 0;
}

.rock-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.rock-list li:before {
    content: "•";
    color: var(--primary-purple);
    position: absolute;
    left: 0;
}

/* Privacy waarschuwing */
.warning-card {
    background: #fff3cd;
    border: 1px solid #ffeeba;
}

.warning-item {
    margin-bottom: 1.5rem;
}

.warning-item h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.pitfalls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pitfall-card {
    background: var(--white);
    border-radius: var(--border-radius-standard);
    padding: 1rem;
    border: 1px solid #ffeeba;
}

.pitfall-card h5 {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .pitfalls-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 1rem;
    }

    .results-summary {
        flex-direction: column;
        gap: 15px;
    }
}

#show-options-block.initial-height {
    min-height: 250px; /* Pas deze waarde eventueel aan voor de gewenste hoogte */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centreert de knop verticaal */
    align-items: center; /* Centreert de knop horizontaal */
}

.btn-show-options {
    background-color: var(--primary-purple);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius-standard);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
    border: none; /* Geen standaard browser border */
    /* display: block; and margin: auto; are no longer needed due to flex container */
    margin-bottom: 10px; /* Behoud ruimte onder de knop */
}

.btn-show-options:hover {
    background-color: #ffca28;
}

.wist-je-dat-title {
    margin-top: 0;
    color: var(--primary-purple);
}

/* Base styles for interactive blocks */
.interactive-block {
    background-color: #ffffff;
}

.info-card-footer-text {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.9em;
    border-top: 1px solid var(--light-gray);
    padding-top: 0.8rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */