/* Beheeromgeving */
.admin-body { background: #f4f2ec; font-size: 15px; }
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--green-900); color: #cfd8cd; padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { font: 700 1.45rem/1 var(--serif); color: var(--cream); text-decoration: none; padding: 0 10px 24px; display: block; font-variant: small-caps; }
.admin-brand small { display: block; font: 700 .68rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-top: 6px; font-variant: normal; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { color: #dfe6dc; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.admin-side nav a.active { background: var(--gold); color: var(--white); }
.admin-side-foot { margin-top: auto; padding: 0 10px; font-size: .88rem; display: flex; flex-direction: column; gap: 8px; }
.admin-side-foot a, .admin-side-foot .linklike { color: #cfd8cd; }
.admin-main { padding: 28px clamp(16px, 3vw, 40px) 60px; max-width: 1280px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-top h1 { font-size: 2.2rem; margin: 0; }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); width: min(420px, 100%); }
.login-logo { width: 100%; margin-bottom: 10px; }
.login-card h1 { text-align: center; font-size: 1.8rem; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 14px; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-brand { padding-bottom: 12px; }
  .admin-side-foot { flex-direction: row; justify-content: space-between; margin-top: 12px; }
}

.panel { background: var(--white); border-radius: 12px; padding: 22px 24px; box-shadow: 0 1px 4px rgba(19,41,28,.07); margin-bottom: 22px; }
.panel h2 { font-size: 1.5rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.admin-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .admin-cols { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--white); border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(19,41,28,.07); border-left: 4px solid var(--gold); }
.stat span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat strong { display: block; font: 700 2rem/1.2 var(--serif); color: var(--green-800); }
.stat small { color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid #efebe1; vertical-align: middle; }
.table tr:hover td { background: #fbfaf6; }
.table tr.inactive td { opacity: .5; }
.panel:has(.table) { overflow-x: auto; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }

.status, .pill { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status-paid, .pill-ok { background: #e1f0dd; color: #24602a; }
.status-pending, .pill-warn { background: #f8eccd; color: #7a5614; }
.status-cancelled, .status-expired, .pill-bad { background: #f3e1df; color: #8a2a22; }
.status-refunded { background: #e5e8f3; color: #34437a; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
@media (max-width: 1000px) { .form-grid { grid-template-columns: 1fr; } }
.form-side { border-left: 1px solid var(--line); padding-left: 28px; }
@media (max-width: 1000px) { .form-side { border-left: 0; padding-left: 0; } }
.check.strong { color: var(--ink); font-weight: 700; font-size: .95rem; margin: 0 0 12px; }
.row-2, .row-3, .row-4 { display: grid; gap: 14px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .row-2, .row-3, .row-4 { grid-template-columns: 1fr; } }
.fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 4px; margin: 0 0 16px; }
.fieldset legend { font-weight: 700; color: var(--green-800); padding: 0 6px; }
.image-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.image-field input[type=file] { font-size: .88rem; width: 100%; }
.admin-body textarea { font-size: .95rem; }

.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike.danger, .danger { color: #a3302a; }
.btn-danger { background: #a3302a; border-color: #a3302a; }
.btn-danger:hover { background: #7f211c; border-color: #7f211c; }
.danger-zone { margin-top: 10px; text-align: right; }
form.inline { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
input.tiny { width: 70px; padding: .3em .5em; }
.star { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: #d6d0c1; line-height: 1; }
.star.on { color: var(--gold); }
.plain-list { list-style: none; padding: 0; margin: 0 0 16px; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid #efebe1; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.details { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0 0 24px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; }
.filters select, .filters input { width: auto; flex: 1 1 180px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-links a { padding: .6em 1em; border: 1.5px dashed var(--green-500); border-radius: 10px; text-decoration: none; font-weight: 700; }
.quick-links a:hover { background: var(--green-100); }

.theme-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.theme-admin-card { padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); transition: .2s; }
.theme-admin-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.theme-admin-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.theme-admin-card div { padding: 14px 18px; }

.upload-box { display: flex; gap: 14px; align-items: stretch; margin: 10px 0 22px; flex-wrap: wrap; }
.dropzone { flex: 1 1 300px; position: relative; border: 2px dashed var(--gold-light); border-radius: 12px; padding: 22px; text-align: center; background: #fdfbf6; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.drag { background: var(--green-100); border-color: var(--green-500); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.photo-item { position: relative; background: #fbfaf6; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.photo-item.is-cover { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-light); }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-item input[type=text] { padding: .4em .6em; font-size: .88rem; }
.photo-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .85rem; }
.photo-actions label { display: flex; align-items: center; gap: 2px; color: var(--muted); }
.photo-actions input { width: 54px; padding: .25em .4em; font-size: .85rem; }
.cover-tag { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--white); font-size: .72rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; }
.slot-generator { background: #fbfaf6; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 12px 0 20px; }
.slot-generator h3 { font-size: 1.2rem; }
.weekdays { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.weekdays label { font-size: .9rem; }

/* Beleef, dieren, berichten */
.admin-side nav .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #fff; font-size: .75rem; text-align: center; margin-left: 4px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-choice .check { display: block; margin: 0 0 10px; }
.cta-shop { margin: 0 0 14px 26px; }
.message-body { white-space: pre-wrap; background: var(--cream); border-radius: 10px; padding: 18px 20px; margin: 0 0 20px; line-height: 1.6; }
.table tr.unread td { font-weight: 700; }
.theme-admin-card.is-active { outline: 2px solid var(--gold); }
