/* GLOBAL */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* MAP */
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* TOP NAVIGATION */
#topnav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: white;
  padding: 10px;
  display: flex;
  gap: 20px;
  z-index: 99999;
}

#topnav button {
  background: #444;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#topnav button:hover {
  background: #666;
}

/* WINDOW SYSTEM */
.window {
  position: absolute;
  top: 120px;
  left: 120px;
  width: 330px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.35);
  z-index: 9999;
  display: none;
  user-select: none;
}

.window-header {
  background: #007bff;
  color: white;
  padding: 8px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
}

.window-buttons button {
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  margin-left: 6px;
}

.window-buttons button:hover {
  color: #ffdddd;
}

.window-content {
  padding: 10px;
  max-height: 350px;
  overflow-y: auto;
}

/* LISTS */
.window-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.window-content li {
  background: #eee;
  padding: 6px;
  margin-bottom: 5px;
  border-radius: 4px;
  cursor: pointer;
}

.window-content li:hover {
  background: #ddd;
}

/* INPUTS & BUTTONS */
.window-content input,
.window-content select {
  width: 100%;
  padding: 6px;
  margin-bottom: 8px;
  border-radius: 4px;
  border: 1px solid #aaa;
}

.window-content button {
  width: 100%;
  padding: 8px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.window-content button:hover {
  background: #218838;
}

/* SPECIAL BUTTON COLORS */
#createStationWindow button,
#createVehicleWindow button,
#createIncidentWindow button {
  background: #007bff;
}

#createStationWindow button:hover,
#createVehicleWindow button:hover,
#createIncidentWindow button:hover {
  background: #0069d9;
}

/* SCROLLBAR */
.window-content::-webkit-scrollbar {
  width: 8px;
}

.window-content::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ADMIN TABS */
#adminTabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#adminTabs button {
  flex: 1;
  padding: 6px;
  background: #444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#adminTabs button:hover {
  background: #666;
}

.adminTab {
  display: none;
}

.adminTab.active {
  display: block;
}

/* DISPATCH WINDOW */
#dispatchVehicleList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dispatchSelect {
  transform: scale(1.3);
}
.station-label {
  color: black;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 2px white;
  pointer-events: none;
}

/* LOG WINDOWS */
#incidentLogList li,
#statusLogList li {
  background: #f2f2f2;
  padding: 6px;
  margin-bottom: 4px;
  border-left: 4px solid #007bff;
  font-size: 13px;
}
