/* WiFi Radar Tool */

.wifi-radar-win {
  display: none;
  position: fixed;
  left: 100px;
  top: 100px;
  width: 700px;
  height: 600px;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 1200;
}

.wifi-radar-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.wifi-radar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #c0c0c0;
  border-bottom: 1px solid #dfdfdf;
}

.wifi-radar-sort-label {
  font-size: 12px;
  white-space: nowrap;
}

.wifi-radar-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000080;
  border: 2px inset #dfdfdf;
  padding: 10px;
  margin: 10px;
  border-radius: 2px;
  overflow: auto;
}

.wifi-radar-canvas {
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 500px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.wifi-radar-legend {
  flex: 0 1 150px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  padding: 8px 10px;
  font-size: 12px;
  overflow-y: auto;
}

.radar-legend-title {
  font-weight: bold;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #808080;
}

.radar-legend-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
}

.radar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid #000;
}

.radar-legend-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.radar-legend-signal {
  font-size: 10px;
  color: #404040;
  white-space: nowrap;
  margin-left: 4px;
}

.wifi-radar-footer {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: #c0c0c0;
  border-top: 1px solid #dfdfdf;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .wifi-radar-win {
    width: 90vw;
    height: 80vh;
  }
}

