/* ==========================================================================
   FleetManager AI - Fullscreen Responsive Stylesheet
   Designed to fit 100% of the screen at 100% zoom
   ========================================================================== */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/roboto-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('assets/fonts/roboto-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/roboto-700.ttf') format('truetype');
}

:root {
  --header-bg: #0A3856;
  --sidebar-bg: #1B3649;
  --sidebar-active: #1769D2;
  --workspace-bg: #E8F0F6;
  --card-bg: #FFFFFF;
  --card-border: #D6DFE6;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-sidebar: #C5D4DF;
  --primary-blue: #0875E8;
  --status-moving: #19965B;
  --status-idle: #F2A900;
  --status-stopped: #E53945;
  --row-selected: #E1EFF9;
  --row-warning: #FFF5F5;
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--workspace-bg);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Master Fullscreen Viewport */
.app-viewport {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--workspace-bg);
  overflow: hidden;
}

/* ==========================================================================
   Top Header (Full Width)
   ========================================================================== */
.app-header {
  width: 100%;
  height: 52px;
  min-height: 52px;
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 16px;
  z-index: 100;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.brand-logo-img {
  display: block;
  width: 29px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.1px;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 9px;
  font-weight: 400;
  color: #8BA3B6;
  line-height: 1.15;
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
}

.notification-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 22px;
  padding: 4px;
}

.bell-icon {
  display: block;
  opacity: 0.95;
}

.badge-count {
  position: absolute;
  top: 0px;
  right: -3px;
  width: 14px;
  height: 14px;
  background-color: var(--status-stopped);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.user-profile {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.user-profile:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.avatar-circle-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
  margin-right: 8px;
}

.user-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #FFFFFF;
}

.dropdown-arrow {
  display: block;
  margin-left: 6px;
}

/* ==========================================================================
   App Body (Sidebar + Main Workspace)
   ========================================================================== */
.app-body {
  flex: 1;
  width: 100%;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.app-sidebar {
  width: 180px;
  height: 100%;
  background-color: var(--sidebar-bg);
  padding-top: 8px;
  flex-shrink: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px 0 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-sidebar);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
  position: relative;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.nav-item.active {
  background-color: var(--sidebar-active);
  color: #FFFFFF;
  font-weight: 600;
}

.nav-icon {
  width: 15px;
  height: 15px;
  margin-right: 10px;
  flex-shrink: 0;
  opacity: 0.95;
}

.nav-badge {
  margin-left: auto;
  width: 14px;
  height: 14px;
  background-color: var(--status-stopped);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   Main Workspace
   ========================================================================== */
.app-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  background-color: var(--workspace-bg);
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  gap: 10px;
  overflow: hidden;
}

/* ==========================================================================
   Statistics Cards Row
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 62px;
  flex-shrink: 0;
}

.stat-card {
  background-color: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  gap: 12px;
  box-sizing: border-box;
}

.stat-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-img {
  display: block;
  width: 29px;
  height: 28px;
  border-radius: 4px;
}

.stat-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  line-height: 1.1;
}

.stat-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0 1px 0;
  line-height: 1;
}

.stat-sub {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1;
}

.text-green {
  color: var(--status-moving);
  font-weight: 600;
}

/* ==========================================================================
   Content Grid (Left Column Map + Activities, Right Column Vehicle List + Details)
   ========================================================================== */
.content-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 345px;
  gap: 10px;
}

/* Common Card Styling */
.panel-card {
  background-color: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
  letter-spacing: -0.1px;
  line-height: 1.1;
}

/* ==========================================================================
   Left Column (Map + Activities)
   ========================================================================== */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  height: 100%;
}

/* Map Card */
.map-card {
  flex: 1;
  min-height: 220px;
  background-color: #E5E3DF;
  box-shadow: 0 0 0 1px var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

/* Activities Card */
.activities-card {
  height: 165px;
  flex-shrink: 0;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.activities-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.view-all-link {
  font-size: 10px;
  font-weight: 600;
  color: var(--sidebar-active);
  text-decoration: none;
  cursor: pointer;
}

.view-all-link:hover {
  text-decoration: underline;
}

.activities-card .table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* ==========================================================================
   Right Column (Vehicle List + Details)
   ========================================================================== */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

/* Vehicle List Card */
.vehicle-list-card {
  flex: 1;
  min-height: 200px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vehicle-list-card .card-title {
  margin: 1px 0 6px 0;
  flex-shrink: 0;
}

.filter-row {
  display: flex;
  gap: 6px;
  margin: 0 0 6px 0;
  flex-shrink: 0;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 7px;
  top: 5px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 22px;
  padding: 0 6px 0 22px;
  font-size: 9.5px;
  font-family: var(--font-family);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  outline: none;
  color: var(--text-primary);
  background-color: #FFFFFF;
}

.search-input::placeholder {
  color: #94A3B8;
}

.search-input:focus {
  border-color: var(--primary-blue);
}

.select-wrap {
  position: relative;
}

.status-select {
  height: 22px;
  padding: 0 18px 0 7px;
  font-size: 9.5px;
  font-family: var(--font-family);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  outline: none;
  color: var(--text-primary);
  background-color: #FFFFFF;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.vehicle-list-card .table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background-color: #F8FAFC;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 0 6px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 9px;
  height: 22px;
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table td {
  padding: 0 6px;
  color: var(--text-primary);
  border-bottom: 1px solid #F1F5F9;
  height: 22px;
  vertical-align: middle;
  font-size: 9px;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.data-table tbody tr:hover {
  background-color: #F1F6FB;
}

.data-table tr.row-selected {
  background-color: var(--row-selected) !important;
}

.data-table tr.row-selected td {
  border-bottom-color: #D3E6F5;
}

.bold-id {
  font-weight: 700;
  color: var(--text-primary);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.status-moving {
  background-color: var(--status-moving);
}

.status-idle {
  background-color: var(--status-idle);
}

.status-stopped {
  background-color: var(--status-stopped);
}

.status-text {
  font-weight: 500;
}

.text-moving {
  color: var(--status-moving);
}

.text-idle {
  color: var(--status-idle);
}

.text-stopped {
  color: var(--status-stopped);
}

.activities-table th {
  background-color: #F1F5F9;
  font-size: 8.5px;
  padding: 0 6px;
  height: 20px;
}

.activities-table td {
  font-size: 9px;
  padding: 0 6px;
  height: 21px;
}

.activities-table tr.row-warning-tint {
  background-color: var(--row-warning);
}

/* ==========================================================================
   Vehicle Details Card
   ========================================================================== */
.vehicle-details-card {
  height: 236px;
  flex-shrink: 0;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-details-card .card-title {
  margin: 1px 0 0 0;
  flex-shrink: 0;
}

.vehicle-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 6px 0;
  height: 22px;
  flex-shrink: 0;
}

.v-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.v-truck-img {
  display: block;
  width: 21px;
  height: 20px;
}

.v-details-id {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E293B;
}

.badge-moving-pill {
  background-color: var(--status-moving);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 600;
  padding: 2.5px 7.5px;
  border-radius: 3px;
  display: inline-block;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 19px;
  font-size: 9px;
}

.detail-key {
  color: var(--text-secondary);
  font-weight: 400;
}

.detail-val {
  color: var(--text-primary);
  font-weight: 500;
}

.fuel-indicator-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fuel-text {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.fuel-progress-bar {
  width: 72px;
  height: 6px;
  background-color: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.fuel-fill {
  height: 100%;
  background-color: var(--status-moving);
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.btn-refuel-action {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-refuel-action:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
  color: #1E40AF;
  transform: scale(1.06);
}

.btn-refuel-action:active {
  transform: scale(0.96);
}

.details-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-shrink: 0;
}

.btn {
  flex: 1;
  height: 25px;
  border-radius: 3.5px;
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  border: none;
}

.btn-primary:hover {
  background-color: #0764c7;
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: #F0F7FF;
}

/* ==========================================================================
   Modular Page Components (Shared Across Dashboard, Fleet, Maintenance, etc.)
   ========================================================================== */

/* Page Toolbar Row */
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  border-radius: 4px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title-wrap {
  display: flex;
  flex-direction: column;
}

.page-main-title {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

.page-sub-title {
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Extended Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.badge-success {
  background-color: #E8F5E9;
  color: #19965B;
  border: 1px solid #C8E6C9;
}

.badge-warning {
  background-color: #FFF9E6;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-danger {
  background-color: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.badge-info {
  background-color: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.badge-purple {
  background-color: #F3E8FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}

.badge-secondary {
  background-color: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

/* Full Page Card / Table Card */
.full-table-card {
  flex: 1;
  min-height: 0;
  background-color: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.full-table-card .card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.table-scroll-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
}

.data-table-full {
  width: 100%;
  border-collapse: collapse;
}

.data-table-full th {
  background-color: #F8FAFC;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 9.5px;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.data-table-full td {
  padding: 8px 10px;
  color: var(--text-primary);
  border-bottom: 1px solid #F1F5F9;
  font-size: 9.5px;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table-full tbody tr:hover {
  background-color: #F8FAFC;
}

/* Table User/Driver Avatar */
.table-avatar-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #E2E8F0;
  color: #334155;
  font-weight: 700;
  font-size: 9.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-initials.bg-blue { background-color: #DBEAFE; color: #1D4ED8; }
.avatar-initials.bg-green { background-color: #DCFCE7; color: #15803D; }
.avatar-initials.bg-amber { background-color: #FEF3C7; color: #B45309; }
.avatar-initials.bg-purple { background-color: #F3E8FF; color: #7E22CE; }

/* Table Action Buttons */
.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid var(--card-border);
  background-color: #FFFFFF;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-sm:hover {
  background-color: #F1F5F9;
  color: var(--primary-blue);
  border-color: #93C5FD;
}

/* Table Pagination Bar */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid #E2E8F0;
  background-color: #FAFBFD;
  flex-shrink: 0;
}

.pagination-info {
  font-size: 9.5px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  gap: 4px;
}

.btn-page {
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background-color: #FFFFFF;
  color: #475569;
  border-radius: 3px;
  cursor: pointer;
}

.btn-page.active {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--primary-blue);
}

.btn-page:hover:not(.active) {
  background-color: #F1F5F9;
}

/* Two Column Layout */
.two-col-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.two-col-grid.col-60-40 {
  grid-template-columns: 1.5fr 1fr;
}

.two-col-grid.col-40-60 {
  grid-template-columns: 1fr 1.5fr;
}

.three-col-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Metric / Health Progress Bar */
.mini-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100px;
}

.mini-bar {
  flex: 1;
  height: 5px;
  background-color: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  border-radius: 3px;
}

/* Trend Pill */
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}

.stat-trend.up {
  background-color: #E8F5E9;
  color: #19965B;
}

.stat-trend.down {
  background-color: #FEE2E2;
  color: #DC2626;
}

/* Settings Form Styles */
.settings-container {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
}

.settings-nav-card {
  background-color: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 500;
  color: #475569;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.settings-nav-tab:hover {
  background-color: #F1F5F9;
  color: var(--text-primary);
}

.settings-nav-tab.active {
  background-color: #EFF6FF;
  color: var(--primary-blue);
  font-weight: 600;
}

.settings-content-card {
  background-color: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  border-radius: 4px;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #334155;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  font-size: 10px;
  font-family: var(--font-family);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  outline: none;
  color: var(--text-primary);
  background-color: #FFFFFF;
}

.form-textarea {
  height: 60px;
  padding: 6px 8px;
  resize: vertical;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-blue);
}

.toggle-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}

.toggle-switch {
  position: relative;
  width: 32px;
  height: 18px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .2s;
  border-radius: 18px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(14px);
}

/* ==========================================================================
   Authentication & Login Page Styles
   ========================================================================== */
.login-body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #07253B 0%, #0A3856 50%, #104C74 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  overflow: hidden;
  position: relative;
}

.login-body::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(23, 105, 210, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-body::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(25, 150, 91, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-card {
  width: 440px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 32px 36px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.login-brand-icon {
  width: 42px;
  height: 42px;
  background-color: var(--header-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.login-brand-sub {
  font-size: 10px;
  color: #64748B;
}

.role-selector-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 20px;
}

.role-tab-btn {
  flex: 1;
  padding: 6px 4px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font-family);
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.role-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
}

.login-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font-size: 11px;
  font-family: var(--font-family);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  outline: none;
  color: var(--text-primary);
  background-color: #FFFFFF;
  transition: border-color 0.15s ease;
}

.login-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(8, 117, 232, 0.1);
}

.login-row-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #475569;
}

.login-btn-submit {
  width: 100%;
  height: 38px;
  background-color: var(--primary-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease;
  margin-top: 4px;
}

.login-btn-submit:hover {
  background-color: #0764c7;
}

.login-quick-demo {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #E2E8F0;
}

.quick-demo-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.quick-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.btn-demo-role {
  padding: 6px 8px;
  font-size: 9.5px;
  font-weight: 500;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  color: #334155;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}

.btn-demo-role:hover {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  color: var(--primary-blue);
}

.btn-demo-role strong {
  font-size: 9.5px;
  font-weight: 600;
}

.btn-demo-role span {
  font-size: 8px;
  color: #94A3B8;
}

/* Workshop Bay Cards */
.bay-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bay-card.occupied {
  border-left: 4px solid var(--status-idle);
}

.bay-card.available {
  border-left: 4px solid var(--status-moving);
  background: #FAFDFB;
}

/* Turn-by-Turn Instruction Card */
.nav-instruction-card {
  background: #0A3856;
  color: #FFFFFF;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Checklist Item */
.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 9.5px;
}

/* User Profile Dropdown Menu */
.user-profile {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.user-dropdown-menu.show {
  display: flex;
}

.user-dropdown-header {
  padding: 6px 10px 8px 10px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 4px;
}

.user-dropdown-header .dropdown-user-title {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
}

.user-dropdown-header .dropdown-user-sub {
  font-size: 8.5px;
  color: #64748B;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 10px;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover {
  background: #F1F5F9;
  color: var(--primary-blue);
}

.user-dropdown-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 4px 0;
}

/* Responsive adjustments */
@media (max-height: 700px) {
  .app-main {
    overflow-y: auto;
  }
}

/* ==========================================================================
   AUTHENTICATION & INTERACTIVE SYSTEM STYLES (MODALS, ALERTS, TOASTS)
   ========================================================================== */
.login-alert {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  animation: fadeIn 0.2s ease-out;
}

.login-alert.alert-error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.login-alert.alert-success {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
}

.shake {
  animation: shakeAnim 0.35s ease-in-out;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Dialog System */
.fm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 56, 86, 0.65);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fm-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.fm-modal-window {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 520px;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.fm-modal-backdrop.open .fm-modal-window {
  transform: scale(1);
}

.fm-modal-header {
  background: #0A3856;
  color: #FFFFFF;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fm-modal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.fm-modal-close {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.fm-modal-close:hover {
  opacity: 1;
}

.fm-modal-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 11px;
  color: #334155;
}

.fm-modal-footer {
  padding: 12px 18px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast Feedback Notification */
.fm-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.fm-toast {
  pointer-events: auto;
  background: #0A3856;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 11px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease-out;
  border-left: 4px solid var(--primary-blue);
  min-width: 240px;
}

.fm-toast.toast-success {
  border-left-color: #10B981;
}

.fm-toast.toast-error {
  border-left-color: #EF4444;
}

.fm-toast.toast-warning {
  border-left-color: #F59E0B;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

/* Notification Bell Dropdown */
.notification-wrap {
  position: relative;
  cursor: pointer;
}

.bell-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid #E2E8F0;
  z-index: 10000;
  display: none;
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
}

.bell-dropdown-menu.show {
  display: block;
}

.bell-dropdown-header {
  padding: 10px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bell-dropdown-title {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
}

.bell-dropdown-clear {
  font-size: 9px;
  color: var(--primary-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.bell-dropdown-list {
  max-height: 260px;
  overflow-y: auto;
}

.bell-alert-item {
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  gap: 10px;
  transition: background 0.15s;
  cursor: pointer;
}

.bell-alert-item:hover {
  background: #F8FAFC;
}

.bell-alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.bell-alert-text {
  font-size: 10px;
  color: #334155;
  line-height: 1.35;
}

.bell-alert-time {
  font-size: 8.5px;
  color: #94A3B8;
  margin-top: 2px;
}

/* ==========================================================================
   REAL-TIME GPS TELEMATICS SIMULATION ENGINE STYLES
   ========================================================================== */

/* Map Overlay Layer */
.map-routes-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.map-vehicles-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Vehicle Marker Node */
.vehicle-marker-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.08s linear;
  user-select: none;
}

.vehicle-marker-node.selected {
  z-index: 12;
}

.marker-inner-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tag Pill */
.marker-tag-pill {
  position: absolute;
  bottom: calc(100% + 5px);
  background: rgba(10, 56, 86, 0.92);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transition: transform 0.15s ease, background 0.15s;
}

.vehicle-marker-node:hover .marker-tag-pill,
.vehicle-marker-node.selected .marker-tag-pill {
  transform: scale(1.1);
  background: #0A3856;
  border-color: #38BDF8;
}

.marker-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Marker Circle Body */
.marker-pin-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid #FFFFFF;
  position: relative;
  transition: transform 0.15s ease;
}

.vehicle-marker-node:hover .marker-pin-circle {
  transform: scale(1.15);
}

.vehicle-marker-node.selected .marker-pin-circle {
  transform: scale(1.22);
}

/* Bearing Heading Arrow */
.marker-heading-indicator {
  position: absolute;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #FFFFFF;
}

/* Radar Pulse Waves */
.marker-radar-ping {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  animation: radarPulseAnim 2s infinite ease-out;
}

@keyframes radarPulseAnim {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Target Lock Ring (When selected) */
.marker-lock-reticle {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed #F59E0B;
  animation: lockRotate 4s linear infinite;
  pointer-events: none;
}

.marker-lock-reticle.active-vector-lock {
  border-color: #0284C7;
  border-width: 2.5px;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.6);
  inset: -13px;
  animation: lockRotate 2.5s linear infinite;
}

.vehicle-marker-node.locked .marker-pin-circle {
  background: #DC2626 !important;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.7);
  border-color: #FEF2F2;
}

.vehicle-marker-node.locked .marker-tag-pill {
  background: #991B1B !important;
  border-color: #FECACA;
}

.vector-projected-route {
  stroke-dasharray: 6 4;
  animation: dashMove 1.5s linear infinite;
}

/* Static Designated Road Corridors */
.designated-route-corridors {
  pointer-events: none;
}

.route-corridor {
  transition: all 0.25s ease;
}

.route-corridor.selected-corridor {
  stroke-opacity: 0.95 !important;
  stroke-width: 3.5px !important;
  stroke-dasharray: 6 3 !important;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.45));
}

.route-corridor-fst004.selected-corridor {
  filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.5));
}

/* Vehicle Table Quick-Action Lock Button */
.btn-table-lock {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-table-lock:hover {
  background: #FEE2E2;
  border-color: #F87171;
  color: #DC2626;
  transform: scale(1.1);
}

.btn-table-lock.is-locked {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}

.btn-table-lock.is-locked:hover {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #16A34A;
}

/* Autonomous Safe Yield Radar Markers */
.vehicle-marker-node.yielding .marker-tag-pill {
  background: #D97706 !important;
  border-color: #FDE68A !important;
  color: #FFFFFF !important;
  animation: yieldPulse 1.2s infinite ease-in-out;
}

.vehicle-marker-node.yielding .marker-radar-ping {
  background: #F59E0B !important;
  animation: yieldRing 1s infinite ease-out !important;
}

@keyframes yieldPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2); }
}

@keyframes yieldRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes dashMove {
  to { stroke-dashoffset: -20; }
}

@keyframes lockRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Remote Engine Lock Button */
.btn-lock-engine {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #FECACA;
  color: #DC2626;
  background: #FFF5F5;
  transition: all 0.15s ease;
}

.btn-lock-engine:hover {
  background: #FEE2E2;
  border-color: #F87171;
}

.btn-lock-engine.is-locked {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #16A34A;
}

.btn-lock-engine.is-locked:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
}

/* Simulation Controls HUD */
.map-simulation-hud {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.hud-pill {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
}

.hud-status {
  font-size: 8.5px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.5px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hud-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  height: 20px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hud-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.hud-btn.active {
  background: #0A3856;
  color: #FFFFFF;
}

.hud-alert-btn {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.hud-alert-btn:hover {
  background: #FEE2E2;
  color: #B91C1C;
}

/* Floating Telematics Mini-HUD Popup */
.map-vehicle-hud-popup {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  z-index: 25;
  width: 250px;
  font-size: 10px;
  color: #1E293B;
  animation: fadeIn 0.2s ease-out;
}

.map-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #F1F5F9;
}

.map-hud-title {
  font-weight: 700;
  color: #0A3856;
  font-size: 11px;
}

.map-hud-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 9.5px;
}

.map-hud-label {
  color: #64748B;
}

.map-hud-val {
  font-weight: 600;
  color: #1E293B;
}

.map-hud-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

/* Academic Project Attribution Bar */
.project-attribution-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 9px;
  color: #475569;
  margin-top: 8px;
  flex-shrink: 0;
}

.project-attribution-strip strong {
  color: #0A3856;
}

.project-attribution-strip .badge-acad {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-splash-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #E0F2FE;
  text-decoration: none;
  font-size: 9.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}
.btn-splash-link:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}



