html,
body,
#container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  margin: 0;
}

/*this is important to give the map a height*/
#map {
  width: auto;
  height: 100%;
}
.leaflet-panel-layers-base .leaflet-panel-layers-item {
  margin-bottom: 4px;
  padding: 2px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.leaflet-panel-layers-base .leaflet-panel-layers-selector {
  float: right;
}
.leaflet-panel-layers.expanded {
	padding: 8px;
	border-radius: 6px;
  min-width: 165px !important;
}

.leaflet-panel-layers.expanded>label {
	font-weight: 600;
}

/* leaflet collapsible button controls */
.leaflet-panel-layers-icon {
  float: right;
}

.leaflet-panel-layers {
  background-color: white;
}

.leaflet-panel-layers-group.collapsible .leaflet-panel-layers-grouplabel {
  font-weight: 600;
}

.selection-heading {
  margin-bottom: 4px;
}

.leaflet-pm-draw,
.leaflet-pm-edit,
.mappaint-switch,
.mappaint-control {
  top: 50px;
}

/* styling labels */
.leaflet-div-icon {
	background: none !important;
	border: none !important;
	overflow: hidden;
	white-space: nowrap;
}

@supports (-webkit-text-stroke: 0.1px white) {
  b {
    -webkit-text-stroke: 0.1px white;
    -webkit-text-fill-color: black;
  }
}

.legend {
	line-height: 18px;
	color: #555;
	background-color: white;
	padding: 12px;
	border-radius: 4px;
	z-index: 1 !important;
}

/* Welcome Dialog Styles */
.welcome-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.welcome-dialog.show {
  opacity: 1;
  visibility: visible;
}

.welcome-dialog-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.welcome-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.welcome-dialog-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5em;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

.welcome-dialog-body {
  padding: 20px 25px 25px;
}

.welcome-dialog-body p {
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: #555;
}

.welcome-dialog-body p:last-of-type {
  margin-bottom: 20px;
}

.update-date {
  font-style: italic;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 20px !important;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-left: 3px solid #007bff;
  border-radius: 3px;
}

.welcome-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background-color: #FF9119;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  text-align: center;
}

.welcome-btn:hover {
  background-color: rgba(255, 145, 25, 0.8);
}

.welcome-btn:focus {
  box-shadow: 0 0 0 4px rgba(255, 145, 25, 0.5);
}

.welcome-btn:active {
  transform: translateY(1px);
}

/* Responsive design */
@media (max-width: 600px) {
  .welcome-dialog-content {
    width: 95%;
    margin: 10px;
  }
  
  .welcome-dialog-header {
    padding: 15px 20px 10px;
  }
  
  .welcome-dialog-header h2 {
    font-size: 1.3em;
  }
  
  .welcome-dialog-body {
    padding: 15px 20px 20px;
  }
  
  .welcome-links {
    gap: 6px;
  }
  
  .welcome-btn {
    padding: 12px 16px;
    font-size: 0.9em;
    margin: 0 4px 4px 0;
  }
}

/* Bar Chart Tooltip Styles */
.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}