/* Drukke plekken (drukte.html). Basis van het paneel staat in paneel.css, gedeelde stijl in stijl.css. */

:root { --spot: #d82838; --spot-in: #07b26b; --spot-phys: #0b6b45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --spot: #ff6b78; --spot-in: #3fd39a; --spot-phys: #1f9e6a; } }
:root[data-theme="dark"] { --spot: #ff6b78; --spot-in: #3fd39a; --spot-phys: #1f9e6a; }

/* Periode: Nu, 7 dagen, 28 dagen */
.seg-row { display: flex; border: 1px solid var(--outline); border-radius: 20px; overflow: hidden; }
.seg-btn { flex: 1; height: 36px; font-size: 14px; color: var(--on-surface); }
.seg-btn + .seg-btn { border-left: 1px solid var(--outline); }
.seg-sm .seg-btn { height: 32px; font-size: 13px; }
.seg-btn[aria-pressed="true"] { background: var(--secondary-container); color: var(--on-secondary-container); font-weight: 500; }

/* Instellingen */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 8px; border: 1px solid var(--outline); cursor: pointer; font-size: 14px; }
.chip input, .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.chip:has(input:checked) { background: var(--secondary-container); border-color: transparent; }
.sel { display: inline-flex; align-items: center; gap: 6px; color: var(--on-surface-var); font-size: 13px; }
.sel select {
  font: inherit; font-size: 14px; color: var(--on-surface); background: var(--sc-low); border: 1px solid var(--outline);
  border-radius: 8px; height: 32px; padding: 0 6px;
}
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }

/* Lijst met plekken */
.spots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--outline-var); padding-top: 10px; }
.spot {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 14px;
}
.spot:hover { background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.spot[aria-current="true"] { background: var(--secondary-container); }
.spot .n {
  flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; display: grid; place-items: center;
  background: var(--spot); color: #fff; font-weight: 500; font-variant-numeric: tabular-nums;
}
.spot.in .n { background: var(--spot-in); }
.spot.phys .n { background: var(--spot-phys); }
.spot .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.spot .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot small { color: var(--on-surface-var); font-size: 12px; line-height: 16px; }
.spot .tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 11px; line-height: 16px; background: color-mix(in srgb, var(--spot-in) 18%, transparent); color: var(--on-surface); }
/* Wanneer het druk is: 24 staafjes, één per uur */
.hours { display: flex; align-items: flex-end; gap: 1px; height: 18px; margin-top: 4px; }
.hours i { flex: 1; min-height: 1px; background: var(--spot); opacity: .8; border-radius: 1px 1px 0 0; }
.spot.in .hours i { background: var(--spot-in); }
.spot.phys .hours i { background: var(--spot-phys); }
.hours-lbl { display: flex; justify-content: space-between; color: var(--on-surface-var); font-size: 10px; line-height: 12px; }

/* Bolletjes op de kaart */
.drk {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; box-sizing: border-box;
  background: color-mix(in srgb, var(--spot) 85%, transparent); color: #fff; border: 2px solid #fff;
  font: 500 13px/1 Roboto, sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.drk.in { background: color-mix(in srgb, var(--spot-in) 85%, transparent); }
.drk.phys { background: color-mix(in srgb, var(--spot-phys) 90%, transparent); }
.drk.sel { outline: 3px solid var(--on-surface); outline-offset: 1px; }
.pop-list { margin: 6px 0 0; padding: 0; list-style: none; }
.pop-list li { display: flex; justify-content: space-between; gap: 16px; }
.pop-ids { margin-top: 8px; }
.pop-ids summary { cursor: pointer; color: var(--on-surface-var); font-size: 12px; }
.pop-ids code { display: block; font: 400 12px/17px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all; -webkit-user-select: all; word-break: break-all; max-height: 140px; overflow: auto; }

/* Uitleg van de kleuren */
.key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 10px; color: var(--on-surface-var); font-size: 12px; line-height: 16px; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.drk-key { width: 12px; height: 12px; border-radius: 50%; background: var(--spot); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--outline-var); }
.drk-key.in { background: var(--spot-in); }
.drk-key.phys { background: var(--spot-phys); }
