/* Global styles for the SonarSense radar page */

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background-color: #0d1b2a;
  color: #e0e0e0;
  height: 100%;
  width: 100%;
}

header {
  text-align: center;
  padding: 1rem;
  background-color: #15273f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.controls label {
  font-weight: 600;
}

.controls input[type="text"] {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #23476c;
  background-color: #0e2640;
  color: #e0e0e0;
  min-width: 16rem;
}

.controls button {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: #1f4068;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.controls button:hover {
  background-color: #1b3a57;
}

.controls .status {
  font-weight: 500;
}

/* Radar canvas – a half circle with responsive size */
#radarCanvas {
  display: block;
  width: 90%;
  max-width: 640px;
  aspect-ratio: 2 / 1; /* Height is half of width */
  background-color: #0d2c3b;
  border-radius: 0 0 100% 100%;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.info {
  margin-top: 0.5rem;
  text-align: center;
}

.info p {
  margin: 0.2rem 0;
  font-size: 1rem;
}

.info span {
  font-weight: 600;
  color: #00d49f;
}
