#selector-row .form-label {
  /*padding: 5px;*/
}

#selector-container {
  padding: 10px;
  margin-top: 15px;
}

#selector-container div * {
  padding: 5px;
}

#reset-view,
#fullscreen-toggle {
  padding: 0;
  margin-top: -5px;
  border-radius: 0;
  margin-left: 10px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
}

#reset-view {
  font-size: 2.5em !important;
  padding: 0 !important;
  display: inline-grid;
}

#fullscreen-toggle {
  padding-top: 7px !important;
}

.progress-bar-men {
  background-color: #28a745 !important;
}

.progress-bar-women {
  background-color: #8e44ad !important;
}

.leaflet-control-zoom.leaflet-bar.leaflet-control {
  position: absolute;
  top: 15px;
  left: 10px;
}

.target-col {
  margin-top: 72px;
}

#data-col {
  padding-top: 20px;
  padding-right: 1rem;
  border-right: 1px solid #ffffff;
}

.content-wrapper {
  width: 100%;
  height: calc(100vh - 120px);
}

#map-col, #data-col {
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

/* Desktop height */
@media (min-width: 1000px) {
  #data-col {
    height: calc(100vh - 100px);
    overflow-y: auto;
  }
  
  #map-col {
    height: calc(100vh - 100px);
    position: relative;
  }
}

/* Mobile height adjustments */
@media (max-width: 999px) {
  .content-wrapper {
    height: auto;
  }

  #map-col, #data-col {
    height: auto;
  }

  #map-col {
    height: calc(100vh - 280px);
  }

  #map {
    height: 100%;
  }

  #data-col {
    height: auto;
    max-height: none;
    overflow-y: visible;
    padding-bottom: 20px;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid #ffffff;
    margin-top: 15px;
  }
  
  #map-col {
    height: 60vh;
    position: relative;
  }
}

#map {
  height: 100%;
  width: 100%;
}

#data-col .row {
  margin-bottom: 0.5rem;
}

#data-col .card {
  margin-bottom: 0;
  height: 100%;
}

#data-col .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem;
}

.gender-card-body {
  padding: 0.5rem !important;
}

.gender-card-body .fa {
  font-size: 1rem;
}

.gender-card-body span {
  font-size: 0.85rem;
}

#chart-NSE {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress {
  height: 20px;
  font-size: 12px;
  font-weight: bold;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

#audience-heading {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#data-col .card .card-header {
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease;
  background-color: rgba(33, 37, 41, 0.03) !important;
}

#data-col .card .card-header.station-selected {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#data-col .card .card-header h6 {
  font-size: 0.9rem;
}

#age-text, #target-type {
  color: #ffffff !important;
}

/* Map interaction button styles */
#toggle-map-interaction {
  min-width: fit-content;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  transition: all 0.3s ease;
}

#toggle-map-interaction i {
  transition: transform 0.3s ease;
}

#toggle-map-interaction.active i {
  transform: rotate(0);
}

#toggle-map-interaction.inactive i {
  transform: rotate(0);
}

/* Specific viewport range adjustments */
@media (min-width: 576px) and (max-width: 999px) {
  #selector-container {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  #selector-container .controls-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  #selector-container .form-select {
    width: 70%;
  }

  #selector-container img {
    max-height: 68px;
    width: auto;
  }

  #reset-view,
  #fullscreen-toggle {
    margin-top: 0;
    margin-left: 5px;
  }

  .btn-group {
    display: flex;
    gap: 10px;
  }
}