/* === Kleuren variabelen === */
:root {
  --color-bg-body: #f0f2f5;
  --color-text: #333;

  --color-sidebar-bg: #6cbcb2;
  --color-sidebar-text: #000000;
  --color-sidebar-link: #000000;
  --color-sidebar-link-hover: #000000;

  --color-main-bg: #fff;

  --color-form-border: #ccc;
  --color-form-bg: #fafafa;

  --color-button-bg: #6cbcb2;
  --color-button-bg-hover: #6cbcb2;
  --color-button-text: #fff;

  --color-output-bg: #f9f9f9;
  --color-output-border: #ccc;

  --color-image-border: #ddd;

  --color-pill-bg: #6cbcb2;
  --color-pill-border: #ddd;
  --color-pill-active-bg: #222;
  --color-pill-active-text: #fff;
  --color-help-text: #666;

  --color-share-wa: #25D366;
  --color-share-copy: #444;
  --color-share-new: #888;


  --color-sidebar-btn-bg: #99cec8;       /* basis groen */
  --color-sidebar-btn-hover: #85d0c7;    /* lichtere hover groen */
  --color-sidebar-btn-active: #56a39a;   /* donkerder actief groen */
}



/* === Algemeen === */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg-body);
  color: var(--color-text);
  height: 100vh;
  overflow: hidden;
}

/* === Layout === */
.layout {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* === Main Content === */
.main-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background-color: var(--color-main-bg);
}
h1, h2, h3 { margin-top: 0; }

/* === Formulieren === */
form label { font-weight: 600; margin-top: 10px; display: block; }
form input, form textarea, form select {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid var(--color-form-border);
  border-radius: 4px;
  background-color: var(--color-form-bg);
}
form textarea { resize: vertical; min-height: 100px; }

button {
  background-color: var(--color-button-bg);
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  color: var(--color-button-text);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
button:hover { background-color: var(--color-button-bg-hover); }

/* === Output / Status === */
.blog-output {
  white-space: pre-wrap;
  background: var(--color-output-bg);
  padding: 15px;
  border: 1px solid var(--color-output-border);
  border-radius: 4px;
  margin-top: 15px;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 15px;
  border: 1px solid var(--color-image-border);
  border-radius: 4px;
}

/* === Extra pill buttons & blog layout === */
.pill-group {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem;
}
.pill-btn {
  appearance: none;
  border: 1px solid var(--color-pill-border);
  background: var(--color-pill-bg);
  padding: .5rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.pill-btn[aria-pressed="true"] {
  background: var(--color-pill-active-bg);
  color: var(--color-pill-active-text);
  border-color: var(--color-pill-active-bg);
}
.help {
  display:block;
  color: var(--color-help-text);
  font-size:.9rem;
  margin:.35rem 0 .85rem;
}
.field { margin-bottom: 1rem; }
.field label { display:block; font-weight:600; margin-bottom:.25rem; }
.blog-output { white-space: normal; }

/* Share knoppen */
.share { margin-top: 1rem; display:flex; gap:.5rem; flex-wrap: wrap; align-items:center; }
.share small { color: var(--color-help-text); }
.btn-share {
  display:inline-flex; align-items:center; gap:.4rem;
  border:none; border-radius:999px;
  padding:.5rem 1rem; cursor:pointer; font-weight:600;
  color:#fff; text-decoration:none;
}
.btn-share svg { width:18px; height:18px; fill:#fff; }
.btn-wa { background: var(--color-share-wa); }
.btn-copy { background: var(--color-share-copy); }
.btn-new { background: var(--color-share-new); }

/* Blog + afbeelding naast elkaar */
.blog-wrapper { display: flex; align-items: flex-start; gap: 2rem; margin-top: 1rem; }
.blog-output { flex: 2; }
.blog-image { flex: 1; max-width: 400px; }
.blog-image img { width: 100%; border-radius: 8px; }







/* === Sidebar basis === */
.sidebar {
  background-color: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  width: 240px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar-title {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-sidebar-text);
}

/* === Menu === */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}

.sidebar-menu li {
  margin-bottom: .5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  border-radius: 6px;
  background: var(--color-sidebar-btn-bg);       /* knop-achtergrond */
  color: #000000;             /* tekst wit */
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, transform .1s ease;
}

.sidebar-link:hover {
  background: var(--color-sidebar-btn-hover);    /* lichtere hover */
  transform: translateY(-1px);                   /* subtiel effect */
}

.sidebar-link.active {
  background: var(--color-sidebar-btn-active);   /* donkerder voor actieve pagina */
  color: var(--color-button-text);
}

/* === Footer (plakt onderaan) === */
.sidebar-footer {
  margin-top: auto;
}

.btn-sidebar {
  display: block;
  text-align: center;
  padding: .6rem 1rem;
  border-radius: 6px;
  background: var(--color-sidebar-btn-bg);
  color: var(--color-button-text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, transform .1s ease;
}

.btn-sidebar:hover {
  background: var(--color-sidebar-btn-hover);
  transform: translateY(-1px);
}














.auth-body {
  position: relative;
  background: url("/afbeelding/achtergrond.png") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* witte waas */
  backdrop-filter: blur(2px);            /* extra blur */
  z-index: 0;
}

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 28px;
  border: 1px solid #eef2f2;
    z-index: 1; /* Zorgt dat de login kaart boven de overlay ligt */
  position: relative;
}

.auth-brand {
  display: grid; gap: .25rem; justify-items: start; margin-bottom: 10px;
}
.auth-brand svg { width: 36px; height: 36px; color: var(--color-button-bg); }
.auth-brand h1 { margin: 0; font-size: 1.6rem; }
.auth-subtitle { margin: 0; color: var(--color-help-text); }

.auth-form .field { margin: 16px 0; }
.input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  background: var(--color-form-bg);
  border: 1px solid var(--color-form-border);
  border-radius: 10px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input-wrap input:focus {
  border-color: #89d6ce;
  box-shadow: 0 0 0 4px rgba(108,188,178,.15);
  background: #fff;
}

.input-icon {
  position: absolute; left: 12px; display: grid; place-items:center;
}
.input-icon svg { width: 20px; height: 20px; color: #7a8b8a; }

.btn-eye {
  position: absolute; right: 8px;
  background: transparent; border: none; padding: 6px;
  border-radius: 8px; cursor: pointer;
}
.btn-eye:hover { background: #f1f5f5; }
.btn-eye .eye { width: 20px; height: 20px; color: #5e6f6e; }

.auth-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 12px;
}
.remember { display: inline-flex; align-items: center; gap: .5rem; }
.link-muted { color: var(--color-help-text); text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  gap: .5rem; width: 100%;
  padding: 12px 14px; border-radius: 10px;
  border: none; cursor: pointer; font-weight: 700;
  transition: transform .05s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-button-bg);
  color: var(--color-button-text);
}
.btn-primary:hover { background: var(--color-button-bg-hover); }
.btn-primary[disabled] { opacity: .7; cursor: not-allowed; }

.auth-note { margin: 18px 0 2px; color: var(--color-help-text); text-align: center; }

/* Alerts */
.alert {
  display: grid; grid-template-columns: 28px 1fr auto; gap: .75rem;
  padding: 12px 12px; border-radius: 12px; border: 1px solid;
  margin: 10px 0 16px;
  animation: slideIn .2s ease-out;
}
@keyframes slideIn { from { transform: translateY(-4px); opacity: 0 } to { transform: none; opacity: 1 } }
.alert .alert-icon svg { width: 22px; height: 22px; }
.alert .alert-content { line-height: 1.35; }
.alert .alert-close {
  background: transparent; border: none; font-size: 20px; line-height: 1; cursor: pointer;
  color: inherit; opacity: .8;
}
.alert .alert-close:hover { opacity: 1; }
.alert-error {
  background: #fff5f5;
  border-color: #ffd4d4;
  color: #a33131;
}
.input-icon svg {
    width: 20px;
    height: 20px;
    color: #7a8b8a;
    margin-bottom: 15px;
}