:root{
  --cat-groente:       #43978d;
  --cat-kruiden:       #d46c4e;
  --cat-peulvruchten:  #f9ad6a;
  --cat-zaden:         #f9e07f;
  --cat-paddenstoelen: #5b3c55;
  --cat-zeewier:       #264d59;
  --cat-fruit:         #c84f4f;
  --cat-overig:        #f4f4f4;

  --legend-text: #333;
  --legend-stroke: #333;
}

.chart-wrap{
  position: relative;
  height: 420px;
  width: 100%;
}

#yearChart{
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Dashboard cards */
.dashboard-card{
  background: #EAEAEA;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}

/* Progress bar */
.progress-track{
  position: relative;
  width: 100%;
  height: 54px;
  border-radius: 10px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Fill */
.progress-fill{
  height: 100%;
  width: 0%;
  transition: width 400ms ease;
}

/* Kleuren afhankelijk van schema */
.progress-fill.on-track{ background: rgb(34, 194, 56); }
.progress-fill.behind{ background: #ef4444; }  /* rood */

/* Center label */
.progress-label{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;

  color: rgba(0,0,0,0.85);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  pointer-events: none;
}

.progress-goal{
  font-weight: 500;
  opacity: 0.7;
  margin-left: 6px;
}

/* Chart colors */

.svg-legend__swatch.is-groente{ --swatch: var(--cat-groente); }
.svg-legend__swatch.is-kruiden{ --swatch: var(--cat-kruiden); }
.svg-legend__swatch.is-peulvruchten{ --swatch: var(--cat-peulvruchten); }
.svg-legend__swatch.is-zaden{ --swatch: var(--cat-zaden); }
.svg-legend__swatch.is-paddenstoelen{ --swatch: var(--cat-paddenstoelen); }
.svg-legend__swatch.is-zeewier{ --swatch: var(--cat-zeewier); }
.svg-legend__swatch.is-fruit{ --swatch: var(--cat-fruit); }
.svg-legend__swatch.is-overig{ --swatch: var(--cat-overig); }

.svg-legend__label{ color: var(--legend-text); }

/* Plant labels container */
.plant-list{
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

/* Plant card */

.dashboard-card.plants-card{
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

/* Plant pill */
.plant-pill{
  text-align: center;
  text-transform: uppercase;
  font-size: 0.5rem;
  font-family: "Poppins", sans-serif;

  display: inline-block;
  padding: 5px 10px;
  border-radius: 0.7rem;
  margin-right: 5px;
  margin-bottom: 5px;

  line-height: 1;
  white-space: nowrap;
  color: #333;
  background: #f4f4f4
}

/* Category colors for plant pills & text */
.plant-pill.cat-groente{ background: var(--cat-groente); }
.plant-pill.cat-kruiden{ background: var(--cat-kruiden); }
.plant-pill.cat-peulvruchten{ background: var(--cat-peulvruchten); }
.plant-pill.cat-zaden{ background: var(--cat-zaden); }
.plant-pill.cat-paddenstoelen{ background: var(--cat-paddenstoelen); }
.plant-pill.cat-zeewier{ background: var(--cat-zeewier); }
.plant-pill.cat-fruit{ background: var(--cat-fruit); }

/* Witte tekst op donkere pill-achtergronden */
.plant-pill.cat-groente,
.plant-pill.cat-kruiden,
.plant-pill.cat-paddenstoelen,
.plant-pill.cat-zeewier,
.plant-pill.cat-fruit {
  color: #f4f4f4;
}

/* Zorg dat lichte categorieën expliciet donker blijven */
.plant-pill.cat-zaden,
.plant-pill.cat-peulvruchten {
  color: #333;
}

/* Fallback / niet-geclassificeerd */
.plant-pill:not([class*="cat-"]) {
  color: #333;
}

/* subtiele hover */
.plant-pill:hover{
  filter: brightness(1.1);
}

.cesium-wrap{
  position: relative;
  width: 100%;
  height: 520px;      /* pas aan naar smaak */
  border-radius: 10px;
  overflow: hidden;
}

/* Cesium credit (logo/tekst) subtieler maken */
.cesium-wrap .cesium-widget-credits{
  opacity: 0.2;
  filter: grayscale(100%);
}

/* COUNTRIES */

.country-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* 1-3 kolommen */
  gap: 10px 18px;
  margin: 16px auto 0;
  padding: 0 12px;
  max-width: 1000px;

  font-family: "Poppins", sans-serif;
}

.country-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}

.country-left{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0; /* zodat ellipsis kan */
}

.country-flag{
  width: 18px;
  text-align: center;
  flex: 0 0 auto;
}

.country-name{
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-count{
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  flex: 0 0 auto;
}

.country-item.is-active .country-name{
  font-weight: 800;
  color: rgb(34, 194, 56);
}

.country-item.is-active .country-count{
  font-weight: 800;
  color: rgb(34, 194, 56);
}

/* TAARTDIAGRAM */

.chart-wrap--donut{
  position: relative;
  height: 360px;
  width: 100%;
}

/* REGELS */

.regel {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.icoon {
  display: inline-flex;     /* ← belangrijk */
  align-items: center;
  gap: 0.1em;
  width: 2.4em;             /* vaste kolom */
  flex-shrink: 0;
  white-space: nowrap;      /* ← voorkomt afbreken */
  line-height: 1.2;
}

.tekst {
  line-height: 1.4;
}