/* Sidebar styles */
.wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  min-width: 250px;
  background: #343a40;
  color: #fff;
  transition: all 0.3s;
  z-index: 1000;
}

.sidebar.collapsed {
  margin-left: -250px;
}

.sidebar .sidebar-header {
  padding: 20px;
  background: #2c3136;
}

.sidebar .sidebar-title {
  margin: 0;
  font-size: 1.25rem;
}

.sidebar ul.components {
  padding: 20px 0;
  border-bottom: 1px solid #47494c;
}

.sidebar ul li {
  padding: 0;
}

.sidebar ul li a {
  padding: 10px 20px;
  display: block;
  color: #fff;
  text-decoration: none;
}

.sidebar ul li a:hover,
.sidebar ul li.active > a {
  background: #2c3136;
}

.sidebar-footer {
  padding: 20px;
  position: sticky;
  bottom: 0;
  background: #343a40;
}

/* Content styles */
#content {
  width: 100%;
  transition: all 0.3s;
}

#content.expanded {
  margin-left: -250px;
}

/* Vehicle Tracking specific styles */
.vehicle-icon {
  width: 30px !important;
  height: 30px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-marker {
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: relative;
}

.vehicle-marker i {
  font-size: 18px;
}

.battery-warning {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-marker {
  width: 24px !important;
  height: 24px !important;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.delivery-marker i {
  font-size: 14px;
}

.delivery-marker i.delivered {
  color: #198754;
}

.delivery-marker i.in-progress {
  color: #0d6efd;
}

.delivery-marker i.pending {
  color: #6c757d;
}

.alert-item {
  transition: all 0.3s ease;
}

.alert-item:hover {
  filter: brightness(90%);
}

.vehicle-popup {
  min-width: 200px;
}

/* Dark mode additions */
body.dark-mode {
  background-color: #1a1a1a;
  color: #fff;
}

body.dark-mode .card {
  background-color: #2d2d2d;
  border-color: #404040;
}

body.dark-mode .card-header {
  background-color: #343a40;
  border-bottom-color: #404040;
}

body.dark-mode .vehicle-marker {
  background: #2d2d2d;
}

body.dark-mode .delivery-marker {
  background: #2d2d2d;
}

body.dark-mode .alert-item {
  border-color: #404040;
}

/* Module card styles */
.module-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Task list styles */
.task-list {
  max-height: 500px;
  overflow-y: auto;
}

.task-item {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.task-item:hover {
  transform: translateX(5px);
  background-color: rgba(0,0,0,0.02);
}

.task-item.selected {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
}

/* Metric card styles */
.metric-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  text-align: center;
}

body.dark-mode .metric-card {
  background-color: #2d2d2d;
}

/* Add new styles for route optimization */
.task-marker {
  width: 30px !important;
  height: 30px !important;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.task-marker i {
  font-size: 16px;
  color: #0d6efd;
}

body.dark-mode .task-marker {
  background: #2d2d2d;
}

body.dark-mode .task-item.selected {
  background-color: rgba(13, 110, 253, 0.15);
}