/* GOA Parking admin: Bootstrap 5 dark, with the parking app's yellow as the accent. */
:root, [data-bs-theme="dark"] {
    --accent: #f4c21c;
    --accent-ink: #1a1500;
    --bs-body-bg: #121317;
    --bs-body-bg-rgb: 18, 19, 23;
    --bs-secondary-bg: #1c1e25;
    --bs-tertiary-bg: #262931;
    --bs-border-color: #34373f;
    --bs-link-color: #f4c21c;
    --bs-link-hover-color: #ffd95a;
    --bs-link-color-rgb: 244, 194, 28;
    --bs-link-hover-color-rgb: 255, 217, 90;
    --bs-primary: #f4c21c;
    --bs-primary-rgb: 244, 194, 28;
}
body { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: Oswald, "Segoe UI", system-ui, sans-serif; letter-spacing: .3px; }

.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: var(--accent-ink);
    --bs-btn-hover-bg: #ffd95a; --bs-btn-hover-border-color: #ffd95a; --bs-btn-hover-color: var(--accent-ink);
    --bs-btn-active-bg: #e0b012; --bs-btn-active-border-color: #e0b012; --bs-btn-active-color: var(--accent-ink);
    --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); --bs-btn-disabled-color: var(--accent-ink); font-weight: 600; }
.btn-outline-primary { --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent); --bs-btn-hover-color: var(--accent-ink); --bs-btn-hover-border-color: var(--accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus, .form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(244, 194, 28, .2); }

/* shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex: 0 0 250px; background: #0e0f13; border-right: 1px solid var(--bs-border-color);
    padding: 1rem .75rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.content { flex: 1; min-width: 0; padding: 1.5rem 2rem 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; color: #eceef0; text-decoration: none; margin-bottom: 1.2rem; text-transform: uppercase; }
.brand small { color: var(--bs-secondary-color); font-size: .7rem; letter-spacing: 2px; margin-left: .2rem; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 6px;
    background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.sidebar .nav-link { color: #c9ccd3; padding: .4rem .7rem; border-radius: .4rem; font-size: .92rem; }
.sidebar .nav-link:hover { background: #1c1e25; color: #fff; }
.sidebar .nav-link.active { background: rgba(244, 194, 28, .14); color: var(--accent); font-weight: 600; }
.nav-section { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: #7d828e; margin: 1rem .7rem .3rem; }
.sidebar-foot { margin-top: auto; padding-top: 1rem; }

@media (max-width: 860px) {
    .shell { flex-direction: column; }
    .sidebar { position: static; width: auto; height: auto; flex: none; }
    .content { padding: 1rem; }
}

/* sign in */
.signin-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.signin-card { width: 100%; max-width: 400px; }

/* tables and badges */
.table > :not(caption) > * > * { vertical-align: middle; }
.table-sm td, .table-sm th { padding-top: .45rem; padding-bottom: .45rem; }
.badge-on { background: rgba(52, 211, 153, .16); color: #34d399; }
.badge-off { background: rgba(246, 90, 90, .16); color: #f65a5a; }
.badge-soft { background: #262931; color: #c9ccd3; font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat { background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .9rem 1.1rem; }
.stat .v { font-family: "Space Mono", ui-monospace, monospace; font-size: 1.7rem; line-height: 1.1; }
.stat .l { font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--bs-secondary-color); }
.occ { height: 8px; border-radius: 4px; background: #262931; overflow: hidden; display: flex; min-width: 90px; }
.occ > i { display: block; height: 100%; }
.occ .f { background: #34d399; } .occ .o { background: #f65a5a; } .occ .r { background: #f4a52c; }
.panel { background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: 1rem 1.2rem; }

/* maps */
.map-box { height: 62vh; min-height: 380px; border-radius: .6rem; border: 1px solid var(--bs-border-color); }
.leaflet-container { background: #1c1e25; font: inherit; }
.bay-preview { display: grid; gap: 3px; }
.bay-preview span { background: #34d399; opacity: .75; border-radius: 3px; min-height: 14px; }
.lot-pin { background: var(--accent); border: 2px solid #1a1500; border-radius: 50%; }

/* lot desk: the bays as a grid, and the legend keys */
.deskgrid { display: grid; gap: 6px; }
.deskbay { height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: #0b0c0f; cursor: default; }
.deskbay.f, .deskkey.f { background: #34d399; } .deskbay.r, .deskkey.r { background: #f4a52c; }
.deskbay.o, .deskkey.o { background: #f65a5a; color: #fff; } .deskbay.x, .deskkey.x { background: #616161; color: #fff; }
.deskkey { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: middle; }

/* Parking slots on the lot map: the slot number sits in the middle of its rectangle. */
.leaflet-tooltip.slot-num { background: transparent; border: 0; box-shadow: none; color: #fff; font-size: 10px; font-weight: 600; padding: 0; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.leaflet-tooltip.slot-num::before { display: none; }
.slot-tools .btn { min-width: 2.6rem; }
