/* Locker Lease — a Server Side Technology solution */
:root {
  --ll-navy: #0B1F38;
  --ll-navy-2: #132B4A;
  --ll-male: #2563EB;
  --ll-female: #EC4899;
  --ll-core: #0F766E;
  --ll-agency: #F59E0B;
  --ll-available: #22C55E;
  --ll-maintenance: #EF4444;
  --ll-bg: #F3F4F6;
  --ll-border: #E5E7EB;
  --ll-muted: #64748B;
  --ll-sidebar-w: 236px;
  --bs-primary: #2563EB;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563EB;
  --bs-link-color-rgb: 37, 99, 235;
  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
body { background: var(--ll-bg); color: #0f172a; }
.btn-primary { --bs-btn-bg: var(--ll-male); --bs-btn-border-color: var(--ll-male); --bs-btn-hover-bg: #1D4ED8; --bs-btn-hover-border-color: #1D4ED8; --bs-btn-active-bg: #1E40AF; }
.btn-outline-primary { --bs-btn-color: var(--ll-male); --bs-btn-border-color: var(--ll-male); --bs-btn-hover-bg: var(--ll-male); --bs-btn-hover-border-color: var(--ll-male); }
.ll-btn-navy { background: var(--ll-navy); border-color: var(--ll-navy); color: #fff; font-weight: 600; }
.ll-btn-navy:hover, .ll-btn-navy:focus { background: var(--ll-navy-2); border-color: var(--ll-navy-2); color: #fff; }

/* Brand lockup */
.ll-brand { display: inline-flex; align-items: center; gap: .6rem; text-align: left; }
.ll-brand-mark { width: 44px; height: 44px; flex: none; }
.ll-brand-text { display: flex; flex-direction: column; line-height: 1; }
.ll-brand-name { font-weight: 900; letter-spacing: .02em; font-size: 1.35rem; color: var(--ll-navy); white-space: nowrap; }
.ll-brand-lease { color: var(--ll-male); }
.ll-brand-tag { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ll-muted); margin-top: .35rem; font-weight: 600; }
.ll-brand-light .ll-brand-name { color: #fff; }
.ll-brand-light .ll-brand-lease { color: #60A5FA; }
.ll-brand-light .ll-brand-tag { color: #CBD5E1; }
.ll-brand-sm .ll-brand-mark { width: 34px; height: 34px; }
.ll-brand-sm .ll-brand-name { font-size: 1.05rem; }
.ll-brand-lg .ll-brand-mark { width: 64px; height: 64px; }
.ll-brand-lg .ll-brand-name { font-size: 2rem; }
.ll-brand-stack { flex-direction: column; text-align: center; gap: .5rem; }
.ll-brand-stack .ll-brand-mark { width: 64px; height: 64px; }
.ll-brand-stack .ll-brand-text { align-items: center; }
.ll-brand-stack .ll-brand-name { font-size: 1.6rem; }

/* App shell: sidebar + content */
.ll-shell { display: flex; min-height: 100vh; }
.ll-sidebar { background: var(--ll-navy); color: #E2E8F0; }
@media (min-width: 992px) {
  .ll-sidebar { width: var(--ll-sidebar-w); flex: 0 0 var(--ll-sidebar-w); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .ll-sidebar.offcanvas-lg { --bs-offcanvas-width: 270px; --bs-offcanvas-bg: var(--ll-navy); }
  .ll-sidebar { display: flex; flex-direction: column; }
}
.ll-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.ll-side-nav { padding: .75rem .65rem; flex: 1 1 auto; }
.ll-side-nav ul { list-style: none; margin: 0; padding: 0; }
.ll-side-link { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; margin-bottom: .15rem; border-radius: .5rem; color: #CBD5E1; text-decoration: none; font-weight: 500; font-size: .93rem; }
.ll-side-link i { font-size: 1.1rem; width: 1.2rem; text-align: center; }
.ll-side-link:hover, .ll-side-link:focus { background: rgba(255,255,255,.07); color: #fff; }
.ll-side-link.active { background: var(--ll-male); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.ll-side-section { margin: 1rem .8rem .4rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #64748B; font-weight: 700; }
.ll-side-foot { padding: 1rem; font-size: .72rem; color: #64748B; border-top: 1px solid rgba(255,255,255,.08); }
.ll-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ll-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; background: #fff; border-bottom: 1px solid var(--ll-border); }
.ll-menu-btn { font-size: 1.5rem; padding: .1rem .5rem; color: var(--ll-navy); }
.ll-search { position: relative; flex: 0 1 420px; }
.ll-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ll-muted); }
.ll-search .form-control { padding-left: 2.3rem; background: var(--ll-bg); border-color: transparent; border-radius: .6rem; }
.ll-search .form-control:focus { background: #fff; border-color: #93C5FD; }
.ll-user { display: flex; align-items: center; gap: .55rem; border: 0; padding: .25rem .4rem; }
.ll-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.ll-avatar-admin { background: var(--ll-navy); }
.ll-avatar-operator { background: var(--ll-female); }
.ll-main { flex: 1 0 auto; padding: 1.5rem; }
.ll-footer { color: var(--ll-muted); text-align: center; padding: 1rem; font-size: .8rem; }
.ll-skip { position: absolute; z-index: 2000; left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; }
@media (max-width: 575.98px) { .ll-main { padding: 1rem .75rem; } .ll-topbar { padding: .5rem .75rem; } }

/* Public pages */
.ll-public { min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(rgba(11,31,56,.72), rgba(11,31,56,.88)), url("../img/lockers-bg.svg") repeat center / 240px 200px; }
.ll-public-main { flex: 1 0 auto; display: flex; align-items: center; padding: 2.5rem 1rem; }
.ll-public-inner { width: 100%; }
.ll-public-footer { text-align: center; color: #CBD5E1; font-size: .8rem; padding: 1rem; }
.ll-panel { background: #fff; border-radius: 1rem; padding: 2.25rem 2rem; box-shadow: 0 24px 60px rgba(2,6,23,.35); }
.ll-input-icon .input-group-text { background: #fff; color: var(--ll-muted); }
.ll-input-icon .form-control { border-left: 0; }

/* Cards and headings */
.ll-card { background: #fff; border: 1px solid var(--ll-border); border-radius: .85rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ll-card-title { font-size: 1.05rem; font-weight: 700; color: var(--ll-navy); margin-bottom: 1rem; }
.ll-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.ll-page-head h1 { font-size: 1.65rem; font-weight: 700; margin: 0; color: var(--ll-navy); }
.ll-sub { color: var(--ll-muted); margin: .2rem 0 0; }

/* Dashboard */
.ll-stat { padding: 1.25rem; display: flex; flex-direction: column; text-decoration: none; }
.ll-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: .7rem; font-size: 1.35rem; color: #fff; margin-bottom: .9rem; }
.ll-tone-blue { background: var(--ll-male); } .ll-tone-green { background: var(--ll-available); }
.ll-tone-navy { background: var(--ll-navy); } .ll-tone-amber { background: var(--ll-agency); }
.ll-stat-value { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--ll-navy); }
.ll-stat-label { color: #334155; font-weight: 500; }
.ll-stat-link { margin-top: .6rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.ll-link-blue, .ll-link-navy { color: var(--ll-male); } .ll-link-green { color: #16A34A; } .ll-link-amber { color: #D97706; }
.ll-donut { width: 190px; height: 190px; flex: none; }
.ll-donut circle { transform-origin: center; }
.ll-donut-track { stroke: #E5E7EB; }
.ll-seg-available { stroke: var(--ll-available); } .ll-seg-occupied { stroke: var(--ll-male); } .ll-seg-maintenance { stroke: var(--ll-maintenance); }
.ll-donut-num { font-size: 8px; font-weight: 800; fill: var(--ll-navy); }
.ll-donut-cap { font-size: 2.6px; fill: var(--ll-muted); }
.ll-legend-list { list-style: none; padding: 0; margin: 0; flex: 1 1 180px; }
.ll-legend-list li { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; border-bottom: 1px solid #F1F5F9; }
.ll-legend-list strong { margin-left: auto; } .ll-legend-list strong span { color: var(--ll-muted); font-weight: 400; }
.ll-dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.ll-dot-available { background: var(--ll-available); } .ll-dot-occupied { background: var(--ll-male); }
.ll-dot-maintenance { background: var(--ll-maintenance); } .ll-dot-keyout { background: var(--ll-agency); }
.ll-activity { list-style: none; margin: 0; padding: 0; }
.ll-activity li { display: flex; align-items: flex-start; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid #F1F5F9; font-size: .88rem; }
.ll-activity-time { color: var(--ll-muted); font-size: .78rem; width: 3rem; flex: none; }
.ll-activity-time span { font-size: .7rem; }
.ll-activity-text { flex: 1 1 auto; }

/* Pills and badges */
.ll-pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.ll-pill-blue { background: #DBEAFE; color: #1D4ED8; } .ll-pill-pink { background: #FCE7F3; color: #BE185D; }
.ll-pill-grey { background: #F1F5F9; color: #475569; } .ll-pill-green { background: #DCFCE7; color: #15803D; }
.ll-pill-red { background: #FEE2E2; color: #B91C1C; } .ll-pill-core { background: #CCFBF1; color: var(--ll-core); }
.ll-pill-agency { background: #FEF3C7; color: #B45309; }
.badge.ll-male { background: var(--ll-male); }
.badge.ll-female { background: var(--ll-female); }
.badge.ll-core { background: var(--ll-core); }
.badge.ll-agency { background: var(--ll-agency); color: #1f1300; }
.badge.ll-available { background: var(--ll-available); color: #052e16; }
.badge.ll-maintenance { background: var(--ll-maintenance); }
.badge.ll-retired { background: #94a3b8; }
.badge.ll-occupied { background: #475569; }
.text-male { color: var(--ll-male) !important; } .text-female { color: #BE185D !important; }
.ll-text-available { color: #16A34A; } .ll-text-agency { color: var(--ll-agency); }

/* Locker grid */
.ll-room { margin-bottom: 1.75rem; }
.ll-room-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; border-radius: .6rem; color: #fff; margin-bottom: .75rem; font-size: .85rem; }
.ll-room-bar h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.ll-room-male { background: var(--ll-male); }
.ll-room-female { background: var(--ll-female); }
.ll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: .6rem; }
.ll-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-height: 112px; padding: 1.15rem .45rem .5rem;
  background: #fff; border: 1px solid var(--ll-border); border-radius: .65rem; color: inherit; text-decoration: none; text-align: center;
  transition: transform .08s ease, box-shadow .08s ease; }
.ll-tile:hover, .ll-tile:focus { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,.12); color: inherit; }
.ll-tile:focus-visible { outline: 3px solid var(--ll-male); outline-offset: 2px; }
.ll-tile .ll-num { font-weight: 800; font-size: 1.15rem; color: var(--ll-navy); line-height: 1.1; }
.ll-tile .ll-who { font-size: .8rem; color: #334155; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-tile .ll-state { margin-top: auto; width: 100%; padding: .22rem .3rem; border-radius: .35rem; font-size: .72rem; font-weight: 700; color: #fff; }
.ll-state-available { background: var(--ll-available); color: #052e16 !important; }
.ll-state-maintenance { background: var(--ll-maintenance); }
.ll-state-core { background: var(--ll-core); }
.ll-state-agency { background: var(--ll-agency); color: #1f1300 !important; }
.ll-tile .ll-des { position: absolute; top: .35rem; left: .45rem; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ll-des-core { color: var(--ll-core); } .ll-des-agency { color: #B45309; }
.ll-tile .ll-key { position: absolute; top: .3rem; right: .45rem; color: var(--ll-agency); font-size: .95rem; }
.ll-tile.is-maintenance { background: #FEF2F2; border-color: #FECACA; }
.ll-legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .82rem; color: var(--ll-muted); }
.ll-legend .sw { display: inline-block; width: .85rem; height: .85rem; border-radius: .2rem; vertical-align: -2px; margin-right: .3rem; }
.sw.male { background: var(--ll-male); } .sw.female { background: var(--ll-female); } .sw.core { background: var(--ll-core); }
.sw.agency { background: var(--ll-agency); } .sw.available { background: var(--ll-available); } .sw.maintenance { background: var(--ll-maintenance); }
.ll-filters .form-label { font-size: .75rem; color: var(--ll-muted); margin-bottom: .15rem; font-weight: 600; }

/* Tables */
.table { --bs-table-bg: transparent; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ll-muted); font-weight: 700; background: #F8FAFC; border-bottom-color: var(--ll-border); }
.ll-card > .table-responsive > .table > :not(caption) > * > *:first-child { padding-left: 1rem; }
.ll-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: .45rem; border: 1px solid var(--ll-border); color: var(--ll-male); background: #fff; text-decoration: none; }
.ll-icon-btn:hover { background: #EFF6FF; color: #1D4ED8; }

/* Misc */
.ll-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ll-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre.ll-config { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: .5rem; max-height: 360px; overflow: auto; font-size: .8rem; }
.ll-w-420 { max-width: 420px; } .ll-w-560 { max-width: 560px; } .ll-w-640 { max-width: 640px; } .ll-w-860 { max-width: 860px; }
@media print { .ll-sidebar, .ll-topbar, .ll-footer, .ll-filters, .btn, form { display: none !important; } }
/* Bootstrap's offcanvas-lg forces a transparent background on large screens. */
.ll-sidebar.offcanvas-lg { background-color: var(--ll-navy) !important; color: #E2E8F0; }
.table a:not(.btn):not(.ll-icon-btn) { text-decoration: none; font-weight: 600; } .table a:not(.btn):hover { text-decoration: underline; }
.ll-or { display: flex; align-items: center; gap: .75rem; color: var(--ll-muted); font-size: .8rem; margin: 1rem 0; }
.ll-or::before, .ll-or::after { content: ""; flex: 1; border-top: 1px solid var(--ll-border); }
