/* ==========================================================================
   TRACKNSEL GPS TRACKER PLATFORM - MODERN GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Ranglar palitrasi */
  --bg-main: #0a0f1d;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a233a;
  --bg-card: rgba(17, 24, 39, 0.88);
  --bg-card-hover: rgba(31, 41, 55, 0.95);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(0, 242, 254, 0.5);

  --text-primary: #f9fafb;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Aktsent va Holat ranglari */
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  
  --status-moving: #10b981;  /* Yashil */
  --status-parked: #f59e0b;  /* Sariq */
  --status-offline: #64748b; /* Kulrang */
  --status-danger: #ef4444;  /* Qizil */

  --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.35);
  --glow-moving: 0 0 15px rgba(16, 185, 129, 0.4);
  --glow-danger: 0 0 15px rgba(239, 68, 68, 0.4);

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-color);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme */
body.light-theme {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 1px 1px var(--border-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-navbar {
  height: 60px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  position: relative;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle-btn {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 20px;
  box-shadow: var(--glow-cyan);
}

.brand-title h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Fleet Stats Pill */
.fleet-stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 12px;
  background: var(--border-color);
}

.stat-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stat-item.moving .dot { background: var(--status-moving); box-shadow: var(--glow-moving); animation: pulse 2s infinite; }
.stat-item.parked .dot { background: var(--status-parked); }
.stat-item.offline .dot { background: var(--status-offline); }

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.stat-item .val {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn, .btn-icon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover, .btn-icon:hover {
  background: var(--border-color);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
}

.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.user-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 12px;
  font-weight: 600;
}
.user-role-tag {
  font-size: 9px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==========================================================================
   MAIN APP WORKSPACE
   ========================================================================== */
.main-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
}

/* Left Sidebar / Off-Canvas Drawer */
.sidebar {
  width: 400px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 500;
  transition: var(--transition-smooth);
}

.mobile-sidebar-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}

/* Sidebar Navigation Tabs */
.sidebar-tabs {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 6px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 9px 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: var(--transition-fast);
}

.tab-btn i {
  font-size: 16px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.25);
}

/* Tab Contents */
.tab-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-pane.active {
  display: flex;
}

/* Search & Filter Controls */
.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 12px 9px 36px;
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-cyan);
}

.search-box i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.chip.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  font-weight: 700;
}

/* Vehicle List Cards */
.vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state-card {
  padding: 24px 16px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-state-card i {
  font-size: 32px;
  color: var(--text-muted);
}

.vehicle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.vehicle-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--status-offline);
  transition: var(--transition-fast);
}

.vehicle-card.status-moving::before { background: var(--status-moving); }
.vehicle-card.status-parked::before { background: var(--status-parked); }
.vehicle-card.status-offline::before { background: var(--status-offline); }

.vehicle-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.vc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.vc-title {
  display: flex;
  flex-direction: column;
}

.vc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.vc-plate {
  font-size: 11px;
  font-weight: 700;
  color: #000;
  background: #facc15;
  padding: 1px 5px;
  border-radius: 3px;
  width: fit-content;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.vc-speed-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.vc-speed-badge.moving {
  color: var(--status-moving);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.vc-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.vc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vc-stat .lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.vc-stat .val {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.vc-stat .val.ign-on { color: var(--status-moving); }
.vc-stat .val.ign-off { color: var(--text-muted); }

/* ==========================================================================
   MAP CONTAINER & POPUPS
   ========================================================================== */
.map-container {
  flex: 1;
  height: 100%;
  position: relative;
  background: #0d1322;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Floating Map Overlay Controls */
.map-layer-selector {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 400;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 3px;
  box-shadow: var(--shadow-card);
}

.map-layer-btn {
  padding: 5px 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.map-layer-btn.active {
  background: var(--accent-cyan);
  color: #000;
}

/* Floating Vehicle Live HUD on Map */
.vehicle-hud-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 340px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  z-index: 450;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

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

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hud-title h3 {
  font-size: 15px;
  font-weight: 700;
}
.hud-title .plate {
  font-size: 11px;
  background: #facc15;
  color: #000;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 3px;
}

.hud-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}
.hud-close-btn:hover { color: var(--text-primary); }

.hud-gauge-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-surface-elevated);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.gauge-item {
  text-align: center;
}
.gauge-item .num {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-cyan);
}
.gauge-item .unit {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hud-actions {
  display: flex;
  gap: 8px;
}

.btn-engine-toggle {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-engine-toggle.cut {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.btn-engine-toggle.cut:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.btn-engine-toggle.resume {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.btn-engine-toggle.resume:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
}

/* ==========================================================================
   HISTORY PLAYBACK BAR
   ========================================================================== */
.playback-controller-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.playback-scrubber-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.playback-scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-surface-elevated);
  outline: none;
  cursor: pointer;
}

.playback-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.playback-btn-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playback-play-btn {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--glow-cyan);
  transition: var(--transition-fast);
}

.playback-speed-selector {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.speed-opt {
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: 3px;
  cursor: pointer;
}
.speed-opt.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ==========================================================================
   ADMIN MANAGEMENT TABLES & FORMS
   ========================================================================== */
.admin-subnav {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.admin-subnav-btn {
  padding: 5px 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.admin-subnav-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  border: none;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  opacity: 0.92;
}

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

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 11px;
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
}

.admin-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card-info h4 {
  font-size: 13px;
  font-weight: 700;
}
.admin-card-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.admin-card-actions {
  display: flex;
  gap: 6px;
}

.btn-action-icon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-action-icon.danger:hover {
  color: var(--status-danger);
  border-color: var(--status-danger);
}

.log-terminal {
  background: #070b14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  height: 280px;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-entry {
  display: flex;
  gap: 6px;
}
.log-time { color: var(--text-muted); }
.log-source { color: var(--accent-cyan); font-weight: 700; }
.log-msg { color: #e2e8f0; word-break: break-all; }

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 900;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.mobile-nav-item {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav-item i {
  font-size: 18px;
}

.mobile-nav-item.active {
  color: var(--accent-cyan);
}

/* ==========================================================================
   LOGIN MODAL & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-header .logo-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #000;
  box-shadow: var(--glow-cyan);
}

.login-header h2 {
  font-size: 22px;
  font-weight: 800;
}
.login-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
}

.toast.success { border-color: var(--status-moving); }
.toast.error { border-color: var(--status-danger); }

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

/* Vehicle Map Marker SVG Styling */
.custom-vehicle-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.marker-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid var(--status-moving);
  box-shadow: var(--glow-moving);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.marker-inner.parked {
  border-color: var(--status-parked);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.marker-inner.offline {
  border-color: var(--status-offline);
  box-shadow: none;
}

.marker-arrow {
  position: absolute;
  top: -8px;
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--status-moving);
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLET MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .fleet-stats-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    height: 100vh;
    padding-bottom: 56px; /* Bottom nav uchun joy */
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .user-info {
    display: none;
  }

  .main-container {
    height: calc(100vh - 60px - 56px);
  }

  /* Mobil drawer sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    z-index: 1500;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-sidebar-header {
    display: flex;
  }

  .sidebar-tabs {
    display: none; /* Mobilda pastki navigatsiya orqali boshqariladi */
  }

  /* Floating HUD mobilda bottom sheet bo'ladi */
  .vehicle-hud-card {
    position: fixed;
    bottom: 60px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    border-radius: var(--radius-md);
    padding: 14px;
    z-index: 800;
  }

  .map-layer-selector {
    top: 10px;
    right: 10px;
  }

  .toast-container {
    bottom: 70px;
    left: 16px;
    right: 16px;
  }
  .toast {
    width: 100%;
  }
}
