/* Unsolve Booking panel — geen build-stap nodig. */
:root {
	--bg: #f4f5f7;
	--card: #ffffff;
	--ink: #1c2430;
	--muted: #68727f;
	--line: #e3e6ea;
	--brand: #1d4ed8;
	--brand-ink: #ffffff;
	--danger: #b3261e;
	--warn: #9a6700;
	--ok: #1d4ed8;
	--radius: 10px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	background: var(--bg);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
}

a { color: var(--brand); }

/* ---- Panel-layout ---- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
	width: 230px;
	flex-shrink: 0;
	background: #0f1e3d;
	color: #c7d2e3;
	display: flex;
	flex-direction: column;
	padding: 18px 14px;
	gap: 4px;
}

.sidebar .brand {
	color: #fff;
	font-weight: 700;
	font-size: 1.05em;
	padding: 6px 12px 16px;
	letter-spacing: 0.2px;
}

.sidebar .brand span { color: #6ea8fe; }

.sidebar a.nav-item {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	font-size: 0.95em;
}

.sidebar a.nav-item:hover { background: rgba(255, 255, 255, 0.07); }
.sidebar a.nav-item.active { background: var(--brand); color: #fff; }
.sidebar .spacer { flex: 1; }
.sidebar .hotel-name { padding: 8px 12px; font-size: 0.8em; opacity: 0.6; }

.main { flex: 1; padding: 28px 32px; max-width: 1100px; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: 1.45em; }

/* ---- Componenten ---- */
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 22px;
	margin-bottom: 20px;
}

.card h2 { margin: 0 0 12px; font-size: 1.1em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.stat .num { font-size: 1.6em; font-weight: 700; }
.stat .label { color: var(--muted); font-size: 0.85em; }

table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
table.list tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8em; font-weight: 600; }
.badge.pending { background: #fdf3d7; color: var(--warn); }
.badge.confirmed { background: #e3ecfd; color: var(--ok); }
.badge.cancelled { background: #fbe9e7; color: var(--danger); }
.badge.completed { background: #e7eaf0; color: #3b4656; }
.badge.approved { background: #e3ecfd; color: var(--ok); }
.badge.rejected { background: #fbe9e7; color: var(--danger); }
.badge.paid { background: #e3ecfd; color: var(--ok); }
.badge.open { background: #fdf3d7; color: var(--warn); }

.btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: var(--brand);
	color: var(--brand-ink);
	font: inherit;
	font-size: 0.92em;
	cursor: pointer;
	text-decoration: none;
}

.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 5px 11px; font-size: 0.85em; }

form.inline { display: inline; }

label.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.9em; }
label.field small { font-weight: 400; color: var(--muted); display: block; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="url"], input[type="tel"], select, textarea {
	width: 100%;
	margin-top: 5px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

textarea { resize: vertical; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .main { padding: 18px; } .layout { flex-direction: column; } .sidebar { width: auto; } }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; background: #e3ecfd; color: #14397d; }
.errors { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; background: #fbe9e7; color: var(--danger); }
.errors ul { margin: 0; padding-left: 18px; }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }

.code-block {
	background: #0f1e3d;
	color: #d5def0;
	padding: 14px 16px;
	border-radius: 8px;
	overflow-x: auto;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.85em;
	white-space: pre-wrap;
	word-break: break-all;
}

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; margin-top: 0; }

.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: #fff; }
.pagination .active span { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Auth-pagina's ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px; }
.auth-card .brand { font-weight: 700; font-size: 1.2em; margin-bottom: 4px; }
.auth-card .brand span { color: var(--brand); }
.auth-card p.lead { color: var(--muted); margin-top: 0; }
.auth-links { margin-top: 14px; font-size: 0.9em; display: flex; justify-content: space-between; }

/* ---- Publieke boekingspagina ---- */
.public-wrap { max-width: 880px; margin: 0 auto; padding: 28px 18px 60px; }
.public-header { margin-bottom: 26px; }
.public-header h1 { margin: 0 0 4px; }
.public-header .muted { margin: 0; }
.room-row { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.room-row img { width: 220px; height: 150px; object-fit: cover; border-radius: 8px; }
.room-row .info { flex: 1; min-width: 240px; }
.room-row h3 { margin: 0 0 4px; }
.room-row .price { font-weight: 700; margin: 6px 0; }
.stars { color: #e7a917; letter-spacing: 2px; }
.review-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.review-item:last-child { border-bottom: none; }
.hidden { display: none !important; }
.msg { margin: 10px 0; padding: 10px 14px; border-radius: 8px; background: var(--bg); }
.msg.ok { background: #e3ecfd; color: #14397d; }
.msg.err { background: #fbe9e7; color: var(--danger); }

/* ---------- Agenda / tijdlijn ---------- */
.agenda { --col: 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.agenda-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.agenda-row:last-child { border-bottom: 0; }
.room-label { position: sticky; left: 0; z-index: 2; width: 150px; min-width: 150px; padding: 8px 12px; background: var(--card); border-right: 1px solid var(--line); font-weight: 600; font-size: 0.9em; display: flex; flex-direction: column; justify-content: center; }
.room-label small { font-weight: 400; color: var(--muted); }
.agenda-head { position: sticky; top: 0; z-index: 3; background: var(--card); }
.corner { z-index: 4; text-transform: capitalize; }
.days-head { display: grid; grid-template-columns: repeat(var(--cols), var(--col)); }
.day-head { text-align: center; padding: 6px 0; border-right: 1px solid var(--line); font-size: 0.72em; }
.day-head .dow { display: block; color: var(--muted); text-transform: uppercase; }
.day-head .dom { display: block; font-weight: 600; font-size: 1.2em; }
.day-head.weekend { background: #fafbfc; }
.day-head.is-today { background: #e3ecfd; }
.day-head.is-today .dom { color: var(--brand); }
.track { position: relative; flex: 0 0 auto; }
.track-days { display: grid; grid-template-columns: repeat(var(--cols), var(--col)); height: calc(var(--lanes) * 26px); min-height: 26px; }
.day-cell { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 0; cursor: pointer; height: 100%; }
.day-cell.weekend { background: #fafbfc; }
.day-cell:hover { background: #eef3fd; }
.day-cell.sel { background: #cdddfb; }
.track-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), var(--col)); grid-template-rows: repeat(var(--lanes), 26px); pointer-events: none; }
.bar { pointer-events: auto; margin: 2px; height: 22px; line-height: 18px; padding: 2px 6px; border-radius: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; text-decoration: none; }
.bar-booking.status-confirmed { background: var(--brand); }
.bar-booking.status-pending { background: var(--warn); }
.bar-booking.status-completed { background: #5b6470; }
.bar-block { grid-row: 1 / -1; align-self: stretch; height: auto; color: #4a5260; background: repeating-linear-gradient(45deg, #e9ecf0, #e9ecf0 6px, #dfe3e8 6px, #dfe3e8 12px); display: flex; align-items: center; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 0.82em; color: var(--muted); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.legend .dot.status-confirmed { background: var(--brand); }
.legend .dot.status-pending { background: var(--warn); }
.legend .dot.status-completed { background: #5b6470; }
.legend .dot.dot-block { background: #c4cad2; }
.agenda-selection { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,0.14); border-radius: 12px; padding: 10px 14px; }
.agenda-selection input[type=text] { margin: 0; width: auto; }
.agenda-selection .inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }

/* ---------- Statistieken: mini-staafdiagram ---------- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.chart-bar-wrap { width: 100%; height: 110px; display: flex; align-items: flex-end; }
.chart-bar { width: 100%; max-width: 28px; margin: 0 auto; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .2s; }
.chart-num { font-size: 0.72em; color: var(--ink); margin-top: 4px; font-weight: 600; }
.chart-book { font-size: 0.7em; color: var(--brand); height: 1em; }
.chart-label { font-size: 0.68em; color: var(--muted); margin-top: 2px; }
