/* COLORS & VARIABLES */
:root {
  --menu-width-expanded: 250px;
  --menu-width-collapsed: 68px;
  --menu-width: var(--menu-width-expanded);
  --KindowGeel: #fcc019;
  --Kindowlichtgrijs: #D9D9D9;
  --KindowDonkergrijs: #B0B0B0;
  --DonkerGrijs: #858585;
  --accent: #e74c3c;
  --text: #575757;
  --textWhite: #ffffff;
  --background: white;
  --row-border: #e5e7eb;
  --hovercolor: #f2f1f1;
  --submenu-bg: #fbfbfb81;
  --icon-active: #000000;
  --icon-standaard: #B0B0B0;
  --input-background: #ffffff;
  --table-row-even-bg: #f9f9f9;
  --table-row-even-odd-bg: #ffffff;
  --table-row-hover-bg: #f1f1f1;

  /* Handle-specifiek */
  --handle-bg: var(--KindowDonkergrijs);
  --handle-color: var(--textWhite);
  --textarea-bg: var(--Kindowlichtgrijs);
  --textarea-color: var(--text);
  --button-bar-bg: var(--KindowDonkergrijs);
}

/* Dark mode overrides */
html.dark-mode {
  --KindowGeel: #ffd54a;
  --Kindowlichtgrijs: #3a3a3a;
  --KindowDonkergrijs: #2a2a2a;
  --DonkerGrijs: #1e1e1e;
  --accent: #e74c3c;
  --text: #e0e0e0;
  --textWhite: #e5e5e5;
  --background: #121212;
  --row-border: #2a2a2a;
  --hovercolor: #1f1f1f;
  --submenu-bg: #1a1a1a;
  --icon-active: #ffffff;
  --icon-standaard: #858585;
  --input-background: #3a3a3a;
  --table-row-even-bg: #1a1a1a;
  --table-row-even-odd-bg: #121212;
  --table-row-hover-bg: #2a2a2a;

  /* Handle-specifiek */
  --handle-bg: var(--KindowDonkergrijs);
  --handle-color: var(--textWhite);
  --textarea-bg: var(--Kindowlichtgrijs);
  --textarea-color: var(--textWhite);
  --button-bar-bg: var(--KindowDonkergrijs);
}

/* Dark mode: Logo zwarte delen wit maken */
html.dark-mode #Logo path[style*="fill:#231f20"],
html.dark-mode #Logo path[fill="#231f20"] {
  fill: #ffffff !important;
}

/* NOTE: Removed global !important fallbacks so hover/active colors can win.
   Rely on per-instance `--icon-bg` and the loader to set it. */

/* Icon background circle: use instance variable so <use> instances pick it up */
svg .bg-circle {
  fill: var(--icon-bg, #ffffff);
}

/* Prefer instance-level CSS variable so <use> instances can override via the SVG element */
.icon svg {
  --icon-bg: #ffffff;
}

/* Ensure only the background circle is forced by the instance variable.
   This preserves hover/active color behavior for the rest of the icon. */
.icon svg .bg-circle {
  fill: var(--icon-bg) !important;
}

html.dark-mode .icon svg {
  --icon-bg: #000000;
}

/* If instance variable isn't available, the fill fallback above uses #ffffff. */

/* BODY & LAYOUT */

@font-face {
    font-family: 'Proxima Nova Alt Cn Rg';
    src: url('ProximaNovaACond-Regular.woff2') format('woff2'), url('ProximaNovaACond-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
html {
  font-size: 16px;
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
}

body, button, .button, input, select, .dropdown, label, .tooltip, .console .table td, .console .table th {
  font-family: inherit;
  font-size: inherit;
}

/* Ensure all inputs and selects inherit text color for dark mode compatibility */
input, select, textarea {
  color: var(--text);
}

html, body {
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden; /* alleen om horizontale scroll te voorkomen */
}

body {
  display: flex;
  flex-direction: row;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

a {
  text-decoration: none;
}

.card {
  overflow: visible !important;
  position: relative; /* niet absolute */
  margin: 20px 20px 20px 0px; /* marge rondom: top right bottom left */
  background: var(--background);
  padding: 20px;
  border-radius: 0px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.card h3 {
  margin: 0 0 12px 0; /* geen top-margin, 12px onder de kop */
}

/* Voeg ruimte tussen de groepen toe */
.card .form-group:first-of-type {
  margin-top: 0; /* eerste groep bovenaan de card */
}

#menu-container {
  width: var(--menu-width);
  flex-shrink: 0;
  transition: width 0.25s ease;
}

body.menu-collapsed {
  --menu-width: var(--menu-width-collapsed);
}

.vertical-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex: 1 1 auto;
  margin-left: -5px;
  min-width: 0;
  min-height: 0;
  background: var(--background);
}

main#page-content {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
  min-width: 0;
  display: block;
  padding-top: 18px;
  box-sizing: border-box;
}

main#page-content > h1 {
  margin: 0 20px 12px 20px;
}

.bottom-pane {
  flex-shrink: 0;
  margin-left: 0px; /* ruimte voor menu */
  height: 200px;
  min-height: 100px;
  max-height: 80vh;
  background: var(--background);
  display: flex;
  flex-direction: column;
}

.form {
  max-width: 400px;
}

.form-group {
  margin-bottom: 50px; /* ruimte tussen de groepen */
}

.form-row {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px 0; /* alleen bottom-margin voor ruimte tussen inputs */
}

.form-row > label {
  margin-bottom: 4px;
  border-color: var(--background);
}

.form-row input {
  width: 100%;
  padding: 4px;
  background: var(--input-background);
  color: var(--text);
  border: 1px solid var(--Kindowlichtgrijs);
  border-radius: 0px;
  box-sizing: border-box;
}

.form-row select {
  width: 100%;
  padding: 6px 8px;
  background: var(--input-background);
  border: 1px solid var(--Kindowlichtgrijs);
  border-radius: 0px;
  box-sizing: border-box;
  color: var(--text);
  appearance: none; /* keep native arrow but allow styling */
}

.form-row input:focus {
  outline: none; /* verwijdert de standaard blauwe rand */
  border-color: var(--KindowGeel); /* kies hier de gewenste kleur */
  box-shadow: 0 0 0 2px rgba(252, 192, 25, 0.2); /* optioneel: subtiel highlight-effect */
}

.form-row select:focus {
  outline: none;
  border-color: var(--KindowGeel);
  box-shadow: 0 0 0 2px rgba(252, 192, 25, 0.12);
}


.topbanner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--KindowGeel);
  padding: 10px;
  color: var(--background);
  height: var(--banner-height);
  margin: 20px 20px 10px 0px; /* marge rondom: top right bottom left */
  box-sizing: border-box;
}

.topbanner label {
  display: flex;
  gap : 8px;
  align-items: center;
  cursor: pointer;
}

/* Blokken op home page */
/* Hele sectie vult het scherm minus topbanner */
/* Blokken op home page */ 
.home-section { 
background-color: var(--background); 
padding: 60px 0; 
} 


/* Blokken op home page */
.home-section {
  background-color: var(--background);
  padding: 60px 0;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  padding: 0 25px 0 0px;
  box-sizing: border-box;
}

.home-card {
  background-color: var(--background);
  border: var(--KindowDonkergrijs) 4px solid;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* 📸 Afbeelding schaalt automatisch, behoudt verhouding */
.home-card img {
  width: 100%;
  aspect-ratio: 16 / 9;   /* verhouding: pas aan als je wilt (bijv. 4/3 of 3/2) */
  object-fit: contain;    /* toont hele afbeelding zonder afsnijden */
  background-color: var(--KindowLichtgrijs); /* vult de lege ruimte */
  padding: 10px;          /* optioneel, voor wat lucht */
}

.home-card-label {
  background-color: var(--KindowDonkergrijs);
  text-decoration: none;
  color: var(--textWhite);
  padding: 15px 10px;
  width: 100%;
  text-align: center;
}



/* 📱 Responsive gedrag */
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}
