:root { --gold: #d4a73a; --bg: #0a0a0a; --panel: #111; --line: #1e1e1e; --text: #ededed; --muted: #a8a8a8; --red: #f2b8b5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
a { color: var(--gold); }
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 240px; max-width: 100%; background: #050505; border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 6px; padding: 0 8px; }
.brand img { height: 52px; width: auto; align-self: flex-start; }
.brand span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8c8c8c; }
#nav { display: flex; flex-direction: column; gap: 4px; }
#nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; min-height: 44px; border-radius: 8px; color: #c8c8c8; text-decoration: none; font-weight: 600; font-size: 15px; }
#nav a[aria-current="page"] { background: #17140c; color: var(--gold); }
.count { font-size: 12px; font-weight: 700; background: #2a2a2a; color: #ededed; border-radius: 999px; padding: 2px 8px; }
.count.gold { background: var(--gold); color: #000; }
.count:empty { display: none; }
.user { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 12px; }
.user strong { display: block; font-size: 13px; word-break: break-all; }
.user small { color: #8c8c8c; }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 999px; background: var(--gold); color: #000; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.logout { font-size: 14px; padding: 8px 14px; color: var(--muted); }
.content { flex: 999 1 640px; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.topbar h1 { margin: 0; font-family: Archivo, sans-serif; font-stretch: 115%; font-weight: 800; font-size: 32px; }
.topbar p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; padding: 12px 18px; min-height: 44px; font: 600 14px Inter, sans-serif; cursor: pointer; text-decoration: none; border: 1px solid #3a3a3a; background: transparent; color: var(--text); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.btn.danger { color: var(--red); border-color: #4a2422; }
.btn.danger-solid { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn.small { padding: 8px 12px; min-height: 38px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: wait; }
.toast { align-self: flex-start; background: #12100a; border: 1px solid var(--gold); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.toast.err { border-color: #b3261e; color: var(--red); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong { font-family: Archivo, sans-serif; font-stretch: 115%; font-weight: 800; font-size: 30px; }
.row2 { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.row2 > * { flex: 1 1 380px; min-width: 0; }
.panel h2 { margin: 0 0 8px; font-size: 17px; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-item small { display: block; color: var(--muted); font-size: 13px; }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pill.new { background: var(--gold); color: #000; }
.pill.done { background: #1e1e1e; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar input[type="search"] { flex: 1 1 260px; background: var(--panel); color: var(--text); border: 1px solid #2a2a2a; border-radius: 8px; padding: 12px 14px; font-size: 15px; font-family: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: 600 13px Inter, sans-serif; padding: 10px 14px; min-height: 40px; border-radius: 999px; cursor: pointer; background: transparent; color: #c8c8c8; border: 1px solid #333; }
.chips button[aria-pressed="true"] { background: var(--gold); color: #000; border-color: var(--gold); }
.table-wrap { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 14px 12px; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td .car { display: flex; align-items: center; gap: 14px; }
td .car img { width: 80px; height: 54px; object-fit: cover; border-radius: 4px; background: #1a1a1a; flex: 0 0 auto; }
td .car small { display: block; color: var(--muted); font-size: 13px; }
select.status { background: var(--bg); border: 1px solid #2e2e2e; border-radius: 6px; padding: 9px; font: 600 14px Inter, sans-serif; min-height: 40px; }
select.status.te_koop { color: #7ddc9a; }
select.status.gereserveerd { color: var(--gold); }
select.status.verkocht { color: var(--muted); }
.star { width: 44px; height: 44px; border-radius: 8px; border: 1px solid #2a2a2a; background: transparent; cursor: pointer; font-size: 20px; color: #8c8c8c; }
.star[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.form-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.form-grid > .panel:first-child { flex: 999 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid > .panel:last-child { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 13px; font-weight: 600; color: #c8c8c8; }
.f input, .f select, .f textarea { background: var(--bg); color: #f2f2f2; border: 1px solid #2e2e2e; border-radius: 8px; padding: 12px; font-size: 15px; font-family: inherit; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; min-height: 46px; align-self: end; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #000; border: 1px solid #2a2a2a; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph-actions { position: absolute; inset: auto 4px 4px 4px; display: flex; gap: 4px; justify-content: flex-end; }
.photo button { width: 32px; height: 32px; border-radius: 6px; border: 0; background: rgba(0,0,0,.8); color: #fff; cursor: pointer; font-size: 14px; }
.photo .first { position: absolute; left: 6px; top: 6px; background: var(--gold); color: #000; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.upload { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #444; border-radius: 8px; padding: 18px; cursor: pointer; font-weight: 600; text-align: center; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.error { color: var(--red); font-size: 14px; margin: 0; }
.lead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lead .info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lead .msg { white-space: pre-line; font-size: 14px; color: #c8c8c8; margin: 0; }
.lead small { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { .content { padding: 24px 16px 48px; } .sidebar { padding: 16px; gap: 14px; } #nav { flex-direction: row; flex-wrap: wrap; } #nav a { padding: 10px 12px; } .user, .logout { display: none; } .topbar h1 { font-size: 26px; } .form-grid > .panel:first-child { grid-template-columns: 1fr; } }
