/* src/agentic_rf_planner/ui/static/style.css */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

#map-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 320px;
}

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

#sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 400px;
  padding: 8px;
  box-sizing: border-box;
  background: #111;
  color: #eee;
  font-size: 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Constrain content width to prevent stretching */
#sidebar > * {
    max-width: 200px;
    margin-left: 0;
    margin-right: auto;
  }


#sidebar h2 {
  font-size: 18px;
  margin: 0 0 8px 0;
}

#sidebar h3 {
  font-size: 12px;
  margin: 0 0 6px 0;
}

#status {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.3;
}

#rsrp-legend {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  min-width: 140px;
  border: 1px solid #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

#rsrp-legend h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #eee;
  font-weight: bold;
}

#rsrp-legend-gradient {
  width: 20px;
  height: 200px;
  border: 1px solid #666;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(to top, rgb(0, 0, 255), rgb(255, 0, 255));
}

#rsrp-legend-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  margin-left: 5px;
  font-size: 10px;
  color: #ccc;
}

#rsrp-legend-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

#rsrp-legend-values {
  margin-top: 5px;
  font-size: 10px;
  color: #aaa;
  text-align: center;
}

/* Sensor suggestion markers (optimal sensor locations) */
.sensor-marker {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: #ff007a; /* bright magenta for visibility */
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(255, 0, 122, 0.8);
  z-index: 1003;
}

.sensor-marker::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

#sensor-legend {
  position: absolute;
  top: 280px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  padding: 8px 10px;
  border-radius: 5px;
  z-index: 1000;
  width: 160px;
  border: 1px solid #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: auto;
  min-height: auto;
}

#sensor-legend > div {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: auto;
}

#sensor-legend .sensor-marker {
  flex-shrink: 0;
}

#sensor-legend span {
  color: #fff;
  font-size: 12px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}
