/* =============================================
   STOP STATION - Optibus-Inspired Design
   ============================================= */

:root {
  --header-h: 48px;
  --subnav-h: 42px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Dark header */
  --header-bg: #1a1d2e;
  --header-bg-2: #252840;
  --header-text: #c8cad0;
  --header-text-bright: #ffffff;
  --header-border: rgba(255,255,255,0.08);

  /* Light surfaces */
  --bg: #f0f2f5;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --text: #1a1d23;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  /* Accents */
  --primary: #4f6ef7;
  --primary-hover: #3b5de7;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #22c55e;
  --emerald: #10b981;
  --yellow: #f59e0b;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  /* Left panel */
  --left-panel-w: 340px;
}

/* =============================================
   BASE
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   TOP HEADER BAR
   ============================================= */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: 1px solid var(--header-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--header-text-bright);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 8px;
  font-size: 16px;
}

.brand-icon i { color: #fff; }

.header-nav-divider {
  width: 1px;
  height: 24px;
  background: var(--header-border);
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--header-text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 16px;
}

.header-nav-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--header-text-bright);
}

.header-nav-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Center: Route selector & Direction tabs */
.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.route-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-label {
  color: var(--header-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.route-select-wrapper {
  position: relative;
}

.route-select {
  appearance: none;
  background: var(--header-bg-2);
  border: 1px solid var(--header-border);
  color: var(--header-text-bright);
  padding: 5px 32px 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  min-width: 160px;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c8cad0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.route-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79,110,247,0.3);
}

.route-select option {
  background: #2a2d40;
  color: #fff;
}

.route-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--header-border);
  background: var(--header-bg-2);
  color: var(--header-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}

.route-add-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Direction Tabs */
.direction-tabs {
  display: flex;
  background: var(--header-bg-2);
  border-radius: 6px;
  border: 1px solid var(--header-border);
  overflow: hidden;
}

.direction-tab {
  padding: 5px 20px;
  border: none;
  background: transparent;
  color: var(--header-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  white-space: nowrap;
}

.direction-tab:hover {
  color: var(--header-text-bright);
  background: rgba(255,255,255,0.05);
}

.direction-tab.active {
  background: var(--primary);
  color: #fff;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* =============================================
   APP CONTENT
   ============================================= */

.app-content {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
}

/* =============================================
   MAP VIEW PANEL (Optibus-style)
   ============================================= */

.panel-map-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Sub-navigation bar */
.sub-nav-bar {
  height: var(--subnav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
}

.sub-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.sub-nav-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: var(--font);
  white-space: nowrap;
}

.sub-nav-tab:hover {
  color: var(--text);
  background: rgba(0,0,0,0.02);
}

.sub-nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.sub-nav-tab i {
  font-size: 13px;
}

/* Sub-nav toolbar */
.sub-nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  white-space: nowrap;
}

.tool-btn:hover:not(:disabled) {
  background: #f3f4f6;
  color: var(--text);
  border-color: #d1d5db;
}

.tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tool-btn i {
  font-size: 13px;
}

.tool-btn-pick {
  background: #eef2ff;
  color: var(--primary);
  border-color: #c7d2fe;
}

.tool-btn-pick:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.tool-btn-pick.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tool-file-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.tool-file-label:hover {
  background: #f3f4f6;
  color: var(--text);
}

.tool-status {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* Pick mode bar */
.pick-mode-bar {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #1e40af;
  flex-shrink: 0;
  z-index: 99;
}

.pick-mode-stop-btn {
  padding: 2px 10px;
  border: 1px solid #93c5fd;
  background: #fff;
  color: #dc2626;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
  font-family: var(--font);
}

.pick-mode-stop-btn:hover {
  background: #fee2e2;
}

/* =============================================
   MAP LAYOUT (Map + Floating Panel)
   ============================================= */

.map-layout {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.map-fullscreen {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
}

/* =============================================
   LEFT FLOATING PANEL
   ============================================= */

.left-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: var(--left-panel-w);
  background: var(--header-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.left-panel-header {
  padding: 10px 12px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  flex-shrink: 0;
}

.left-panel-search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #e2e4e9;
  background: var(--header-bg-2);
  transition: border-color 0.15s;
  font-family: var(--font);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.left-panel-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79,110,247,0.25);
}

.left-panel-search::placeholder {
  color: #6b7280;
}

/* Route info header */
.left-panel-route-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.route-direction-label {
  font-size: 14px;
  font-weight: 700;
  color: #e2e4e9;
}

.route-menu-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #9ca3af;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}

.route-menu-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #e2e4e9;
}

/* Stop list */
.left-panel-stops {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  background: var(--header-bg);
}

.left-panel-stops::-webkit-scrollbar { width: 6px; }
.left-panel-stops::-webkit-scrollbar-track { background: transparent; }
.left-panel-stops::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.left-panel-stops::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: #6b7280;
}

.empty-state i {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 13px;
  margin: 0;
}

/* Stop items (Optibus-style) */
.rb-stop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: grab;
  transition: background 0.12s;
  position: relative;
}

.rb-stop-item:hover {
  background: rgba(255,255,255,0.06);
}

.rb-stop-item.dragging {
  opacity: 0.4;
  background: rgba(255,255,255,0.04);
}

.rb-stop-item.drag-over {
  border-top: 2px solid var(--primary);
}

/* Colored dot with sequence number */
.rb-stop-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.rb-stop-dot.dot-blue { background: #4f6ef7; }
.rb-stop-dot.dot-green { background: #22c55e; }
.rb-stop-dot.dot-red { background: #ef4444; }
.rb-stop-dot.dot-orange { background: #f59e0b; }
.rb-stop-dot.dot-purple { background: #8b5cf6; }

/* Sequence number badge (like Optibus) */
.rb-stop-seq {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rb-stop-side {
  font-size: 12px;
  flex-shrink: 0;
}
.rb-stop-side.side-left { color: #4ade80; }
.rb-stop-side.side-right { color: #fbbf24; }

.rb-stop-info {
  flex: 1;
  min-width: 0;
}

.rb-stop-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e4e9;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.rb-stop-oldname {
  font-size: 10px;
  color: #9ca3af;
  text-decoration: line-through;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-stop-code {
  font-size: 10.5px;
  color: #9ca3af;
}

.rb-stop-dist {
  font-size: 10px;
  color: #9ca3af;
  flex-shrink: 0;
}

.rb-stop-remove {
  padding: 2px 6px;
  font-size: 11px;
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.15s;
}

.rb-stop-item:hover .rb-stop-remove {
  opacity: 1;
}

.rb-stop-remove:hover {
  background: rgba(220,38,38,0.15);
  color: #f87171;
}

/* Insert between stops */
.rb-insert-zone {
  height: 0;
  position: relative;
  overflow: visible;
  z-index: 2;
}
.rb-insert-btn {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,0.15);
  background: transparent;
  color: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  z-index: 3;
  padding: 0;
}
.rb-insert-btn:hover {
  width: 22px; height: 22px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(66,133,244,0.4);
}
.rb-insert-zone:hover .rb-insert-btn {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.5);
}

/* Map insert position popup */
.rb-insert-popup {
  min-width: 200px;
  max-width: 280px;
}
.rb-insert-popup-title {
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.rb-pos-list {
  max-height: 200px;
  overflow-y: auto;
}
.rb-pos-option {
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 2px;
}
.rb-pos-option:hover {
  background: #e3f2fd;
}
.rb-pos-option-end {
  border-top: 1px solid #e0e0e0;
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 500;
  color: #1976d2;
}
.rb-pos-option-end:hover {
  background: #bbdefb;
}

/* Confirm dialog */
.rb-confirm-dialog {
  background: #1e2235;
  border-radius: 14px;
  padding: 28px 24px 20px;
  width: 340px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  animation: confirmAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.rb-confirm-icon { font-size: 32px; margin-bottom: 8px; }
.rb-confirm-title { color: #e0e0e0; font-weight: 600; margin-bottom: 8px; }
.rb-confirm-message { color: #9ca3af; font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.rb-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.rb-confirm-cancel {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.rb-confirm-cancel:hover {
  background: rgba(255,255,255,0.06);
  color: #e0e0e0;
}
.rb-confirm-ok {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  background: #EF4444;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.rb-confirm-ok:hover { background: #DC2626; }

@keyframes confirmAppear {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Left panel footer */
.left-panel-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  flex-shrink: 0;
  background: var(--header-bg-2);
}

/* Tab pane inner (for non-map tabs in left panel) */
.tab-pane-inner {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* =============================================
   FLOATING LOG PANEL
   ============================================= */

.float-log {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 320px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 50;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  max-height: 36px;
  transition: max-height 0.25s ease;
}

.float-log.expanded {
  max-height: 200px;
}

.float-log-header {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background: #fafbfc;
  border-bottom: 1px solid var(--border-light);
}

.float-log-header:hover {
  background: #f3f4f6;
}

.float-log-chevron {
  margin-left: auto;
  transition: transform 0.25s;
}

.float-log.expanded .float-log-chevron {
  transform: rotate(180deg);
}

.float-log-body {
  overflow: hidden;
}

.log-pre {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 12px;
  margin: 0;
  max-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* =============================================
   SCROLL VIEW PANELS (Dashboard, Field, GPS)
   ============================================= */

.panel-scroll-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--bg);
  display: block;
}

.scroll-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
}

.panel-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.panel-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.panel-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* =============================================
   CARDS
   ============================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.card-head i { color: var(--primary); font-size: 15px; }
.card-head small { font-weight: 400; }
.card-body { padding: 16px; }
.card-body.p-0 { padding: 0; }

/* =============================================
   STAT CARDS
   ============================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.stat-body { display: flex; flex-direction: column; }
.stat-value { font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.stat-card .stat-icon { font-size: 28px; opacity: 0.15; }

.stat-blue::before { background: var(--blue); }
.stat-blue .stat-value, .stat-blue .stat-icon { color: var(--blue); }
.stat-cyan::before { background: var(--cyan); }
.stat-cyan .stat-value, .stat-cyan .stat-icon { color: var(--cyan); }
.stat-green::before { background: var(--green); }
.stat-green .stat-value, .stat-green .stat-icon { color: var(--green); }
.stat-yellow::before { background: var(--yellow); }
.stat-yellow .stat-value, .stat-yellow .stat-icon { color: var(--yellow); }
.stat-red::before { background: var(--red); }
.stat-red .stat-value, .stat-red .stat-icon { color: var(--red); }

/* Analytics mini stats */
.analytics-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.mini-stat {
  text-align: center;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.mini-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.mini-stat-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   DASHBOARD
   ============================================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quick-actions { display: flex; flex-direction: column; gap: 8px; }

.quick-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}

.quick-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.08);
}

.quick-btn strong { display: block; font-size: 13px; color: var(--text); }
.quick-btn small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

.quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.bg-indigo { background: var(--indigo); }
.bg-emerald { background: var(--emerald); }
.bg-amber { background: var(--amber); }

/* Action list */
.action-list-scroll { max-height: 340px; overflow-y: auto; }

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.action-item:last-child { border-bottom: none; }
.action-item:hover { background: #f9fafb; }

.action-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-approve { background: #dcfce7; color: #166534; }
.badge-reject { background: #fee2e2; color: #991b1b; }
.badge-add { background: #dbeafe; color: #1e40af; }

.action-info { flex: 1; min-width: 0; }
.action-info .stop-name { font-weight: 600; color: var(--text); }
.action-info .meta { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.action-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* =============================================
   FIELD CONTROL
   ============================================= */

.field-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.field-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.field-stat small { font-weight: 400; color: var(--text-secondary); font-size: 12px; }
.field-stat i { font-size: 14px; }
.field-stat.green, .field-stat.green i { color: var(--green); }
.field-stat.red, .field-stat.red i { color: var(--red); }
.field-stat.yellow, .field-stat.yellow i { color: var(--yellow); }
.field-stat.blue, .field-stat.blue i { color: var(--blue); }
.field-stat.muted { color: var(--text-secondary); }
.field-stat.muted i { color: var(--text-muted); }
.field-stat.dark, .field-stat.dark i { color: var(--text); }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 20;
  position: relative;
}

.filter-bar .form-select { width: auto; min-width: 140px; max-width: 200px; }

.field-maps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field-layout-bottom {
  display: block;
}

.map-box {
  width: 100%;
  height: 500px;
  background: #e5e7eb;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Filter overrides */
.filter-select { max-width: 220px; min-width: 160px; }
.filter-select-narrow { max-width: 160px; min-width: 120px; }

.filter-date-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.filter-date-label { color: var(--text-muted); font-size: 14px; }

.filter-date-range {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 6px !important;
  font-size: 12px !important;
  width: 180px !important;
  color: var(--text);
  cursor: pointer;
}

.filter-date-range:focus { outline: none; }
.filter-date-range::placeholder { color: var(--text-muted); }

.btn-date-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 2px 4px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s;
}

.btn-date-clear:hover {
  color: var(--red);
  background: rgba(239,68,68,0.1);
}

/* =============================================
   ITEMS LIST (Routes / Stops in left panel)
   ============================================= */

.items-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.items-list::-webkit-scrollbar { width: 6px; }
.items-list::-webkit-scrollbar-track { background: transparent; }
.items-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.items-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  transition: background 0.15s ease;
}

.list-item:hover {
  background: rgba(255,255,255,0.05);
}

.list-item:last-child { border-bottom: none; }

.list-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.list-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(79,110,247,0.15);
  color: #8da4fc;
  white-space: nowrap;
  min-width: 36px;
}

.list-item-name {
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.list-item-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.list-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.list-item-actions .btn {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.list-item:hover .list-item-actions .btn {
  opacity: 1;
}

/* =============================================
   ADD FORM
   ============================================= */

.add-form {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 8px;
}

.add-form h6 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* =============================================
   SAVE PANEL
   ============================================= */

.save-panel {
  margin-top: 16px;
  padding: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
}

.save-panel h6 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* =============================================
   LOG OUTPUT (for GPS detection)
   ============================================= */

.log-output {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  background: #f9fafb;
  padding: 12px;
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

/* =============================================
   TABS (generic)
   ============================================= */

.tab-pane { display: none; }
.tab-pane.active { display: flex; flex-direction: column; }

/* Inside left panel, tab panes take remaining space */
.left-panel .tab-pane.active {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* =============================================
   TABLE
   ============================================= */

.table {
  font-size: 12px;
  margin-bottom: 0;
}

.table thead th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  padding: 8px 10px;
}

.table tbody td {
  padding: 6px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

/* =============================================
   FORM CONTROLS
   ============================================= */

.form-control, .form-select {
  font-size: 13px;
  border-radius: var(--radius-sm);
  border-color: var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.12);
}

.form-control-sm, .form-select-sm {
  font-size: 12.5px;
  padding: 6px 10px;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-success:hover { background: #16a34a; border-color: #16a34a; }
.btn-outline-secondary { color: var(--text-secondary); border-color: var(--border); }
.btn-outline-secondary:hover { background: #f3f4f6; border-color: #d1d5db; color: var(--text); }

/* =============================================
   TOAST
   ============================================= */

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 40px 12px 16px;
  border-radius: 10px;
  background: #1e2235;
  color: #e0e0e0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 500;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-width: 380px;
}

.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-message { flex: 1; line-height: 1.4; }
.toast-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  color: #888; cursor: pointer;
  font-size: 13px; padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
}
.toast-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.toast-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
}
.toast-progress-bar {
  height: 100%;
  animation: toastProgress 3s linear forwards;
  border-radius: 0 0 0 10px;
}
.toast-progress-success { background: #22C55E; }
.toast-progress-error { background: #EF4444; }
.toast-progress-info { background: #3B82F6; }
.toast-progress-warning { background: #F59E0B; }

.toast-success { border-left: 3px solid #22C55E; }
.toast-error { border-left: 3px solid #EF4444; }
.toast-info { border-left: 3px solid #3B82F6; }
.toast-warning { border-left: 3px solid #F59E0B; }

.toast-fade-out { animation: toastSlideOut 0.3s ease forwards; }

@keyframes toastSlideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  to { transform: translateX(100px); opacity: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* =============================================
   MODAL (Route Builder manual add, KMZ line select)
   ============================================= */

.rb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.rb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.rb-modal-header h6 { margin: 0; }

.rb-modal-body {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
}

.rb-stop-search-results {
  max-height: 320px;
  overflow-y: auto;
}

.rb-search-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.rb-search-item:hover { background: #f0f7ff; }

/* =============================================
   KMZ ANALİZ MODALI — Ağaç Yapısı + Seçim
   ============================================= */

.kmz-analysis-modal {
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.kmz-analysis-modal .rb-modal-body {
  overflow-y: auto;
  max-height: calc(85vh - 140px);
  padding: 16px;
}

/* Genel İstatistikler */
.kmz-overview {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
  border-radius: 10px;
  border: 1px solid #dde4f0;
}

.kmz-stat {
  flex: 1;
  text-align: center;
}

.kmz-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
}

.kmz-stat-lbl {
  font-size: 11px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Seçim Durumu Bar */
.kmz-selection-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.kmz-sel-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 2px dashed #d0d5dd;
  color: #718096;
  transition: all 0.2s;
}

.kmz-sel-gidis.kmz-sel-active {
  border: 2px solid #38a169;
  background: #f0fff4;
  color: #276749;
}

.kmz-sel-donus.kmz-sel-active {
  border: 2px solid #e53e3e;
  background: #fff5f5;
  color: #c53030;
}

.kmz-sel-val {
  flex: 1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bölüm Başlıkları */
.kmz-section {
  margin-bottom: 14px;
}

.kmz-section-title {
  font-weight: 600;
  font-size: 13px;
  color: #4a5568;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

/* Ağaç Yapısı */
.kmz-tree {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
}

.kmz-tree-folder {
  border-bottom: 1px solid #f0f0f5;
}

.kmz-tree-folder:last-child {
  border-bottom: none;
}

.kmz-folder-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.1s;
  user-select: none;
}

.kmz-folder-toggle:hover {
  background: #edf2f7;
}

.kmz-fold-icon {
  font-size: 11px;
  color: #a0aec0;
  width: 14px;
  text-align: center;
}

.kmz-folder-name {
  font-weight: 600;
  color: #2d3748;
}

.kmz-folder-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #ebf5ff;
  color: #2b6cb0;
  font-weight: 500;
}

/* =============================================
   LEAFLET SHIM STYLES
   ============================================= */

.leaflet-marker-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: var(--font);
}

.gmap-shim-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 0;
}

.gmap-shim-popup .leaflet-popup-content {
  margin: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
}

.gmap-shim-popup .leaflet-popup-close-button {
  font-size: 18px;
  color: #64748b;
}

.leaflet-circle-div-icon {
  background: none !important;
  border: none !important;
}

.leaflet-overlay-custom-pane {
  pointer-events: none;
}

.kmz-folder-children {
  padding-left: 20px;
  border-left: 2px solid #e8ecf0;
  margin-left: 16px;
}

/* Placemark satırları */
.kmz-tree-pm {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  border-bottom: 1px solid #f5f5f8;
}

.kmz-tree-pm:last-child {
  border-bottom: none;
}

.kmz-tree-line {
  background: #fafffe;
}

.kmz-tree-line:hover {
  background: #f0f7ff;
}

/* Placemark tip badge */
.kmz-pm-type {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.kmz-pm-type-linestring { background: #ebf5ff; color: #2b6cb0; }
.kmz-pm-type-point { background: #f0fff4; color: #276749; }
.kmz-pm-type-polygon { background: #fefcbf; color: #975a16; }
.kmz-pm-type-multigeometry { background: #f0e6ff; color: #6b46c1; }
.kmz-pm-type-unknown { background: #f0f0f0; color: #718096; }

.kmz-pm-name {
  flex: 1;
  color: #2d3748;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kmz-pm-pts {
  font-size: 11px;
  color: #a0aec0;
  white-space: nowrap;
}

/* Gidiş / Dönüş seçim butonları */
.kmz-btn-gidis,
.kmz-btn-donus {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.kmz-btn-gidis {
  border-color: #38a169;
  color: #38a169;
  background: transparent;
}

.kmz-btn-gidis:hover {
  background: #f0fff4;
}

.kmz-btn-gidis.active {
  background: #38a169;
  color: #fff;
}

.kmz-btn-donus {
  border-color: #e53e3e;
  color: #e53e3e;
  background: transparent;
}

.kmz-btn-donus:hover {
  background: #fff5f5;
}

.kmz-btn-donus.active {
  background: #e53e3e;
  color: #fff;
}

/* Resim küçük gösterim */
.kmz-images-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
}

.kmz-img-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.kmz-img-thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f7f7f7;
}

.kmz-img-thumb span {
  font-size: 9px;
  color: #a0aec0;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal Footer */
.kmz-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f7f8fa;
  border-radius: 0 0 12px 12px;
}

/* =============================================
   PANEL ANIMATION
   ============================================= */

.panel {
  animation: panelFadeIn 0.2s ease;
}

@keyframes panelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================
   FLATPICKR
   ============================================= */

.flatpickr-calendar {
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  border: 1px solid var(--border) !important;
  font-family: var(--font) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.flatpickr-day.inRange {
  background: rgba(79,110,247,0.15) !important;
  border-color: transparent !important;
}

.flatpickr-months .flatpickr-month {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
  .field-maps-row { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  
  .header-center {
    gap: 8px;
  }

  .route-select {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  :root {
    --left-panel-w: 280px;
  }

  .header-brand .brand-text {
    display: none;
  }

  .route-label {
    display: none;
  }

  .direction-tab {
    padding: 5px 12px;
    font-size: 11px;
  }

  .scroll-content {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-box {
    height: 350px;
  }
}

@media (max-width: 480px) {
  :root {
    --left-panel-w: 100%;
  }

  .left-panel {
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
  }

  .float-log {
    display: none;
  }
}

/* =============================================
   UTILITY
   ============================================= */

.d-none { display: none !important; }
.gap-2 { gap: 8px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.fw-semibold { font-weight: 600 !important; }
.text-muted { color: var(--text-muted) !important; }
.w-100 { width: 100% !important; }
