/* =========================================================================
   27 Moments — Admin (interne beheeromgeving, Studio 27-stijl)
   ========================================================================= */
:root {
  /* Merkpalet van 27 Moments — identiek aan www.27moments.be */
  --achtergrond: #f7f6f2;   /* beige */
  --kaart: #fbfbf9;         /* off-white */
  --inkt: #2c2c2b;          /* lopende tekst */
  --groen: #5a6850;         /* titels en donkere vlakken */
  --accent: #835fa5;        /* paars */
  --lila: #c2b1d7;
  --lichtgroen: #e3eaca;
  --zacht: #6f6b66;
  --lijn: #e4e0d8;
  --fout: #a8412f;
  --font-display: "Pink Sunset", "Cooper Black", Georgia, serif;
  --font-body: "apparat", "apparat-light", "Apparat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 24px;
  --schaduw: 0 10px 30px rgba(90, 104, 80, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--achtergrond);
  color: var(--inkt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.merk {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--accent);
}

/* Titels: Pink Sunset in het merkgroen, net als op www.27moments.be */
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 1px; color: var(--groen); }
h1 { font-size: 26px; }
h2 { font-size: 23px; }
h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 1px; font-size: 17px; color: var(--groen); margin-bottom: 10px; }

.merkbeeld { display: block; width: 64px; margin: 0 auto 14px; }
.top__merk { display: flex; align-items: center; gap: 12px; }
.top__merk img { width: 40px; flex: none; }

code {
  background: var(--achtergrond);
  border: 1px solid var(--lijn);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.knop {
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  border: 1.5px solid var(--lijn);
  border-radius: 999px;
  padding: 10px 20px;
  background: #fff;
  color: var(--inkt);
  cursor: pointer;
  text-decoration: none;   /* ook de <a>-varianten blijven knoppen, geen links */
  display: inline-block;
  line-height: 1.3;
}

.knop:hover { border-color: var(--accent); color: var(--accent); }
.knop--vol { background: var(--accent); border-color: var(--accent); color: #fff; }
.knop--vol:hover { background: var(--groen); border-color: var(--groen); color: #fff; }
.knop--stil { border: 0; background: none; color: var(--zacht); }
.knop--stil:hover { color: var(--inkt); }
.knop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="url"], textarea {
  width: 100%;
  font: inherit;
  padding: 11px 15px;
  border: 1.5px solid var(--lijn);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 14px;
}

input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.veldlabel { display: block; font-size: 12px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ------------------------------- Login -------------------------------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login[hidden] { display: none; } /* display:flex zou het hidden-attribuut anders overrulen */

.login__kaart {
  width: min(400px, 100%);
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 36px 32px;
  text-align: center;
}

.login__kaart h1 { margin: 6px 0 8px; }
.login__uitleg { color: var(--zacht); font-size: 14px; margin-bottom: 22px; }
.login__of { color: var(--zacht); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin: 16px 0; }
.login__kaart form { text-align: left; }
.login__kaart .knop--vol { width: 100%; }
.login__demo-uitleg { font-size: 13px; color: var(--zacht); margin-bottom: 16px; text-align: left; }
.login__fout { color: var(--fout); font-size: 13px; margin-top: 14px; }

/* ------------------------------- Top ----------------------------------- */
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 32px);
  background: var(--kaart);
  border-bottom: 1px solid var(--lijn);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top h1 { font-size: 19px; }
.top__tabs { display: flex; gap: 4px; flex-wrap: wrap; }

.top__tabs [role="tab"] {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: none;
  padding: 9px 17px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--zacht);
}

.top__tabs [role="tab"][aria-selected="true"] { background: var(--groen); color: #fff; font-weight: 500; }
.top__tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top__gebruiker { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--zacht); }

/* ------------------------------- Panelen ------------------------------- */
main { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 32px) 64px; }
.paneel[hidden] { display: none; }
.paneelkop { margin-bottom: 20px; }
.paneelkop p { color: var(--zacht); font-size: 14px; max-width: 720px; }

.kaart {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.kaart__uitleg { color: var(--zacht); font-size: 13px; margin-bottom: 14px; }
.kaart__uitleg--klein { margin: 12px 0 0; }
.kaart--acties { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ----------------------------- Statusbalk ------------------------------ */
.statusbalk {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.statusbalk[hidden] { display: none; }
.statusbalk__telling { font-size: 14px; font-weight: 600; }
.statusbalk__acties { display: flex; gap: 8px; flex-wrap: wrap; }
.statusbalk__acties .knop { font-size: 13px; padding: 7px 12px; }
.statusbalk__acties .knop:disabled { opacity: 0.45; cursor: default; }
.statusbalk__acties .knop:disabled:hover { border-color: var(--lijn); color: var(--inkt); }

/* ------------------------------- Tabel --------------------------------- */
.tabelhoes { overflow-x: auto; background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.tabelhoes--sites table { min-width: 760px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
thead th { background: var(--achtergrond); font-size: 13px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--achtergrond);
  border: 1px solid var(--lijn);
  color: var(--zacht);
}

.status--live, .status--open { color: #2e7d32; border-color: #bfd8c0; background: #eef6ee; }
.acties { display: flex; gap: 8px; flex-wrap: wrap; }
.acties a, .acties button { font-size: 13px; padding: 6px 11px; }
.tabel-leeg td { color: var(--zacht); font-size: 14px; text-align: center; padding: 28px 16px; }

/* Sites-tabel op smalle schermen (mobiel én tablet-portret): elke rij
   wordt een kaart met labels, zodat de vele acties per rij bruikbaar
   blijven zonder horizontaal scrollen of piepkleine knoppen. */
@media (max-width: 900px) {
  .tabelhoes--sites { overflow-x: visible; background: none; border: 0; border-radius: 0; }
  .tabelhoes--sites table { min-width: 0; display: block; }
  .tabelhoes--sites thead { display: none; }
  .tabelhoes--sites tbody { display: grid; gap: 12px; }
  .tabelhoes--sites tr {
    display: block;
    background: var(--kaart);
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    padding: 6px 16px;
  }
  .tabelhoes--sites td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
  }
  .tabelhoes--sites td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--zacht);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .tabelhoes--sites td:last-child { border-bottom: 0; }
  .tabelhoes--sites td code { word-break: break-all; text-align: right; }
  .tabelhoes--sites .acties-cel { display: block; }
  .tabelhoes--sites .acties-cel::before { display: block; margin-bottom: 8px; }
  .tabelhoes--sites .acties { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .tabelhoes--sites .acties a, .tabelhoes--sites .acties button { text-align: center; padding: 9px 8px; }
  .tabelhoes--sites .tabel-leeg td { display: block; text-align: center; }
  .tabelhoes--sites .tabel-leeg td::before { display: none; }
}

/* ------------------------------- Modal --------------------------------- */
.modal-achtergrond {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(35, 33, 30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-achtergrond[hidden] { display: none; }

.modal {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  background: var(--kaart);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 26px 24px;
}

.modal h2 { font-size: 19px; margin-bottom: 10px; }
.modal__uitleg { color: var(--zacht); font-size: 13px; margin-bottom: 14px; }
.modal__waarschuwing { font-size: 13px; background: #fdf6ec; border: 1px solid #ecd9b8; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.modal__fout { font-size: 13px; color: var(--fout); background: #fbeeed; border: 1px solid #eccfcd; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.modal__fout[hidden] { display: none; }
.modal__acties { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.modal input[type="file"] { width: 100%; font: inherit; font-size: 13px; margin-bottom: 14px; }

/* Opleverfoto's in de modal */
.opl-lijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-bottom: 16px; }
.opl-foto { position: relative; margin: 0; }
.opl-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.opl-weg { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(35, 33, 30, 0.75); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.opl-weg:hover { background: var(--fout); }
.opl-leeg { grid-column: 1 / -1; color: var(--zacht); font-size: 13px; }

/* ------------------------------- Toasts -------------------------------- */
.toosten {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(440px, calc(100% - 32px));
  pointer-events: none;
}

.toost {
  background: var(--inkt);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
  box-shadow: var(--schaduw);
}

/* ------------------------------- Wizard -------------------------------- */
.wizard__rooster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.slugveld { display: flex; align-items: center; gap: 0; margin-bottom: 14px; }
.slugveld span { font-size: 13px; color: var(--zacht); white-space: nowrap; padding: 10px 4px 10px 13px; border: 1px solid var(--lijn); border-right: 0; border-radius: 8px 0 0 8px; background: var(--achtergrond); }
.slugveld input { border-radius: 0 8px 8px 0; margin-bottom: 0; }

.stijlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

.stijl {
  border: 2px solid var(--lijn);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  text-align: left;
  font: inherit;
  padding: 0;
}

.stijl__staal { height: 64px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; }
.stijl__naam { display: block; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.stijl[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.25); }
.stijl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.kleuren { display: flex; gap: 22px; flex-wrap: wrap; }
.kleur { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.kleur input[type="color"] { width: 46px; height: 34px; border: 1px solid var(--lijn); border-radius: 7px; padding: 2px; background: #fff; cursor: pointer; }

.secties { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; }
.sectie-optie { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 7px 0; }
.sectie-optie input { width: 17px; height: 17px; accent-color: var(--accent); }

.stappen { padding-left: 20px; font-size: 14px; color: var(--zacht); display: grid; gap: 8px; margin-top: 14px; }

@media (max-width: 640px) {
  .top { position: static; }
  .kaart--acties .knop { width: 100%; }
}

/* 2FA-modals */
.mfa-sleutel { font-size: 13.5px; margin-bottom: 10px; word-break: break-all; }
#mfa-code { width: 100%; font: inherit; font-size: 20px; letter-spacing: 6px; text-align: center; padding: 10px 13px; border: 1px solid var(--lijn); border-radius: 8px; margin-bottom: 4px; }

/* ---------------------------- Referenties ------------------------------
   Vijf huisstijlen, elk met een levende voorvertoning: een iframe met de
   echte site, teruggeschaald naar kaartformaat. Je kan er in scrollen om
   de look and feel te tonen zonder de pagina te verlaten. */

.ref-uitleg { margin-bottom: 18px; }
.ref-uitleg p { font-size: 14px; color: var(--zacht); }
.ref-uitleg strong, .ref-uitleg em { color: var(--inkt); }
.ref-uitleg em { font-style: normal; font-weight: 600; }

.ref-rooster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.ref-kaart {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ref-preview {
  --ref-schaal: 0.25;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--achtergrond);
  border-bottom: 1px solid var(--lijn);
  overflow: hidden;
}

.ref-preview__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 900px;
  border: 0;
  transform: scale(var(--ref-schaal));
  transform-origin: 0 0;
}

.ref-kaart__nummer {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(90, 104, 80, 0.88);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.ref-preview__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(90, 104, 80, 0.82);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.ref-preview:hover .ref-preview__hint { opacity: 0; }

.ref-kaart__inhoud { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ref-kaart__inhoud h3 { font-family: var(--font-display); font-size: 21px; font-weight: 400; margin-bottom: 8px; }
.ref-kaart__pitch { font-size: 14px; color: var(--zacht); margin-bottom: 14px; }

.ref-palet { display: flex; gap: 6px; margin-bottom: 14px; }

.ref-staal {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(35, 33, 30, 0.12);
  display: block;
}

.ref-kaart__detail { font-size: 13px; color: var(--zacht); margin-bottom: 4px; }
.ref-kaart__detail strong { color: var(--inkt); font-weight: 600; margin-right: 6px; }

.ref-acties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 4px; }
.ref-acties .knop { font-size: 13px; padding: 8px 14px; }

/* Tekstknop die zich als link gedraagt (bv. "alle referenties naast elkaar"). */
.knop-tekst {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.knop-tekst:hover { color: var(--inkt); }
.knop-tekst:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 520px) {
  .ref-rooster { grid-template-columns: 1fr; }
  .ref-acties .knop { width: 100%; text-align: center; }
}
