/* =========================
   Root + Reset
========================= */
:root {
  --Background: #F5F3EE;
  --UI: #5AAA95;
  --Talland-groen: #00373D;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}


html,
body {
  height: 100%;
  overflow-x: hidden;
  /* voorkomt horizontale overscroll */
  overscroll-behavior-y: none;
  /* stopt bounce/scroll chaining op Y */
}

body {
  background-color: var(--Background);
}

/* =========================
   Common UI
========================= */
.form-label {
  font-weight: 600;
}

/* Inputs focus (bootstrap-ish) */
.form-control:focus,
.form-select:focus,
.input-group .form-control:focus {
  border-color: var(--UI);
  box-shadow: 0 0 0 0.2rem rgba(90, 170, 149, 0.25);
}

/* delete button */
.danger-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 5px 10px;
  background-color: #ff0000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
}

.danger-btn:hover,
.danger-btn:focus {
  background-color: #b30000;
  outline: none;
}

/* Alerts */
.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

/* Buttons */
.btn-primary,
.btn-success {
  background-color: var(--UI);
  border-color: var(--UI);
}

.btn-primary:hover,
.btn-success:hover,
.btn-success:focus {
  background-color: var(--Talland-groen);
  border-color: var(--Talland-groen);
}

/* =========================
   Login
========================= */
.login {
  background-color: white;
  border-left: 5px solid var(--UI);
}

/* =========================
   Registratie
========================= */
.registratie {
  background-color: #ffffff;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  border-top: 6px solid var(--UI);
  border-bottom: 6px solid var(--UI);
}

.registratie h1 {
  color: var(--Talland-groen);
  font-weight: 600;
}

/* =========================
   Header + Zoekbalk
========================= */
header {
  background-color: var(--UI);
  padding: 0 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 7vh;
}

.talland-logo {
  display: flex;
  align-items: center;
  max-width: 70px;
  height: auto;
}

.talland-logo img {
  max-width: 100%;
  height: auto;
}

#zoekvak {
  width: 40%;
  height: 50%;
  padding: 8px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background-color: var(--Background);
}

#resultaten {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #ddd;
  background: white;
  border-radius: 10px;
  border-bottom: 3px solid var(--Talland-groen);
  display: none;
}

#zoekresultaten {
  width: 100%;
  height: 100%;
  border: none;
}

/* Zoekresultaat cards */
.kaart {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  align-items: center;
}

.kaart img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.naam {
  font-weight: 600;
}

.ingredienten {
  font-size: 13px;
  color: #555;
}

.leeg {
  color: #888;
  padding: 8px;
}

/* =========================
   Profile Button
========================= */
.account-buttons {
  height: max-content;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: auto;
}

.admin-btn {
  padding: 10px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, border 0.2s ease;
}

.admin-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.account-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, border 0.2s ease;
}

.account-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.account-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* =========================
   Homepagina
========================= */
.title-section {
  width: 100%;
  height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title-section h1 {
  text-align: center;
  font-size: 40px;
  margin: 40px 0 20px;
  color: var(--UI);
}

.title-section a {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--UI);
  color: var(--Talland-groen);
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.info-section {
  text-align: center;
  height: 60vh;
}

.info-section div {
  background-color: var(--UI);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: 30vh;
  overflow: hidden;
}

.info-section div h2 {
  text-align: center;
  margin: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  height: 100%;
}

.info-section div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.selectie-section {
  min-height: 80vh;
  max-width: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.selectie-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--UI);
  font-size: 30px;
}

.selectie-container {
  display: flex;
  height: 60vh;
  border: 3px solid var(--Talland-groen);
  color: var(--Talland-groen);
  border-radius: 10px;
  overflow: scroll;
  gap: 10px;
  scroll-snap-type: x mandatory;
}

.voorgerechten-homepage,
.hoofdgerecht-homepage,
.nagerecht-homepage {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 20px;
}

/* =========================
   Footer
========================= */
footer {
  background-color: var(--UI);
  padding: 20px;
  text-align: center;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  width: 100%;
  height: 20vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

footer p {
  color: white;
  margin: 0;
}

/* =========================
   recept.pagina 
========================= */


/* =========================
   Admin Panel / doccent panel / studenten panel.
========================= */

.admin-intro,
.docent-intro {
  text-align: center;
  margin: 20px;
  color: var(--Talland-groen);
}

.admin-section,
.docent-section {
  min-height: auto;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.admin-panellist,
.docent-panellist {
  width: 30%;
  height: auto;
  border-radius: 10px;
  padding: 20px;
  background-color: var(--UI);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.admin-article-content,
.docent-panellist-content {
  height: 55vh;
  background-color: white;
  color: black;
  border-radius: 10px;
  margin: 20px;
  overflow-y: auto;
  overflow-x: auto;
}

.admin-article-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90%;
}

.AddStudent-btn-container {
  display: flex;
  flex-direction: row;
}

.AddStudent-btn {
  padding: 10px;
  border: 3px solid var(--Background);
  font-weight: bold;
  width:max-content;
  color: black;
  text-decoration: none;
  background-color: lightgray;
  font-size: 13px;
}

.admin-article-listcontent {
  height: auto;
  max-width: 30%;
}

.Widget-Search {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  border: none;
  border-radius: 0px;
  background-color: var(--Background);
  border-bottom: 1px solid #ddd;
}

.User-Search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-bottom: 1px solid #ddd;

  flex-wrap: nowrap;
  width: 1000px;
  overflow: hidden;

  color: black;
  text-decoration: none;
}

.admin-list-item {
  display: flex;
  flex-direction: row;
  color: black;
  text-decoration: none;
  width:55vw;
  gap: 15px;
  padding: 10px;
  align-items: center;
}

.admin-list-item-meta {
  display: flex;
  flex-direction: row;
  color: black;
  text-decoration: none;
  gap: 5px;
  font-size: small;
}

.admin-table {
  width: 40vw;
}

.admin-notice {
  color: red !important;
  display: flex;
  text-align: center;
  flex-direction: column;
  width: 100%;
}

.User-Search-item p {
  margin: 0;
  white-space: nowrap;
}

.User-Search-item p:nth-child(2) {
  font-weight: bold;
}

/* checkbox column */
.User-Search-item input {
  flex: 0 0 24px;
}

.registratie-main,
.addRecipe-main {
  margin-top: 20px;
  margin-bottom: 40px;
  width: 100%;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.registratie-section,
.addRecipe-section {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  min-height: 80vh;
}

.recepten-section {
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: min(96%, 1200px);
  margin-top: 20px;
  margin-top: 20px;
  margin-right: auto;
  margin-bottom: 0px;
  margin-left: auto;
  gap: 20px;
  text-align: left;
  overflow-y: scroll;
  height: 70.75%;
}

@media (max-width: 700px) {
  .recepten-section {
    padding: 10px !important;
  }
}

.recipe-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.list {
  display: flex;
  justify-content: space-between;

}

.recipe-body {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.left-column {
  width: 42%;
  font-size: 0.92rem;
}

.right-column {
  width: 58%;
  font-size: 0.92rem;
}

.ingredient,
h2 {
  font-size: 1.02rem;
  font-weight: bold;
  margin: 16px 0 8px 0;
  padding-bottom: 4px;
  color: #333;
}

.ingredients .ingredients,
.materials {
  padding-left: 18px;
  margin-bottom: 20px;
}

.ingredients li,
.materials li {
  margin-bottom: 4px;
  color: #555;
}

.steps {
  padding-left: 20px;
  margin: 0;
}

.steps li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.4;
}

.docent-iframe {
  width: 100%;

  height: 600px;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
}

/* =========================
   Admin Panel / doccent panel: recepten
========================= */
.recept-section {
  min-height: auto;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.recept-panellijst {
  width: 87%;
  height: fit-content;
  border-radius: 10px;
  padding: 20px;
  background-color: var(--UI);
  color: white;
  text-align: center;
  margin-left: 22px;
  margin-right: 26px;
}

.recept-panellijst input,
.recept-panellijst select,
.recept-panellijst textarea {
  margin-top: 10px;
  width: 100%;
  padding: 6px 8px;
  height: 3em;
  border-radius: 10px;
}


.recept-panellijst textarea {
  height: 120px;
  border-radius: 16px;
}


#recepten-wrapper {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: #f9f9f9;
  margin: 0;
  max-height: 70vh;
  overflow-y: auto;

}

.recpeten-ingredient-lijst {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: 10px;

}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: 4px;
}



.recpeten-ingredient-lijst input,
label {
  display: block;
}

#recepten-wrapper main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}


.recepten-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.recepten-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.recepten-subtitle {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.recepten-section {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  width: 90%;
}

.recepten-ingredients {
  margin: 0.25rem 0 0;

}


.recepten-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
}

.recepten-btn:hover,
.recepten-btn:focus {
  background-color: #0056b3;
  outline: none;
}




.recepten-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}


.recepten-no-results {
  font-style: italic;
  color: #666;
}

@media (max-width: 768px) {
  .docentpanel {
    padding: 0.5rem;
  }

  .docentpanel h1 {
    font-size: 1.2rem;
  }

  .docent-iframe {
    height: 400px;

  }

  .docent-panellist {
    width: 87%;
    height: auto;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--UI);
    text-align: center;
    margin-left: 22px;

  }

  .docent-section {
    display: flex;
    flex-direction: column;
  }


}

@media (max-width: 480px) {
  .docent-iframe {
    height: 300px;

  }

  .recept-section {
    display: flex;
    flex-direction: column !important;
    margin: auto;
  }

  .recept-section {
    display: flex;
    flex-direction: column;
    margin: auto;
  }
}


@media screen and (max-width: 480px) {
  .recipe-body {
    flex-direction: column;
    gap: 12px;
  }

  .left-column,
  .right-column {
    width: 100% !important;
  }

  .recipe-card {
    margin: 10px;
    padding: 15px;
    max-width: none;
  }

  h1 {
    font-size: 1.4rem;
  }

  .recipe-image {
    height: 180px;
  }
}


@media screen and (min-width: 481px) and (max-width: 768px) {
  .recipe-card {
    max-width: 95%;
    padding: 18px;
  }

  .left-column {
    width: 45%;
  }

  .right-column {
    width: 55%;
  }
}

.registratie-section form {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  width: 96%;
  /* ~2% space on each side on mobile */
  max-width: 700px;
  /* wider on desktop */
  margin: 0 auto;
  gap: 12px;
}


.addRecipe-section form {
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: min(96%, 1200px);
  /* wider on desktop */
  margin: 0 auto;
}

.registratie-section label {
  display: block;
  margin-bottom: 6px;
  text-align: left;
}

.registratie-main input,
select,
textarea,
.addRecipe-main input {
  display: block;
  width: 100%;
  padding: 8px;

  border: 1px solid #ccc;
  border-radius: 7px;
}

.registratie-main input,
select,
textarea,
.addRecipe-main input {
  outline: none;
  border-color: var(--Talland-groen);
  box-shadow: 0 0 5px rgba(90, 170, 149, 0.5);
}

.registratie-submit {
  margin-top: 10px;
  padding: 10px;
  background-color: var(--UI);
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.1s;
}

.addRecipe-section label:nth-of-type(-n+2) {
  padding-bottom: 5px;
}

.addRecipe-section label:nth-of-type(n+2):nth-of-type(-n+3) {
  padding-top: 5px;
}

.addRecipe-section label:nth-of-type(3) {
  padding-bottom: 3px;
}

.addRecipe-section label {
  margin-bottom: 5px;
  margin-top: 5px;
}

.aanvullingen {
  margin-bottom: 10px;
}

.recipe-submit {
  margin-bottom: 10px;
  padding: 10px;
  background-color: var(--UI);
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.1s;
}

.registratie-submit:hover {
  background-color: var(--Talland-groen);
}

#copyBtn {
  margin-top: 10px;
  padding: 5px 30px;
  background-color: gray;
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: bold;

  transition: 0.1s;
}

#copyBtn:hover {
  background-color: var(--Talland-groen);
}

.registratie-form ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.ok {
  color: #0a7a2f;
}

.bad {
  color: #b00020;
}

.meter {
  margin-top: 10px;
  height: 10px;
  width: 320px;
  width: 100%;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  background: #999;
  transition: width 0.15s ease;
}

.profile-main {
  display: flex;
  min-height: 80vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}



@media screen and (max-width: 1300px) {
  .admin-section {
    flex-direction: column;
    align-items: center;
  }

  .admin-panellist {
    width: 80%;
    padding: 10px 10px 30px 10px;
  }
}

@media screen and (max-width: 419px) {
  .talland-logo {
    display: none;
  }

  #zoekvak {
    width: 60%;
    height: auto;
  }

  header {
    height: auto;
    padding: 10px;
    gap: 5px;
  }
}

/* INGREDIENT ROW LAYOUT */
.ingredient-item {
  display: grid;
  grid-template-columns:
    120px
    /* naar smaak */
    90px
    /* amount */
    80px
    /* unit */
    1fr
    /* naam */
    40px;
  /* X */

  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.naarsmaak {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
}


/* Make inputs fill their grid cell */
.ingredient-item input,
.ingredient-item select {
  width: 100%;
}


/* Remove list styling */
#ingredienten {
  list-style: none;
  padding: 0;
  margin: 0;
}

.addRecipe-section textarea,
.registratie-section textarea {
  resize: none;
}

.materiaal-item {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.materiaal-item input {
  width: 100%;
}

.instruction-item {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.instruction-item textarea {
  width: 100%;
}

.ingredient-item button,
.materiaal-item button,
.instruction-item button {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  padding: 0;

  display: grid;
  place-items: center;

  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;

  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.ingredient-item button:hover,
.materiaal-item button:hover,
.instruction-item button:hover {
  background: #ffe5e5;
}


.materiaal-item button:hover,
.instruction-item button:hover {
  background: #ffe5e5;
}


.ingredient-item button {
  width: 40px;
  height: 40px;
}


.popup-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333;
  color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 16px;
  display: none;
  /* Verberg standaard */
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup-message.success {
  background-color: #4CAF50;
  /* groen voor succes */
}

.popup-message.error {
  background-color: #f44336;
  /* rood voor fout */
}

.Recipe_name {
  display: grid;
  grid-template-columns: 75% 25%;
  gap: 10px;
}

.receptenstuk {
  padding: 20px;
   border: 2px solid #b3b3b3;
  border-style: solid !important;
    border-width: thin;
  border-radius: 20px;
  border-top: 0.5px solid #b3b3b3;
  border-bottom: 2.5px solid #b3b3b3;
  margin-bottom: 10px;

}

.receptenstuk a {
  color: #000;
  text-decoration: none;
  padding-bottom: 10px;
}

.receptenstuk h2 {
  font-size: 1.0rem !important;
  font-weight: bold;
  margin: 0px 0 0px 0 !important;
  color: #000 !important;
}

.receptentijd{
  margin-top: 5px;
}