/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
html, body {
    margin: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    /* overflow: hidden;  */
}

.wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}

.wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.slide {
    min-width: 100vw;
    flex: 0 0 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
}



.border {
    display: flex;
    flex-direction: row; /* of column */
    justify-content: center;
    align-items: stretch;

    border-radius: 30px;
    border: 5px solid #5D8172;
    padding: 20px;
    max-width: 1200px;
    width: 90vw;
    height: 720px;
    position: relative;  /*haalt scrollbar weg*/
    box-sizing: border-box;
    margin: 0 auto;
}




.center {
    display: flex;
    justify-content: center;
    align-items: center;
}


.box-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 layout */
  gap: 80px;
  width: fit-content; /* adjust to your layout */
  align-content: center;
}

.box {
  width: 320px;
  height: 220px;
  padding: 10px;
  background: #DFE9E2;
  border: 5px solid #668D78;
  margin: 0;
  border-radius: 12px; 
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #2d3a32;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  position: relative;
  overflow: hidden;
}

/* Titel bovenaan */
.box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #3c4d45;
}

/* Rij met min/max/gem */
.box .stats-row {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-row p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(47,70,61,0.08);
  width: 100%;
}

.stat-label {
  color: #3c4d45;
  font-weight: 700;
}

.stat-label::after {
  content: ":";
}

.stat-value {
  color: #2d3a32;
}

.ideal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.stats-row .stat-actual {
  margin-top: 4px;
  padding-bottom: 8px;
  border-bottom: 3px solid rgba(47,70,61,0.15);
}

/* Header met icoon + titel */
.box-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.box-header .icon {
  font-size: 26px;
}

/* Ideaal badge */
.ideal {
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #e8f2ea;
  color: #1f5f37;
  font-weight: 600;
  width: fit-content;
  display: flex;
  align-items: center;
  align-self: flex-end;
  max-width: calc(100% - 12px);
  box-sizing: border-box;
  gap: 6px;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ideal-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1ch;
  font-size: 12px;
  flex: 0 0 auto;
}

.ideal-text {
  display: inline-block;
}

.ideal-good {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}

.ideal-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.ideal-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}


.dropdown {
  position: absolute;
  top: 6px;
  right: 15px;
  z-index: 50;
}

.dropdown button {
  width: 40px;
  height: 40px;
  background-color: #5D8172;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #DFE9E2;
  font-size: 16px;
}

.dropdown .content {
  display: none;
  position: absolute;
  background-color: #DFE9E2;
  min-width: 40px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.732);
  border-radius: 12px;
}

.dropdown a{
  display: block;
  color: #2D3A32;
  text-decoration: none;
  padding: 5px 10px;
}

.dropdown:hover .content{
  display: block;
  background-color: #dfe9e274;
  border-radius: 12px;
}
.dropdown:hover button{
  background-color: #3C4D45;
}
.dropdown a:hover {
  background-color: #dfe9e274;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after,
.hamburger div {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #DFE9E2;
  border-radius: 2px;
}

.hamburger::before {
  top: 12px;
}
.hamburger div {
  top: 18px;
}
.hamburger::after {
  top: 25px;
}

.buttonright,
.buttonleft {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  width: 50px;
  height: 50px;
  background: #507063;
  cursor: pointer;

  clip-path: polygon(
    0% 0%,
    70% 0%,
    100% 50%,
    70% 100%,
    0% 100%
  );

  border-radius: 12px;
}

.buttonright {
  right: -30px;
}

.buttonleft {
  left: -30px;
  clip-path: polygon(
    100% 0%,
    30% 0%,
    0% 50%,
    30% 100%,
    100% 100%
  );
}



.slide:nth-child(1) { background: #B5CBBD; }
.slide:nth-child(2) { background: #B5CBBD; }
.slide:nth-child(3) { background: #B5CBBD; }

.charts-layout {
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  width: 90vw;
  height: 720px;
  padding: 14px 16px 12px;
  overflow: visible;
}

.border.charts-layout {
  position: relative;
  height: 720px;
  max-width: 1200px;
}

.charts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.charts-header h2 {
  margin: 0;
  font-size: 22px;
  color: #2f463d;
}

.charts-header p {
  margin: 6px 0 0;
  color: #4f635a;
  font-size: 12px;
}

.chart-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-filter {
  border: 2px solid #5d8172;
  background: #e6f0ea;
  color: #2f463d;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chart-filter.active {
  background: #507063;
  color: #ffffff;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: rgba(223, 233, 226, 0.95);
  border: 3px solid #668d78;
  color: #2d3a32;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.chart-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.chart-card__header h3 {
  margin: 0;
  font-size: 14px;
  color: #3c4d45;
}

.chart-card__header span {
  font-size: 10px;
  color: #61736a;
}

.chart-card canvas {
  width: 100% !important;
  flex: 1;
  min-height: 240px;
  height: auto !important;
}

@media (max-width: 1100px) {
  .charts-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-card canvas {
    min-height: 190px;
  }
}

/* --------------------------------------------------
   LOGIN
-------------------------------------------------- */

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #B5CBBD;
}

.login-border {
  left: 0;
  width: 900px;
  height: 520px;
  justify-content: center;
  align-items: center;
}

.login-card {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-panel {
  width: 420px;
  padding: 30px 36px;
  border: 4px solid #668D78;
  border-radius: 16px;
  background: #CFE0D7;
  color: #2F463D;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(40, 60, 52, 0.15);
}

.login-panel h2 {
  margin: 0 0 18px 0;
  font-size: 26px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #5D8172;
  border-radius: 10px;
  background: #E6F0EA;
  font-size: 16px;
  box-sizing: border-box;
}

.login-form input[type="submit"] {
  margin-top: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #507063;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.login-form input[type="submit"]:hover {
  background: #426256;
}



/* --------------------------------------------------
   COMMENTS
-------------------------------------------------- */


/*
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::-webkit-scrollbar
*/


/*
https://www.w3schools.com/css/css3_borders.asp#:~:text=The%20CSS%20border-radius%20property,create%20rounded%20corners%20for%20elements.
*/


/*
DROPDOWN TUTORIAL
https://www.youtube.com/watch?v=VQWu4e6agPc
*/

/*
3-line menu icon
https://css-tricks.com/three-line-menu-navicon/
*/

/*
.border {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    border: 5px solid #5D8172;
    padding: 20px;
    width: 1200px;
    height: 600px;
}
*/

/*
.buttonleft {
  position: absolute;
  left: -100px; 
  top: 50%;
  transform: translateY(-50%);

  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-right: 80px solid #507063;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 8px;
}
*/