
/* =========================
   Topbar / Header
   ========================= */

.topbar {
	position: sticky;
	top: 0;
	z-index: 5000; /* hoger dan content zodat dropdowns niet onder secties vallen */
	backdrop-filter: blur(10px);
	background: rgba(189,210,237,.72);
	border-bottom: 1px solid rgba(11,27,43,.12);
	overflow: visible; /* belangrijk: dropdowns niet afkappen */
}

.topbarInner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	gap: 14px;
	overflow: visible; /* belangrijk: dropdowns niet afkappen */
}

/* Als .container ooit overflow hidden heeft, fix dit lokaal */

.topbar .container {
	overflow: visible;
}

/* =========================
   Brand row / Logo
   ========================= */

.brandRow {
	position: relative;
	padding: 18px 0 6px;
	margin-bottom: 50px;
	background-repeat: no-repeat;
	background-position: top;
	background-size: cover;
	overflow: hidden; /* hier mag het wel: achtergrond afkappen */
}

.brandRowBg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.brandRowInner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.brandLogo {
	width: clamp(220px, 26vw, 360px);
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 16px rgba(11,27,43,.12));
}

/* =========================
   Popup
   ========================= */

.popupOverlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.popupBox {
	background: #fff;
	border-radius: 14px;
	padding: 28px 32px;
	max-width: 420px;
	width: calc(100% - 32px);
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
	text-align: center;
}

.popupBox h3 {
	margin: 0 0 10px;
	font-size: 1.3rem;
}

.popupBox p {
	margin: 0 0 20px;
	color: #444;
}

.popupOverlay[hidden] {
	display: none !important;
}

/* =========================
   Dropdown base helpers
   - voorkomt buiten scherm vallen
   - sluit aan onder knop
   ========================= */

.langMenu, .nav-dropdown {
	position: relative;
}

/* =========================
   Language switcher (Dropdown #1)
   ========================= */

.langBtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(0,0,0,.12);
	background: rgba(255,255,255,.75);
	padding: 10px 12px;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
}

.langList {
	position: absolute;
	top: calc(100% + 8px); /* sluit onder knop */
	right: 0;              /* omdat dit in .actions rechts zit */
	left: auto;
	z-index: 9999;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: var(--card);
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
	width: max-content;
	min-width: 160px;
	max-width: calc(100vw - 16px); /* nooit buiten viewport */
	max-height: min(60vh, 420px);
	overflow: auto;
	display: none;
}

/* Open state */
.langMenu:hover .langList, .langMenu:focus-within .langList {
 display: block;
 left:0;
 right:0;
 text-align:center;
}

.langList a {
	display: block;
	padding: 8px 14px;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}

.langList li[aria-selected="true"] a {
	font-weight: 700;
}

/* =========================
   Generic nav dropdown (Dropdown #2/#3/#4 basis)
   ========================= */

.nav-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px); /* sluit onder knop */
	right: 0;              /* default veilig voor rechts geplaatste acties */
	left: auto;
	min-width: 220px;
	z-index: 9999;
	padding: 8px 0;
	margin: 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
	width: max-content;
	max-width: calc(100vw - 16px);
	max-height: min(60vh, 420px);
	overflow: auto;
}
 .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
 display: block;
}

.nav-dropdown-link, .nav-dropdown-text {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

.nav-dropdown-link:hover {
	background: rgba(0,0,0,.04);
}

.nav-dropdown-sep {
	height: 1px;
	margin: 6px 0;
	background: rgba(0,0,0,.08);
}

.nav-dropdown-muted {
	opacity: .65;
}

.nav-caret {
	font-size: .9em;
	opacity: .7;
	margin-left: 6px;
}

/* =========================
   Mobile safety
   - op smalle schermen blijft alles binnen viewport
   ========================= */
@media (max-width: 640px) {

.langList,  .nav-dropdown-menu {
	max-width: calc(100vw - 12px);
}
}

.admUserMenu.is-open .admUserDropdown {
	display: block;
}

.topbar, .topbarInner, .topbar .container {
	overflow: visible;
}

.ncWrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 26px 16px
}

.ncCard {
	background: #fff;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 16px;
	padding: 18px;
	margin: 14px 0
}

.ncH1 {
	margin: 0 0 6px;
	font-size: 26px
}

.ncSub {
	margin: 0 0 16px;
	color: #444
}

.ncGrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px
}

.ncCol2 {
	grid-column: span 2
}

.ncField span {
	display: block;
	font-weight: 800;
	font-size: 12px;
	color: #333;
	margin: 0 0 6px
}

.ncField input, .ncField select {
	width: 100%;
	padding: 11px 12px;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,.14);
	background: #fff
}

.ncBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	padding: 11px 14px;
	font-weight: 900;
	background: #111;
	color: #fff;
	cursor: pointer
}

.ncMsg {
	padding: 12px 14px;
	border-radius: 12px;
	margin: 12px 0;
	border: 1px solid rgba(0,0,0,.1)
}

.ok {
	background: rgba(0,180,90,.10)
}

.bad {
	background: rgba(220,30,60,.10)
}
 @media(max-width:860px) {

.ncGrid {
	grid-template-columns: 1fr
}

.ncCol2 {
	grid-column: auto
}
}

/* =========================
   Message reply layout
   ========================= */


.admContainer {
	max-width: 980px;
	margin: 0 auto;
}

.admHeaderRow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.muted {
	color: #7a8599;
	font-weight: 500;
}

/* Cards */

.admCard {
	margin-top: 16px;
}

/* Metadata grid */

.admMeta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	font-size: 0.95rem;
	color: #333;
	margin-bottom: 14px;
}

.admMeta strong {
	color: #1f2937;
}

/* Original message */

.admMessage {
	padding: 14px 16px;
	background: #f7f9fc;
	border-radius: 10px;
	line-height: 1.6;
	color: #222;
}

/* Forms */

.formGroup {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.formGroup label {
	font-weight: 600;
	font-size: 0.9rem;
	color: #1f2937;
}

.formInput, .formTextarea {
	width: 100%;
	padding: 11px 12px;
	border-radius: 10px;
	border: 1px solid #d6dbe5;
	background: #fff;
	font-size: 0.95rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.formInput:focus, .formTextarea:focus {
	outline: none;
	border-color: #2f6fed;
	box-shadow: 0 0 0 3px rgba(47,111,237,.15);
}

/* Checkbox */

.formCheck {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.9rem;
	color: #333;
}

.formCheck input {
	transform: translateY(1px);
}

/* Actions */

.admActions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

/* Alerts */

.alertError {
	background: #fee2e2;
	color: #991b1b;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 12px;
}
