@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg: #f4f6fb;
  --bg-soft: #eef1f8;
  --card: #ffffff;
  --text: #1a1d26;
  --muted: #64748b;
  --border: #e8ecf4;
  --primary: #5d5fef;
  --primary-soft: rgba(93, 95, 239, 0.12);
  --primary-700: #4f46e5;
  --accent-blue: #4895ef;
  --danger: #dc2626;
  --shadow-sm: 0 4px 14px rgba(26, 29, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 29, 38, 0.08);
  --shadow-lg: 0 24px 48px rgba(93, 95, 239, 0.18);
  --radius: 16px;
  --radius-lg: 20px;
  --sidebar-w: 268px;
}

body{
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

.app-shell{
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

.sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 4px 0 24px rgba(26, 29, 38, 0.04);
}

.sidebar-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 55%, var(--accent-blue) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 24px rgba(93, 95, 239, 0.35);
}

.brand-name{
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-subtitle{
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  font-weight: 500;
}

.sidebar-nav{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-item{
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, transform 160ms ease, color 180ms ease;
}

.sidebar-item:hover{
  background: var(--bg-soft);
  border-color: rgba(93, 95, 239, 0.08);
}

.sidebar-item:active{ transform: translateY(1px); }

.sidebar-item.active{
  background: linear-gradient(90deg, var(--primary-soft), rgba(93, 95, 239, 0.06));
  border-color: rgba(93, 95, 239, 0.12);
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.sidebar-item.active::after{
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 56%;
  max-height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--accent-blue));
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(93, 95, 239, 0.4);
}

.sidebar-ico{ width: 20px; display: inline-flex; justify-content: center; }

.sidebar-footer{
  margin-top: auto;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--border);
}

.sidebar-item.danger{
  border: 1px solid var(--border);
  color: #64748b;
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
  font-weight: 600;
}

.sidebar-item.danger:hover{
  color: var(--primary);
  border-color: rgba(93, 95, 239, 0.25);
  background: var(--primary-soft);
  box-shadow: var(--shadow-md);
}

.main{
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.topbar::before{
  content: "🔍  Search for lockers…";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 36vw);
  padding: 11px 16px 11px 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px){
  .topbar::before{ display: none; }
}

.page-title-wrap{ position: relative; z-index: 1; }

.page-title{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-subtitle{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  max-width: 320px;
}

.topbar-right{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 18px;
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover{
  border-color: rgba(93, 95, 239, 0.25);
  box-shadow: var(--shadow-md);
}

.icon-btn:active{ transform: translateY(1px); }

.user-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  max-width: 320px;
  box-shadow: var(--shadow-sm);
}

.user-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.user-info{
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn{
  border: 1px solid rgba(93, 95, 239, 0.2);
  background: #fff;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 180ms ease, transform 160ms ease, box-shadow 180ms ease;
  box-shadow: var(--shadow-sm);
}

.logout-btn:hover{
  background: var(--primary-soft);
  box-shadow: 0 8px 22px rgba(93, 95, 239, 0.15);
}

.logout-btn:active{ transform: translateY(1px); }

.content{
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1180px;
}

.content--dash{
  gap: 20px;
}

/* Welcome + stats (dashboard home) */
.dash-welcome{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dash-welcome-kicker{
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-700);
  margin-bottom: 6px;
}

.dash-welcome-title{
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.dash-welcome-desc{
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 520px;
  line-height: 1.55;
}

.dash-btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  box-shadow: 0 12px 28px rgba(93, 95, 239, 0.28);
  transition: filter 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.dash-btn-primary:hover{
  filter: brightness(1.05);
}

.dash-btn-primary:active{
  transform: translateY(1px);
}

.dash-btn-primary.is-approval-disabled{
  background: #cbd5e1;
  color: #475569;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.dash-approval-banner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
  box-shadow: var(--shadow-sm);
}

.dash-approval-banner.hidden{
  display: none;
}

.dash-approval-banner strong{
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 900;
}

.dash-approval-banner p{
  margin: 0;
  max-width: 760px;
  color: #92400e;
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 600;
}

.dash-approval-banner a{
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-700);
  border: 1px solid #fde68a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
}

.dash-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-tile{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.stat-tile:hover{
  border-color: rgba(93, 95, 239, 0.18);
  box-shadow: var(--shadow-md);
}

.stat-tile--warn .stat-tile-value{
  color: #c2410c;
}

.stat-tile-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.stat-tile-label{
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-tile-ico{
  color: var(--primary);
  opacity: 0.85;
  display: grid;
  place-items: center;
}

.stat-tile-value{
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary-700);
  line-height: 1.1;
}

.stat-tile--warn .stat-tile-ico{
  color: #ea580c;
}

/* Two-column dashboard grid */
.dash-grid{
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 20px;
  align-items: start;
}

.dash-grid-main{
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dash-grid-side{
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.quick-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.quick-card-title{
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.quick-list{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 180ms ease, border-color 180ms ease;
}

.quick-item:hover{
  background: var(--bg-soft);
  border-color: rgba(93, 95, 239, 0.12);
}

.quick-item-ico{
  font-size: 1.25rem;
  line-height: 1;
}

.quick-item-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-item-name{
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.quick-item-desc{
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.map-teaser{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  min-height: 140px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-teaser-inner{
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-teaser-ico{
  font-size: 1.5rem;
}

.map-teaser-title{
  font-size: 0.95rem;
  font-weight: 800;
}

.map-teaser-desc{
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.75);
  font-weight: 500;
}

.dash-history-card{
  margin-top: 4px;
}

.card-body--table{
  padding: 0;
}

.info-card--flush .card-body:not(.card-body--table){
  padding-top: 4px;
}

/* Info Cards */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.info-card.hidden {
  display: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2ff;
  color: var(--primary-700);
  border: 1px solid #e0e7ff;
  white-space: nowrap;
}

.status-badge.active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status-badge.inactive {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #374151;
}

.card-body {
  min-width: 0;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 34px 16px;
  color: var(--muted);
}

.empty-icon {
  font-size: 44px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.empty-state p {
  font-size: 16px;
  font-weight: 500;
}

/* Booking Display */
.booking-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.booking-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booking-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.dash-reservation-header {
  border-bottom: 0;
  padding-bottom: 0;
}

.dash-reservation-header .status-badge {
  display: none;
}

.dash-view-all {
  margin-left: auto;
  color: var(--primary-700);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.dash-active-reservation {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dfe3ff;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dash-res-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-res-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(135deg, #5d5fef, #4f46e5);
}

.dash-res-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dash-res-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.dash-res-location {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 3px;
}

.dash-res-locker {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.dash-res-countdown {
  text-align: right;
  flex-shrink: 0;
}

.dash-res-countdown span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 2px;
}

.dash-res-countdown strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dash-res-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.dash-res-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-res-meta span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.dash-res-meta strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.dash-masked-pin,
#dashMaskedPin {
  color: var(--primary-700);
  letter-spacing: 4px;
}

.dash-res-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-res-btn {
  min-width: 72px;
  min-height: 40px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.dash-res-btn--ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
}

.dash-res-btn--primary {
  color: #fff;
  background: #4f46e5;
  border: 1px solid #4f46e5;
}

.dash-res-progress {
  height: 5px;
  background: #dbe4ff;
}

.dash-res-progress span {
  display: block;
  height: 100%;
  background: #5d5fef;
}

/* PIN Display */
.pin-display {
  text-align: center;
  padding: 20px;
}

.pin-value {
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 6px;
  margin-bottom: 14px;
  padding: 14px;
  background: #f3f4f6;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.pin-info {
  color: var(--muted);
}

.pin-info p {
  margin-bottom: 8px;
  font-size: 14px;
}

.pin-expires {
  font-size: 12px;
  color: var(--muted);
}

/* Lockers Grid */
.lockers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.locker-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.locker-item:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 95, 239, 0.2);
  box-shadow: var(--shadow-md);
}

.locker-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.locker-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 10px;
  display: inline-block;
}

.locker-status.available {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.locker-status.booked {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.locker-status.in_use {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.locker-location {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* History: table layout */
.history-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.history-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.history-table th{
  text-align: left;
  padding: 12px 16px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.history-table td{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  vertical-align: middle;
}

.history-table tbody tr:hover{
  background: rgba(93, 95, 239, 0.04);
}

.history-pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-pill--active{
  background: #e0e7ff;
  color: var(--primary-700);
  border: 1px solid #c7d2fe;
}

.history-pill--completed{
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.history-pill--cancelled{
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* History List (legacy cards — unused when table rendered) */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.history-item:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 95, 239, 0.2);
  box-shadow: var(--shadow-md);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.history-locker {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.history-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 10px;
}

.history-status.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.history-status.completed {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.history-status.cancelled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.history-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.history-detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-detail-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.history-detail-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .dash-grid{
    grid-template-columns: 1fr;
  }

  .dash-grid-side{
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
  }

  .map-teaser{
    min-height: 120px;
  }
}

@media (max-width: 768px) {
  :root{ --sidebar-w: 240px; }
  .content{ padding: 18px 16px; }
  .topbar{ padding: 12px 16px; min-height: auto; }
  .info-card{ padding: 16px; }

  .dash-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-welcome{
    padding: 18px;
  }

  .dash-grid-side{
    grid-template-columns: 1fr;
  }

  .history-table th,
  .history-table td{
    padding: 10px 12px;
  }

  .info-grid,
  .booking-details,
  .history-details {
    grid-template-columns: 1fr;
  }

  .dash-res-bottom {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dash-res-actions {
    justify-content: flex-start;
  }

  .lockers-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .pin-value {
    font-size: 28px;
    letter-spacing: 4px;
  }
}

@media (max-width: 520px) {
  .dash-stats{
    grid-template-columns: 1fr;
  }

  .history-table thead{
    display: none;
  }

  .history-table tr{
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .history-table td{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    border: 0;
    font-size: 0.82rem;
  }

  .history-table td::before{
    content: attr(data-label);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
}

@media (max-width: 560px) {
  .app-shell{ grid-template-columns: 1fr; }
  .sidebar{
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }
  .topbar{ position: relative; }
  .lockers-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .pin-value {
    font-size: 26px;
    letter-spacing: 2px;
  }
}
