/* styles.css */

@font-face {
  font-family: 'EatingPasta';
  src: url('fonts/Eating-Pasta.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1 {
    font-family: 'EatingPasta', Arial, sans-serif;
    letter-spacing: 1px;
}

h2 {
    font-family: 'EatingPasta', Arial, sans-serif;
    letter-spacing: 1px;
}

:root {
  --btn-radius: 12px;
  --accent-color: #d97a45;
  --accent-color-hover: #c96936;
}

/* Reset en basisopmaak */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* voorkom auto-zoom op mobiel */
input,
select,
textarea {
  font-size: 16px;   /* minimum 16 px */
}

.url-fetch-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.url-fetch-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.green-btn.fetch-info-btn {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 14px;
  background: #235b2a;
  border: 1px solid #235b2a;
  color: #ffffff;
}

.green-btn.fetch-info-btn:hover {
  background: #1b4a21;
  border-color: #1b4a21;
}

.url-help-text {
  margin: 2px 0 10px;
  color: #4d5a52;
  font-size: 13px;
}

.recipe-toast {
  position: fixed;
  left: 50%;
  top: 84px;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  z-index: 2500;
  background: #ffffff;
  border: 1px solid #d6f1db;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  padding: 16px 22px 14px;
  min-width: 260px;
  text-align: center;
}

.recipe-toast.show {
  animation: recipeToastIn 280ms ease forwards;
}

.recipe-toast.hide {
  animation: recipeToastOut 240ms ease forwards;
}

.recipe-toast-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #63D671;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.recipe-toast-text {
  margin: 0;
  color: #2f3a35;
  font-size: 17px;
  font-weight: 700;
}

@keyframes recipeToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes recipeToastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) scale(0.94);
  }
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8f9fa;
  color: #2d3436;
}

/* Container voor de hele pagina */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 32px auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
}

/* TAB navigatie */
.nav-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin: 0 0 24px 0;
  border-bottom: 2px solid #edf2f7;
  gap: 8px;
  justify-content: center;
  font-family: 'EatingPasta', Arial, sans-serif;
  letter-spacing: 0.5px;
}

.nav-tabs li a {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  color: #8e8e8e;
  border: none;
  border-radius: 8px 8px 0 0;
  background-color: transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-tabs li a:hover {
  color: #63D671;
  background-color: #f7fdf7;
}

.nav-tabs li a.active {
  background-color: #fff;
  font-weight: 600;
  color: #63D671;
  border-bottom: 3px solid #63D671;
}

/* Tab content */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 280ms ease forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo als afbeelding in de top-bar */
.logo-img {
  height: 46px;          /* pas aan naar wens */
  width: auto;
  display: block;
  cursor: pointer;
}

/* Hero-stijl (Tab 1) */
.hero-header {
  background: linear-gradient(135deg, #63D671 0%, #4ac858 100%);
  padding: 48px 32px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(99, 214, 113, 0.15);
}

.hero-header h1 {
  margin: 0;
  font-family: 'EatingPasta', Arial, sans-serif;
  font-size: 2.5em;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  letter-spacing: 1px;
}

.hero-header p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
}

/* Hero-filters en zoeken */
.hero-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px auto;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1000px;
}

.hero-search {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
}

.hero-search input {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 400px;
}

.hero-search input:focus {
  outline: none;
  border-color: #63D671;
  box-shadow: 0 0 0 3px rgba(99, 214, 113, 0.1);
}

/* Tijd en Random styling */
.hero-random {
  width: 100%;
  text-align: center;
  margin: 32px 0;
}

.hero-random .time-select-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-random .time-select-container select {
  margin: 0;
}

.hero-random button {
  background: linear-gradient(135deg, #63D671 0%, #4ac858 100%);
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--btn-radius);
  box-shadow: none;
  transition: all 0.2s ease;
  font-family: 'EatingPasta', Arial, sans-serif;
  letter-spacing: 2px;
}

.hero-random button:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  border-radius: var(--btn-radius);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 100px;
  transition: all 0.2s ease;
  font-family: 'EatingPasta', Arial, sans-serif;
}

.green-btn {
  background-color: #63D671;
  color: white;
  box-shadow: none;
}

.green-btn:hover {
  background-color: #4ac858;
  transform: translateY(-1px);
  box-shadow: none;
}

.pink-btn {
  background-color: var(--accent-color);
  color: white;
}

/* Formulier spacing voor 'Voeg een recept toe' */
.add-recipe-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 32px auto;
  padding: 24px;
}

#voegReceptToe h2 {
  text-align: center;
  margin-bottom: 32px;
  color: #333;
}

#addRecipeForm {
  max-width: 800px; /* Beperk de maximale breedte van het formulier */
  margin: 32px auto; /* Centreer het formulier horizontaal */
  padding: 0 16px; /* Voeg padding toe aan de zijkanten */
}

#addRecipeForm > div {
 display: grid;
  grid-template-columns: 1fr; /* Laat alles in één kolom vallen */
  gap: 16px; /* Verminder de ruimte tussen de velden */
  margin-bottom: 16px; /* Verminder de marge onder elk veld */
}


#addRecipeForm label {
  font-weight: 700;
    color: #333;
    margin-top: 8px;
}

#addRecipeForm input,
#addRecipeForm select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

#addRecipeForm input:focus,
#addRecipeForm select:focus {
  outline: none;
  border-color: #63D671;
  box-shadow: 0 0 0 3px rgba(99, 214, 113, 0.1);
}

#addRecipeForm .field-missing {
  border-color: #d8c7a1 !important;
  background-color: #fffaf0;
  box-shadow: 0 0 0 3px rgba(216, 199, 161, 0.18) !important;
}

.field-error-text {
  margin-top: -6px;
  color: #7b6b45;
  font-size: 12px;
  font-weight: 500;
}

.url-manual-note {
  margin-top: 8px;
  color: #5f6b63;
  font-size: 12px;
  line-height: 1.35;
}

#addRecipeForm button[type="submit"] {
  margin-top: 24px;
  width: 200px;
  align-self: center;
  padding: 12px 24px;
  font-size: 16px;
}

/* Verbeterde dropdown styling voor alle tabs */
select {
  appearance: none;
  background-color: #ffffff;                    /* <— altijd wit   */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363D671' 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 12px center;
  background-size: 16px;
  padding: 10px 40px 10px 16px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  font-size: 16px;
  color: #2d3436;
  cursor: pointer;
  transition: all 0.2s ease;
}

select:hover {
  border-color: #63D671;
  background-color: #f7fdf7;
}

select:focus {
  outline: none;
  border-color: #63D671;
  box-shadow: 0 0 0 3px rgba(99, 214, 113, 0.1);
}

/* Hero filters (Kies een recept tab) */
.hero-filters select {
  min-width: 160px;
  max-width: 200px;
}

/* Kleinere actieknoppen in overzicht tabel */
.action-buttons button {
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: var(--btn-radius);
}

.overview-table th:last-child,
.overview-table td:last-child {
  width: 120px;
}

/* Vernieuw overzicht knop spacing */
#overzichtRecepten button:first-child {
  margin-bottom: 32px;
}

.overview-toolbar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.overview-view-switch {
  display: inline-flex;
  gap: 8px;
}

.overview-view-btn {
  min-width: 124px;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #cfe0d4;
  background: #fff;
  color: #235b2a;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.overview-view-btn i {
  margin-right: 6px;
}

.overview-view-btn.active {
  background: #eef6ef;
  border-color: #235b2a;
  color: #235b2a;
}

/* Tabel container aanpassingen */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(149, 157, 165, 0.1);
  margin-top: 32px;
  overflow-x: auto;
}

.overview-grid-container {
  margin-top: 22px;
  display: none;
}

.overview-grid-container.active {
  display: block;
}

.overview-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.overview-page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--btn-radius);
  border: 1px solid #d3e1d7;
  background: #fff;
  color: #2f3a35;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}

.overview-page-btn.active {
  background: #235b2a;
  border-color: #235b2a;
  color: #fff;
}

/* Basis tabel styling */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* Headers styling */
.overview-table th {
  background-color: #63D671;
  color: white;
  font-weight: 600;
  padding: 12px 16px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: left;
  white-space: nowrap;
}

/* Cel styling */
.overview-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

/* Kolom breedtes */
.overview-table th:nth-child(1),
.overview-table td:nth-child(1) {
  width: 90px;
}

.overview-table th:nth-child(2),
.overview-table td:nth-child(2) {
  width: 20%;
}

.overview-table th:nth-child(3),
.overview-table td:nth-child(3),
.overview-table th:nth-child(4),
.overview-table td:nth-child(4),
.overview-table th:nth-child(5),
.overview-table td:nth-child(5) {
  width: 14%;
}

.overview-table th:nth-child(3),
.overview-table td:nth-child(3) {
  width: 30%;
}

.overview-image-cell {
  padding: 10px 12px;
}

.recipe-thumb,
.recipe-thumb-fallback,
.recipe-thumb-skeleton {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recipe-thumb {
  object-fit: cover;
  border: 2px solid rgba(99, 214, 113, 0.25);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.recipe-thumb-fallback {
  background: linear-gradient(135deg, #63D671 0%, var(--accent-color) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recipe-thumb-skeleton {
  background: linear-gradient(90deg, #eef7f0 0%, #f9fffb 50%, #eef7f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: 1px solid #e5f3e7;
}

.overview-image-cell.is-loaded .recipe-thumb-skeleton {
  display: none;
}

/* Details rij styling */
.details-row td {
  padding: 0 16px 12px 16px !important;
  background-color: #f8f9fa;
}

.details-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

/* Tijd select styling */
.time-select {
  min-width: 140px;
  max-width: 160px;
}

/* Actieknoppen container */
.action-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Actieknoppen styling */
.action-buttons button {
  min-width: 80px;
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--btn-radius);
}

/* Hover effect voor rijen */
.overview-table tr:hover td {
  background-color: #f7fdf7;
}

/* Selectbox styling in tabel */
.overview-table select {
  width: 100%;
  min-width: 120px;
  padding: 8px 32px 8px 12px;
  font-size: 13px;
}

/* Media query aanpassingen */
@media screen and (max-width: 768px) {
  .container {
    padding: 20px;
    margin: 16px auto;
  }

  .hero-header {
    padding: 32px 20px;
  }

  .hero-header h1 {
    font-size: 2em;
  }

  #addRecipeForm > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-filters select {
    min-width: 140px;
  }

  .overview-table {
    font-size: 13px;
  }

  .details-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .action-buttons {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .action-buttons button {
    min-width: 70px;
    height: 28px;
    font-size: 12px;
  }

  .hero-random button {
    font-size: 15px;
    padding: 10px 25px;
    min-width: 140px;
  }

  select {
    min-width: 160px;
  }
}

@media screen and (max-width: 480px) {

  /* ---- MOBIELE OVERRIDES ---- */
  .container {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  /* dropdowns & inputs volle breedte */
  .hero-filters select,
  .hero-search select,
  .hero-search input {
    width: 100%;
    max-width: 100%;
  }

  /* buttons volle breedte en gelijke stijl */
  .hero-search button,
  .hero-random button {
    width: 100%;
    max-width: 100%;
    border-radius: var(--btn-radius);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none;
  }

  .hero-random button {
    background-color: #63D671;  
  }

  .hero-random button:hover {
    background-color: #4ac858;
  }

  /* dropdowns krijgen geen max/min beperking */
  .hero-filters select {
    min-width: 100%;
    max-width: 100%;
  }

  .hero-header {
    border-radius: 8px;
    padding: 24px 16px;
  }

   .hero-header h1 {
    font-size: 1.3em;      
    line-height: 1.2;
  }

  .hero-header p  {
    font-size: 0.85em;     
  }

  .hero-random button {
    width: 100%;
  }
}

/* Zoekknop styling (desktop) */
.hero-search button {
  background-color: #ffffff;
  color: #235b2a;
  border: solid #235b2a 2px;
  font-family: 'EatingPasta', Arial, sans-serif;
  letter-spacing: 1px;
}

.hero-search button:hover {
  background-color: #235b2a;
  color: white;
}

/* Tabel styling */
.overview-table th {
  background-color: #63D671;
  color: white;
}

/* Actieknoppen in tabel */
.action-buttons .green-btn {
  background-color: #96FC42;
  color: #333;
  border: 1px solid #63A771;
}

.action-buttons .green-btn:hover {
  background-color: #43FD68;
}

.action-buttons .pink-btn {
  background-color: var(--accent-color);
  color: white;
}

.action-buttons .pink-btn:hover {
  background-color: var(--accent-color-hover);
}

/* Container die de kaarten naast elkaar kan zetten */
.recipe-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
}

.overview-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  grid-auto-rows: 1fr;
}

/* Individuele kaart-styling */
.recipe-card {
  flex: 0 1 380px;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 30, 18, 0.08);
  transition: transform 0.2s ease;
}

.overview-grid-cards .recipe-card {
  width: 100%;
  max-width: none;
  flex: initial;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.overview-grid-cards .recipe-card-content {
  flex: 1;
}

.overview-grid-cards .result-image-cell {
  width: 100%;
}

.overview-grid-cards .recipe-card-image,
.overview-grid-cards .recipe-card-image-skeleton,
.overview-grid-cards .recipe-card-image-fallback {
  height: 210px;
  min-height: 210px;
  max-height: 210px;
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 30, 18, 0.1);
}

.recipe-card-content {
  padding: 20px 20px 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.recipe-card h3 {
  margin: 0;
  color: #3a3a3a;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: 'EatingPasta', Arial, sans-serif;
  letter-spacing: 0.4px;
}

.result-image-cell {
  width: 100%;
  margin-bottom: 0;
  flex-shrink: 0;
}

.recipe-card-image,
.recipe-card-image-skeleton,
.recipe-card-image-fallback {
  width: 100%;
  height: 245px;
  border-radius: 0;
}

.recipe-card-image {
  object-fit: cover;
  display: block;
  border: 1px solid #d9efdd;
}

.recipe-card-image-skeleton {
  background: linear-gradient(90deg, #eef7f0 0%, #f9fffb 50%, #eef7f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: 1px solid #e5f3e7;
}

.recipe-card-image-fallback {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d8a7f;
  font-size: 14px;
  font-weight: 600;
  background: #f7fbf8;
}

.recipe-link {
  margin: 0;
}

.recipe-card p a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #4fcf62;
  border-radius: var(--btn-radius);
  background: linear-gradient(135deg, #63D671 0%, #4ac858 100%);
  box-shadow: none;
  font-family: 'EatingPasta', Arial, sans-serif;
  letter-spacing: 0.4px;
}

.recipe-card p a:hover {
  background: linear-gradient(135deg, #57ca65 0%, #46bc55 100%);
}

.recipe-meta-row {
  display: grid;
  gap: 8px;
  margin: 0;
}

.recipe-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b5650;
  font-size: 15px;
  font-weight: 600;
}

.recipe-meta-pill i {
  color: var(--accent-color);
}

.recipe-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.recipe-card li {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #37403b;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.25;
}

.recipe-card li i {
  color: var(--accent-color);
  min-width: 16px;
}

@media (min-width: 980px) {
  .recipe-card {
    flex: 1 1 900px;
    display: flex;
    align-items: stretch;
  }

  .result-image-cell {
    width: 45%;
  }

  .search-results.single-result .result-image-cell {
    width: 55%;
  }

  .recipe-card-image,
  .recipe-card-image-skeleton,
  .recipe-card-image-fallback {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }

  .recipe-card-content {
    width: 55%;
    padding: 26px 28px;
  }

  .overview-grid-cards .recipe-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .overview-grid-cards .result-image-cell {
    width: 100%;
  }

  .overview-grid-cards .recipe-card-content {
    width: 100%;
    padding: 20px 18px 18px;
  }

  .overview-grid-cards .recipe-card h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 600px) {
  .recipe-card {
    flex-basis: 100%;
  }

  .recipe-card h3 {
    font-size: 1.6rem;
  }

  .recipe-card-image,
  .recipe-card-image-skeleton,
  .recipe-card-image-fallback {
    height: 210px;
  }

  .overview-grid-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (min-width: 601px) and (max-width: 1100px) {
  .overview-grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#calorieMulti {
  min-width: 200px;
  height: auto;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}

#calorieMulti:focus {
  border-color: #63D671;
  box-shadow: 0 0 0 3px rgba(99, 214, 113, 0.1);
}

/* ===== mobiele dropdown-menu ===== */
.mobile-nav, .dropdown-icon { display:none; }
.mobile-nav-wrap { display: none; }

@media (max-width:767px){
  /* oude tab-balk verbergen, dropdown tonen */
  .nav-tabs { display:none; }

  .mobile-nav-wrap {
    display: block;
    position: relative;
    margin-bottom: 16px;
  }

  .mobile-nav {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 44px 0 14px;
    border: 1.5px solid #d7e7dc;
    border-radius: 12px;
    background: #ffffff;
    color: #2f3a35;
    font-size: 17px;
    font-family: 'EatingPasta', Arial, sans-serif;
    letter-spacing: 0.3px;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .mobile-nav:focus {
    border-color: #63D671;
    box-shadow: 0 0 0 3px rgba(99, 214, 113, 0.12);
  }

  .dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #63D671;
    font-size: 15px;
    pointer-events: none;
  }
}

/* om de icon-positionering te behouden nu het select buiten .container staat */
.mobile-nav-wrap { position: relative; }

/* link-stijl voor “Vernieuw het overzicht” */
.refresh-link{
  color: var(--accent-color);
  text-decoration:underline;
  font-weight:600;
  cursor:pointer;
  background:none;
  border:none;
  padding: 20px 0px;
}

/* ══════════════ TOP-BAR ══════════════ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-inner {
  width: min(1200px, 100%);
  max-width: 1200px;
  margin: 0 auto;               /* centreert zoals .container */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topbar .logo {
  font-size: 22px;
  font-weight: 700;
  color: #63D671;       /* zelfde groen */
}

.topbar-action-btn {
  border: none;
  background: transparent;
  padding: 4px 6px;
  min-width: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #30363f;
  font-size: 14px;
  font-weight: 600;
}

.action-icon-shell {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #2f3740;
}

.action-icon-shell i {
  line-height: 1;
}

.install-app-btn {
  color: #2f3740;
}

.install-app-btn .action-icon-shell {
  color: inherit;
}

.install-text,
.login-text {
  font-size: 14px;
  line-height: 1;
  color: #2f3740;
  white-space: nowrap;
}

.topbar-chevron {
  font-size: 13px;
  color: #2f3740;
  margin-left: 1px;
}

.auth-icon-shell {
  color: #2f3740;
}

.auth-status-badge {
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ff2a2a;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.auth-status-badge.is-logged-in {
  background: #4dca5b;
}

@media (max-width: 900px) {
  .topbar {
    padding: 8px 12px;
  }

  .topbar-inner {
    gap: 8px;
  }

  .logo-img {
    height: 40px;
    width: auto;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-action-btn {
    padding: 4px;
    gap: 5px;
  }

  .action-icon-shell {
    width: 24px;
    height: 24px;
    font-size: 25px;
  }

  .install-text,
  .login-text {
    font-size: 13px;
  }

  .topbar-chevron {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 6px 10px;
  }

  .topbar-inner {
    gap: 6px;
  }

  .topbar-action-btn {
    padding: 3px;
    gap: 4px;
  }

  .action-icon-shell {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  .login-text,
  .install-text {
    font-size: 12px;
    display: none;
  }

  .login-text {
    display: inline;
  }

  .topbar-chevron {
    font-size: 11px;
  }

  .auth-status-badge {
    width: 12px;
    height: 12px;
    font-size: 7px;
    right: -4px;
    bottom: -1px;
  }
}

/* ══════════════ MODAL OVERLAY ══════════════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

.modal.hidden { display: none; }

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

/* Tabs boven het formulier */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px 0;
  background: #f5f5f5;
  border: none;
  border-radius: var(--btn-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.auth-tab.active {
  background: linear-gradient(135deg,#63D671 0%,#4ac858 100%);
  color: #fff;
}

.auth-pane      { display: none; }
.auth-pane.active { display: block; }

/* Meldingen */
.auth-msg { margin-top: 16px; font-weight: 600; }
.auth-msg.error  { color: #c94f73; text-align:center; }
.auth-msg.success{ color:#63D671; text-align:center; }


.logged-msg {
  font-size: 1.1rem;
  font-weight: 600;
  color: #63D671;               /* zelfde groen */
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Logged-in pane ---------- */
.logged-pane {
  text-align: center;
  padding: 16px 12px 28px;
}

.success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #63d671;                 /* huisstijl-groen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon i {
  font-size: 36px;
  color: #fff;
}

.logged-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.logged-sub {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 24px;
  color: #444;
}

.logout-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #c94f73;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: transform .15s;
}
.logout-btn:hover {
  transform: translateY(-2px);
}

/* ---------- AUTH COMMON ---------- */
.auth-title   { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; color:#235b2a; }
.auth-sub     { font-size: .95rem; color:#3a3a3a; margin-bottom: 24px; }
.auth-form    { display:flex; flex-direction:column; gap:16px; }

.auth-label   { font-size:.9rem; font-weight:600; color:#222; margin-bottom:4px; }
.input-wrap   { position:relative; }
.input-wrap input {
  width:100%; padding:12px 40px 12px 14px;
  background:#f5f5f5; border:none; border-radius:8px;
}
.input-wrap i {
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  color:#999; pointer-events:none;
}

.primary-btn {
  padding:12px 0; border:none; border-radius:var(--btn-radius);
  font-size:1rem; font-weight:600; color:#fff;
  background:#4eca5c;         
  box-shadow:none;
  cursor:pointer; transition:.15s;
  font-family: 'EatingPasta', Arial, sans-serif;
  letter-spacing: 1px;
}
.primary-btn:hover { transform:translateY(-2px); }

.primary-btn.alt   { 
  background: var(--accent-color);
  box-shadow: none; 
    font-family: 'EatingPasta', Arial, sans-serif;
    letter-spacing: 1px;
}
  

.ghost-btn {
  background:none; border:none; color:#5fd46d; 
  font-weight:600; cursor:pointer; padding:0; margin-left:4px;
}
.ghost-btn:hover { text-decoration:underline; }

.auth-switch {
  margin-top:28px; font-size:.9rem; color:#333;
  display:flex; justify-content:center; align-items:center; gap:4px;
}

.auth-switch-single {
  margin-top: 14px;
}

/* 1. Close-icoon beter uitlijnen */
.modal-close {
  top: 12px;          /* i.p.v. 16px → iets hoger */
  right: 12px;        /* i.p.v. 16px → iets dichter op de rand */
  font-size: 22px;    /* net iets groter voor visuele balans */
}

/* 2. Meer lucht in het auth-scherm */
.auth-pane {
  /* overal extra binnenmarge */
  padding: 20px 24px 32px;
}

/* Responsive modal aanpassingen */
@media screen and (max-width: 480px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    padding: 24px 20px;
    max-width: 100%;
    border-radius: 12px;
  }
  
  .auth-pane {
    padding: 16px 20px 24px;
  }
  
  .modal-close {
    top: 8px;
    right: 8px;
    font-size: 20px;
  }
}
/* hoofd-titels & subtitels iets verder uit elkaar */
.auth-title  { margin-bottom: 10px; }
.auth-sub    { margin-bottom: 28px; }

/* labels → iets meer afstand tot veld eronder */
.auth-label  { margin-bottom: 6px; }

/* input-blokken onderling ruimer */
.auth-form   { gap: 24px; }            /* was 16px */

/* knop lossere bovenmarge t.o.v. laatste veld */
.primary-btn { margin-top: 8px; }

/* tekstlink-switch extra ruimte erboven */
.auth-switch { margin-top: 32px; }

/* === HOE WERKT HET (nieuw) === */
.how-works{
  padding-inline: clamp(16px,4vw,64px);
  max-width: 1200px;
  margin: 64px auto;
}
.how-works h2{
  text-align:center;
  margin-bottom:48px;
  font-weight:800;
  color:#3a3a3a;
  font-family:'Inter',sans-serif;
    font-size: clamp(2.2rem, 2.4vw, 3rem);
    line-height: 1.15;
        font-family: 'EatingPasta', Arial, sans-serif;
    letter-spacing: 1px;
  }

/* desktop/tablet: foto links, tekst rechts */
.step{
  display:flex;
  align-items:flex-start;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: 56px;
}

.step-text p{
    font-size: clamp(1.15rem, 1.1vw, 1.35rem); /* body groter */
    line-height: 1.55;
}

.step-img{
  /* foto schaalt automatisch kleiner tot het niet meer past */
  flex: 0 1 clamp(200px, 32vw, 420px);
}
.step-img img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.step-content{
  flex: 1 1 420px;
  min-width: 260px;
}

.step-number {
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    padding: 16px 34px;
    border-radius: 999px;
    background: #fff;
    color: #2dbd6a;
    border: 0px solid #2dbd6a;
    margin: 0 0 10px 0;
    box-shadow: 0 0 10px 0px #b4b4b4;
    font-size: clamp(1.8rem, 1.2vw, 1.6rem);
    font-family: 'EatingPasta', Arial, sans-serif;
    letter-spacing: 1px;
}

.step-number::before{
  content: "Stap ";
}

.step-text p{
  font-size:1.4rem;
  line-height:1.5;
  margin:0;
}

@media (max-width: 860px){
  .step{
    flex-direction: column;
    gap: 14px;             
    margin-bottom: 80px;   
  }
  .step-content { 
    
    flex: 1 1 100px;
    text-align:center;
  }
  
  
    .step-img{
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .step-text p{ margin: 0; }
}

/* CTA onder het stappenplan */
.cta-wrap{
  text-align: left;
  margin-top: 16px;          /* desktop */
}
.start-btn{
  display: inline-block;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  background: linear-gradient(135deg, #63D671 0%, #4ac858 100%);
  color: #fff;
  box-shadow: none;
  transition: transform .15s, box-shadow .15s;
  font-size: 1.8rem;
  font-family: 'EatingPasta', Arial, sans-serif;
  letter-spacing: 1px;

}
.start-btn:hover{
  transform: translateY(-2px);
  box-shadow: none;
}

/* iets meer marge op telefoon */
@media (max-width: 860px){
  .cta-wrap{ 
    margin-top: 24px;
    text-align: center;
  }
  
.start-btn{
  font-size: 2rem;
}
}

/* Alleen "Hoe werkt het?" tonen bij actieve tab #kiesRecept */
#hoeWerktHet { 
  display: none; 
}

.container:has(#kiesRecept.tab-content.active) + #hoeWerktHet {
  display: block;
}

.container:has(#kiesRecept.tab-content.active) ~ #hoeWerktHet {
  display: block;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid #e5ece7;
  background: #ffffff;
  padding: 10px 0;
}

.site-footer-inner {
  width: min(1200px, 95%);
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-current {
  color: #235b2a;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links a {
  color: #235b2a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

.footer-links a:hover {
  border-color: #235b2a;
}

@media (max-width: 767px) {
  .site-footer-inner {
    min-height: unset;
    padding: 14px 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

/* ===== VOORDELENBALK ===== */
.benefits-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  max-width: 760px;
  padding: 8px 16px;
  margin: 10px auto -4px auto;
  border: 1px solid #e1e8e3;
  border-radius: 999px;
  background: #f8fbf9;
  text-align: center;
  font-size: 0.9rem;
  color: #2d3436;
  opacity: 0.96;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  white-space: nowrap;
}

.benefit i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f9f52;
  font-size: 11px;
  background: #e8f7eb;
  border: 1px solid #c9eace;
  opacity: 1;
}

.benefit .highlight {
  color: var(--accent-color);
  font-weight: 600;       
}

/* Responsive: compacter op mobiel */
@media (max-width: 600px) {
  .benefits-bar {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        max-width: calc(100% - 20px);
        font-size: 0.72rem;
        padding: 7px 10px;
        margin: 8px 10px 0;
  }
}



