body.dark-theme {
  background: var(--bg-color);
  color: var(--text-color);
}


.dark-theme {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --card-bg: rgba(40, 40, 40, 0.95);
  --border-color: #333;

}


#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.wrapper {
  position: relative;
  z-index: 1;
  pointer-events: none;
  color: var(--text-color);
}
.wrapper > * {
  pointer-events: auto;
}




.header {
  position: relative;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}



.content.container {
  position: relative;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
  margin-top: 20px;
  padding: 20px;
  max-width: 600px;
}


.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 2;
  background: var(--bg-color);
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar.active {
  transform: translateX(0);
}


.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}
.form-control {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}
.form-control:focus {
  background: var(--bg-color);
  border-color: #007bff;
  color: var(--text-color);
}
.autocomplete-container {
  position: relative;
}
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 4px 4px;

  overflow-y: auto;
  z-index: 3;
  color: var(--text-color);
}
.autocomplete-suggestion {
  padding: 8px 12px;
  cursor: pointer;
}
.autocomplete-suggestion:hover {
  background: rgba(255,255,255,0.1);
}
.leaflet-routing-container {
  background: var(--card-bg);
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  max-height: 400px;
  overflow-y: auto;
  color: var(--text-color);
}
.btn {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}
.btn:hover {
  background: rgba(255,255,255,0.1);
}


.loader-screen {
  z-index: 9999;
  background: var(--bg-color);
}



.menu-btn {
  z-index: 3;
  color: var(--text-color);
}
/* Dark theme specific adjustments */
label {
  color: var(--text-color);
}
select.form-control {
  background-color: var(--bg-color);
  color: var(--text-color);
}
select.form-control option {
  background-color: var(--bg-color);
  color: var(--text-color);
}




        /* Make all text in sidebar white */
        .sidebar h5,
        .sidebar p,
        .sidebar .text-secondary,
        .sidebar .text-dark,
        .sidebar .list-group-item {
            color: white !important;
        }

        /* For the list items in sidebar */
        .sidebar .list-group-item {
            background-color: transparent;
        }

        /* Make active sidebar item more distinguishable */
        .sidebar .list-group-item.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Sidebar transition styles */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: 250px;
            z-index: 1000;
            background: var(--bg-color, #1a1a1a);
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .sidebar.active {
            transform: translateX(0);
        }

        /* Ensure content shifts back properly */
        .wrapper {
            transition: margin-left 0.3s ease;
        }

        body.sidemenu-open .wrapper {
            margin-left: 250px;
        }
