:root {
  --tl-primary: #1a3a5c;
  --tl-accent: #f5a623;
  --tl-green: #28a745;
}

body {
  background: #f3f6fb;
}

.navbar {
  background: var(--tl-primary) !important;
}

.navbar-brand {
  color: var(--tl-accent) !important;
  font-weight: 700;
}

.sidebar {
  background: #fff;
  min-height: calc(100vh - 56px);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 56px;
}

.sidebar .nav-link,
#adminSidebar .nav-link {
  color: #344054;
  border-radius: 10px;
  margin: 2px 10px;
  padding: 0.55rem 0.75rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover,
#adminSidebar .nav-link.active,
#adminSidebar .nav-link:hover {
  background: var(--tl-primary);
  color: #fff;
}

#adminSidebar.offcanvas {
  --bs-offcanvas-width: min(280px, 88vw);
}

#adminSidebar .offcanvas-header {
  background: var(--tl-primary);
  color: #fff;
}

#adminSidebar .offcanvas-title {
  color: var(--tl-accent);
  font-weight: 700;
}

.card {
  border: 0;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  border-radius: 14px;
}

.card-stat {
  border-left: 4px solid var(--tl-accent);
}

.btn-tl {
  background: var(--tl-primary);
  color: #fff;
}

.btn-tl:hover {
  background: #0f2840;
  color: #fff;
}

.page-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #101828;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: #667085;
  margin-bottom: 0;
}

.table thead th {
  color: #475467;
  font-weight: 700;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.table td,
.table th {
  vertical-align: middle;
}

.tl-muted {
  color: #667085;
}

.tl-route {
  direction: ltr;
  unicode-bidi: isolate;
}

.queue-city-accordion .accordion-item {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.queue-city-accordion .accordion-button {
  gap: 8px;
  background: #fff;
  color: #101828;
  box-shadow: none;
  font-weight: 700;
}

.queue-city-accordion .accordion-button:not(.collapsed) {
  background: rgba(26, 58, 92, 0.08);
  color: #101828;
  box-shadow: none;
}

.queue-city-accordion .accordion-button:focus {
  box-shadow: none;
}

.queue-station-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.15rem;
  color: #101828;
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.queue-station-heading:hover,
.queue-station-heading.is-selected {
  background: rgba(26, 58, 92, 0.06);
  color: #101828;
}

.queue-station-heading.is-empty {
  color: #98a2b3;
}

.queue-station-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  text-align: start;
}

.admin-main {
  min-width: 0;
}

/* ─── Mobile ───────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .sidebar {
    display: none !important;
  }

  .admin-main {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .navbar .container-fluid {
    gap: 0.5rem;
  }

  .navbar-brand {
    font-size: 1rem;
    max-width: calc(100vw - 140px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-stat h4 {
    font-size: 1.5rem;
  }

  .table-responsive {
    margin: 0 -0.25rem;
  }

  .table {
    font-size: 0.875rem;
  }

  .table thead th,
  .table td {
    white-space: nowrap;
  }

  .d-flex.flex-wrap.gap-2 .btn,
  .mt-4.d-flex .btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .admin-menu-btn {
    display: none !important;
  }
}
