
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Inter", sans-serif;

  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #273d4e;
  --accent-color: #064fbb; /* bootstrap primary fallback */
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: white;
  --nav-hover-color: #06bb33;
  --nav-mobile-background-color: #444444;
  --nav-dropdown-background-color: #444444;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #064fbb;
}

/*--------------------------------------------------------------
# Navigation Menu (Blue Background, White Text)
--------------------------------------------------------------*/
.bg-primary-nav {
  background-color: #444444 !important;
}

.header {
  height: 80px;
  z-index: 9999;
}

@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 14px;
    padding: 0 4px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }

  .navmenu a i {
    font-size: 16px;
  }

  .navmenu a:hover,
  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0;
    transition: all 0.3s ease-in-out;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  /* Dropdown Menu */
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    border-radius: 4px;
    z-index: 99;
    transition: all 0.3s;
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a:hover {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

/* === MOBILE NAVIGATION === */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
  }

  .navmenu {
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    background-color: var(--nav-mobile-background-color);
    border-radius: 6px;
    padding: 10px 0;
    margin: 0;
    overflow-y: auto;
  }

  .navmenu a {
    color: #ffffff;
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navmenu a:hover,
  .navmenu .active {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #ffffff;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    background: var(--nav-dropdown-background-color);
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/* Hide mobile nav toggle on desktop */
.mobile-nav-toggle {
  display: none;
}

/* Show only on small screens */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: inline-block;
    font-size: 28px;
    cursor: pointer;
  }

  #navmenu ul {
    display: none;
  }

  body.mobile-nav-active #navmenu ul {
    display: block;
    background: var(--nav-mobile-background-color);
    position: absolute;
    top: 60px;
    right: 15px;
    left: 15px;
    border-radius: 8px;
    padding: 10px;
  }
}


/* ------------------------------------------------------------
   Base / Global
   ------------------------------------------------------------ */
html, body {
  font-family: var(--default-font);
  background-color: var(--background-color);
  color: var(--default-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Headings & page titles */
.page-title {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* Utility: center text on small screens where used often */
.text-center-mobile {
  text-align: center;
}
@media (min-width: 768px) {
  .text-center-mobile { text-align: left; }
}

/* Link defaults */
a {
  color: var(--accent-color);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Cards, Forms and Form Layouts
   Reusable classes for forms and cards used across templates
   ------------------------------------------------------------ */

.card.surface {
  background: var(--surface-color);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(22, 28, 36, 0.04);
}

/* Form container for centered forms (add/edit driver etc.) */
.form-container {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* .form-card is the main wrapper for forms that previously had inline styling */
.form-card {
  background: var(--surface-color);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 1.25rem;
}

/* Label and help text */
.form-label {
  font-weight: 600;
  color: var(--heading-color);
  display: block;
  margin-bottom: 0.375rem;
}
.form-help {
  display: block;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Inputs: unify size/spacing across driver, owner, parcel forms */
.input-full {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.95rem;
  color: var(--default-color);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input-full:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 10%, transparent);
}

/* Group spacing */
.form-row {
  margin-bottom: 0.9rem;
}

/* Buttons - consistent action buttons used site-wide */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
}
.btn-secondary {
  background: #6c757d;
  color: var(--contrast-color);
}
.btn-success {
  background: #198754;
  color: var(--contrast-color);
}
.btn-danger {
  background: #dc3545;
  color: var(--contrast-color);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.08);
}
/* small icon sizing */
.btn-action i.bi {
  font-size: 1.05rem;
}

/* Inline link used for "Back" actions */
.link-back {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.95rem;
}
.link-back:hover { color: var(--accent-color); }

/* ------------------------------------------------------------
   Form validation, errors, info, badges
   ------------------------------------------------------------ */

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.alert-inline {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.alert-success { background-color: #d4edda; color: #0f5132; }
.alert-warning { background-color: #fff3cd; color: #664d03; }
.alert-danger  { background-color: #f8d7da; color: #842029; }

/* Tiny helper for small meta text */
.small-muted {
  font-size: 0.85rem;
  color: #6c757d;
}

/* ------------------------------------------------------------
   Tables - unified appearance for all record lists
   ------------------------------------------------------------ */

.table-unified {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table-unified thead th {
  background: rgba(0,0,0,0.06);
  font-weight: 600;
  color: var(--contrast-color);
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.table-unified tbody td {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}
.table-unified tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}

/* compact table actions column */
.table-actions a,
.table-actions button {
  margin-right: 0.35rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* responsive table wrapper */
.table-responsive-unified {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: var(--surface-color);
  padding: 0.4rem;
}

/* ------------------------------------------------------------
   Lists and Cards used in dashboards and small lists
   ------------------------------------------------------------ */

.list-card {
  border-radius: 10px;
  padding: 0.8rem;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--surface-color);
}
.card-compact {
  padding: 0.6rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Dashboard stat cards */
.stat-card {
  border-radius: 10px;
  overflow: hidden;
}
.stat-card .card-header {
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  opacity: 0.95;
}
.stat-card .card-body { padding: 0.8rem 0.9rem; }

/* action button group spacing */
.action-buttons .btn {
  margin: 0.2rem 0.35rem;
}



/* Page-title used in Add / Edit pages */
.page-title-lg {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* form-card variant used on add/edit driver pages */
.form-card.form-centered {
  max-width: 680px;
  margin: 0 auto;
}

/* file preview / avatar images */
.avatar-lg {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.06);
}

/* neat label for inline badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* small action row used beneath details */
.detail-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* confirm delete panel */
.confirm-panel {
  max-width: 520px;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 10px;
  background: #fff7f7;
  border: 1px solid rgba(220,53,69,0.12);
}

/* Driver detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 720px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* field label style in detail views */
.detail-label {
  font-weight: 700;
  color: var(--heading-color);
}

/* ------------------------------------------------------------
   Filter and search forms used in reports (vehicle assignment)
   ------------------------------------------------------------ */

.filter-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.filter-form .form-control, .filter-form select, .filter-form input {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
}
@media (min-width: 768px) {
  .filter-form { grid-template-columns: repeat(5, 1fr); }
}

/* Filter button compact */
.filter-form .btn {
  align-self: end;
}

/* ------------------------------------------------------------
   Select2 / third-party selects -- style override to match site
   (Select2 was used in some pages)
   ------------------------------------------------------------ */
.select2-container .select2-selection--single {
  height: 44px;
  border-radius: 8px;
  padding: 0 0.5rem;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
}

/* ------------------------------------------------------------
   QR/Scanner area style - keep the js intact, only visuals here
   ------------------------------------------------------------ */
.scanner-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0.5rem;
}
#reader, #scanner {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  background: #fafafa;
  display: block;
}

/* scanner result / messages area */
.scan-result {
  margin-top: 0.6rem;
  padding: 0.6rem;
  border-radius: 8px;
  background: #f8f9fa;
}

/* ------------------------------------------------------------
   Responsive tweaks - mobile-first adjustments
   ------------------------------------------------------------ */

@media (max-width: 576px) {
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }
  .btn-action { width: 100%; justify-content: center; padding: 0.65rem; }
  .table-unified thead { display: none; } /* convert to stacked rows in tiny screens */
  .table-unified tbody td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.5rem;
  }
  .table-unified tbody tr {
    margin-bottom: 0.6rem;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 8px;
    display: block;
    padding: 0.35rem;
  }
  .detail-actions { flex-direction: column; gap: 0.5rem; }
}

/* ------------------------------------------------------------
   Accessibility and focus states
   ------------------------------------------------------------ */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent-color) 12%, transparent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Small helper classes used across templates
   ------------------------------------------------------------ */
.hidden { display: none !important; }
.muted { color: #6c757d; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.gap-sm { gap: 0.5rem; }
.p-0 { padding: 0; }
.mt-sm { margin-top: 0.5rem; }

/* End of Batch 1 stylesheet */

/* =========================================
   EXPLORER SYSTEM - UNIFIED STYLE SHEET (Batch 2)
   Covers: Dashboard, Vehicle Assignment, Reports, Routes, and Repairs Templates
   Layout blocks remain identical (navbar, sidebar, content-wrapper)
   ========================================= */

/* ====== CONTAINERS AND LAYOUT ====== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: rgb(245, 238, 238);
}

.card-header {
  font-weight: 600;
  background-color: white;
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.card-body {
  padding: 1.5rem;
  color: black;
}

/* ====== DASHBOARD CARDS ====== */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  text-align: center;
  color: var(--contrast-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
}

.bg-primary {
  background: var(--accent-color) !important;
}

.bg-success {
  background: #28a745 !important;
}

.bg-warning {
  background: #ffc107 !important;
}

/* ====== TABLES ====== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: #fff;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.table th {
  background-color: var(--heading-color);
  color: var(--contrast-color);
  font-weight: 600;
}

.table-striped tbody tr:nth-child(odd) {
  background: #f8f9fa;
}

.table-hover tbody tr:hover {
  background: #eef5ff;
}

.table .btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}

/* ====== BUTTONS ====== */
.btn {
  font-family: var(--nav-font);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
}

.btn-success {
  background-color: #28a745;
  color: #fff;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
}

/* ====== FORMS ====== */
form {
  width: 100%;
}

form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: inline-block;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-family: var(--default-font);
}

form button[type="submit"] {
  width: 100%;
  margin-top: 0.8rem;
}

.alert {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
}

/* ====== CONFIRMATION PAGES (DELETE) ====== */
.confirm-box {
  text-align: center;
  padding: 2rem;
}

.confirm-box h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.confirm-box p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ====== ROUTES & REPAIRS TABLE STYLES ====== */
.table .actions {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.table .actions .btn {
  padding: 0.3rem 0.7rem;
}

/* ====== FILTER FORMS (REPORTS & ASSIGNMENTS) ====== */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.filter-form select,
.filter-form input {
  flex: 1;
  min-width: 160px;
}

.filter-form button {
  flex-shrink: 0;
}

/* ====== LIST GROUP (Dashboard Navigation) ====== */
.list-group {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.list-group-item {
  border: 1px solid #dee2e6;
  padding: 0.8rem 1rem;
  background-color: #fff;
  transition: background-color 0.2s ease;
}

.list-group-item:hover {
  background-color: #eef5ff;
}

/* ====== MOBILE RESPONSIVENESS ====== */
@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .table {
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.4rem;
  }

  .filter-form {
    flex-direction: column;
  }

  .list-group-item {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.3rem;
  }

  .card-body {
    padding: 1rem;
  }

  .alert {
    font-size: 0.85rem;
  }
}

/* =========================
   BATCH 3 — Core Styles
   ========================= */

/* === General Layout === */
.section {
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 0.6rem auto 1rem;
  border-radius: 2px;
}

/* === Tables === */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th, .table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
}

.table th {
  background: #f8f9fb;
  color: var(--heading-color);
  font-weight: 600;
}

.table tr:hover {
  background: #f3f6fa;
}

/* === Cards === */
.card {
  background: var(--surface-color);
  border: 3px solid #2f53ca;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.card-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* === Forms === */
.form-section {
  padding: 1rem;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--heading-color);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--default-font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,255,0.15);
}

/* === Buttons === */
.btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}

.btn:hover {
  background: #0043cc;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* === Summary Panels (Revenue, Reports) === */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.summary-item {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.summary-item h4 {
  font-size: 0.95rem;
  color: var(--default-color);
}

.summary-item span {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 700;
}

/* === Responsive === */
@media (max-width: 768px) {
  .section {
    padding: 0.9rem;
  }

  .table th, .table td {
    padding: 0.55rem;
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.9rem;
  }

  .btn {
    width: 100%;
    padding: 0.8rem;
  }
}



/* === Page Containers === */
.page-wrapper {
  background: var(--background-color);
  padding: 1rem;
  border-radius: 14px;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  background: var(--surface-color);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-bar h2 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* === Ticket Cards === */
.ticket-card {
  background: var(--surface-color);
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ticket-card .trip-info {
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 0.4rem;
}

.ticket-card .status {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status.paid {
  background: #dfffe0;
  color: #218838;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

.status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* === Trip Summary Grid === */
.trip-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.trip-summary .stat-box {
  background: var(--surface-color);
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  text-align: center;
  padding: 1rem;
}

.trip-summary .stat-box h5 {
  font-size: 0.95rem;
  color: var(--default-color);
}

.trip-summary .stat-box span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* === Passenger Table === */
.passenger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.passenger-table th,
.passenger-table td {
  border-bottom: 1px solid #eaeaea;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.9rem;
}

.passenger-table th {
  background: #f9fafb;
  color: var(--heading-color);
}

.passenger-table tr:hover {
  background: #f3f6fa;
}

/* === QR and Check-In === */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.qr-section img {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

.qr-section p {
  font-size: 0.9rem;
  color: var(--default-color);
}

/* === Conductor Panel === */
.panel {
  background: var(--surface-color);
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  margin-bottom: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.panel-header h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
}

.panel-header .action-btns button {
  margin-left: 0.4rem;
}

/* === Buttons & Filters === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-bar select,
.filter-bar input {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  min-width: 140px;
}

.btn-filter {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
}

.btn-filter:hover {
  background: #0043cc;
}

/* === Logs & Reports === */
.logs-container {
  background: var(--surface-color);
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.log-entry {
  border-bottom: 1px solid #f0f0f0;
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry span {
  font-weight: 600;
  color: var(--heading-color);
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    flex-direction: column;
  }

  .trip-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .qr-section img {
    width: 150px;
  }

  .btn-filter {
    width: 100%;
  }
}

/* =========================
   BATCH 5 — Admin, Owner, Parcel, Payment & Settings
   ========================= */

/* === Dashboard Layout === */
.dashboard-container {
  background: var(--background-color);
  border-radius: 16px;
  padding: 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.dashboard-header h2 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 1.25rem;
}

.dashboard-header .actions {
  display: flex;
  gap: 0.5rem;
}

/* === Admin Summary Cards === */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-card h4 {
  font-size: 0.95rem;
  color: var(--default-color);
}

.summary-card span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* === Owner Reports === */
.owner-report {
  background: var(--surface-color);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  margin-bottom: 1.2rem;
}

.owner-report h3 {
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.owner-report .vehicle-profits {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 0.5rem 0;
}

.owner-report .vehicle-profits span {
  font-size: 0.9rem;
  color: var(--default-color);
}

.owner-report .total {
  font-weight: 700;
  color: var(--accent-color);
}

/* === Parcel Management === */
.parcel-section {
  background: var(--surface-color);
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.parcel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 0.7rem 0;
}

.parcel-item:last-child {
  border-bottom: none;
}

.parcel-item .details {
  font-size: 0.9rem;
}

.parcel-item .details strong {
  color: var(--heading-color);
}

.parcel-item .actions {
  display: flex;
  gap: 0.4rem;
}

/* === Payment Logs === */
.payment-log {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.payment-log .entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.payment-log .entry:last-child {
  border-bottom: none;
}

.payment-log .status-paid {
  color: #28a745;
  font-weight: 600;
}

.payment-log .status-failed {
  color: #dc3545;
  font-weight: 600;
}

.payment-log .status-pending {
  color: #ffc107;
  font-weight: 600;
}

/* === SMS Confirmation & Notification === */
.sms-card {
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  padding: 1rem;
  margin-bottom: 1rem;
}

.sms-card h4 {
  font-size: 1rem;
  color: var(--heading-color);
}

.sms-card p {
  font-size: 0.9rem;
  color: var(--default-color);
}

.sms-status {
  font-weight: 600;
  font-size: 0.85rem;
}

.sms-status.success {
  color: #218838;
}

.sms-status.failed {
  color: #c82333;
}

/* === Settings & Profile === */
.settings-panel {
  background: var(--surface-color);
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  margin-bottom: 1rem;
}

.settings-panel h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.settings-panel .form-group {
  margin-bottom: 1rem;
}

.settings-panel label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--heading-color);
}

.settings-panel input,
.settings-panel select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* === Buttons === */
.btn-save,
.btn-submit {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
}

.btn-save:hover,
.btn-submit:hover {
  background: #0043cc;
}

.btn-cancel {
  background: #e9ecef;
  color: var(--default-color);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
}

/* === Responsive === */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .owner-report .vehicle-profits {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .parcel-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .parcel-item .actions {
    margin-top: 0.5rem;
  }

  .payment-log .entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-panel input,
  .settings-panel select {
    font-size: 1rem;
  }

  .btn-save,
  .btn-submit,
  .btn-cancel {
    width: 100%;
    margin-bottom: 0.4rem;
  }
}

/* =========================================================
   BATCH 5 – FINAL UI: Ticketing, Parcels, Owners, Payments
   ========================================================= */

/* === GENERAL DASHBOARD WRAPPERS === */
.dashboard-container {
  padding: 1.2rem;
}
.section-header {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* === GRID LAYOUTS === */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

/* === STAT CARDS === */
.stat-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}
.stat-card h4 {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}
.stat-card p {
  color: var(--default-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* === OWNER MANAGEMENT === */
.owner-card {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.owner-card:hover {
  transform: translateY(-2px);
}
.owner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--heading-color);
}
.owner-vehicle-list {
  margin-top: .8rem;
  border-top: 1px solid #ddd;
  padding-top: .6rem;
}
.owner-vehicle-item {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: .2rem 0;
  color: var(--default-color);
}
.owner-total {
  font-weight: bold;
  color: var(--accent-color);
}

/* === PAYMENTS SECTION === */
.payment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.payment-table th,
.payment-table td {
  padding: .75rem;
  border: 1px solid #dee2e6;
  text-align: center;
}
.payment-table th {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}
.payment-success {
  color: #28a745;
  font-weight: 600;
}
.payment-pending {
  color: #ffc107;
  font-weight: 600;
}
.payment-failed {
  color: #dc3545;
  font-weight: 600;
}

/* === MPESA & BANK LOGS === */
.transaction-log {
  background: var(--surface-color);
  border-radius: 8px;
  padding: .8rem;
  margin-bottom: .8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.transaction-log .log-header {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: .4rem;
}
.transaction-log .log-body {
  color: var(--default-color);
  font-size: 0.9rem;
}

/* === PARCEL DELIVERY === */
.parcel-card {
  border-radius: 10px;
  padding: 1rem;
  background: var(--surface-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.parcel-header {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: .6rem;
}
.parcel-status {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}
.status-delivered {
  background: #d4edda;
  color: #155724;
}
.status-intransit {
  background: #fff3cd;
  color: #856404;
}
.status-pending {
  background: #f8d7da;
  color: #721c24;
}

/* === TICKETING PAGES === */
.ticket-card {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.ticket-card h5 {
  color: var(--heading-color);
  font-weight: 600;
}
.ticket-info {
  font-size: 0.9rem;
  color: var(--default-color);
}
.ticket-status {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
.ticket-status.confirmed {
  color: #28a745;
}
.ticket-status.cancelled {
  color: #dc3545;
}
.ticket-status.scanned {
  color: #0d6efd;
}

/* === TABLES (REPORTS & LOGS) === */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.report-table th,
.report-table td {
  border: 1px solid #ddd;
  padding: .7rem;
  text-align: left;
}
.report-table th {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 600;
}
.report-table tbody tr:nth-child(even) {
  background: #f9fafb;
}
.report-table tbody tr:hover {
  background: #eef4ff;
}

/* === FILTERS & SEARCH BARS === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}
.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: .4rem .6rem;
  flex: 1;
  min-width: 130px;
}
.filter-bar button {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  border-radius: 6px;
  padding: .45rem .9rem;
  font-weight: 500;
}
.filter-bar button:hover {
  background-color: #0046cc;
}

/* === RESPONSIVENESS === */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card h4 {
    font-size: 1rem;
  }
  .filter-bar {
    flex-direction: column;
  }
  .filter-bar button {
    width: 100%;
  }
  .report-table,
  .payment-table {
    font-size: 0.8rem;
  }
  .owner-card,
  .parcel-card,
  .ticket-card {
    padding: 0.8rem;
  }
}
@media (max-width: 480px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: .8rem;
  }
}





/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background-color: var(--surface-color);
  color: var(--default-color);
  font-family: var(--default-font);
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

footer p {
  margin: 0;
  font-size: 14px;
  color: var(--default-color);
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

footer a:hover {
  color: color-mix(in srgb, var(--accent-color), black 15%);
}

/* Footer responsive layout */
@media (max-width: 768px) {
  footer {
    font-size: 13px;
    padding: 15px 5px;
  }
}

.stat-card {
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* smaller text */
}

.stat-card i {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    background-color: green;
}

.stat-card:hover i {
    transform: scale(1.2);
}

.navigation-links .list-group-item {
    font-size: 1.1rem; /* slightly bigger */
    padding: 15px 20px;
    border: 3px solid blue;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.navigation-links .list-group-item i {
    font-size: 1.4rem; /* larger icons */
    margin-right: 10px;
}

.navigation-links .list-group-item:not(:last-child) {
    margin-bottom: 10px; /* clear separation */
}

.navigation-links .list-group-item:hover {
    background-color: green;
    color: white;
    transform: scale(1.02);
}

.action-buttons .btn {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.action-buttons .btn:hover {
    background-color: green;
    border-color: green;
    transform: scale(1.02);
}
