* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

#status {
  text-align: center;
  padding: 16px;
  font-size: 20px;
  color: #aaa;
  min-height: 48px;
}

#compass {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#speed {
  text-align: center;
  font-size: 50px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #ccc;
  padding: 80px 16px 16px;
  min-height: 136px;
}

#arrow-container {
  position: relative;
  width: 200px;
  height: 200px;
}

#arrow {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  z-index: 2;
}

#north-arrow {
  position: absolute;
  top: 40px;
  left: 40px;
  opacity: 0.4;
  transition: transform 0.15s ease-out;
  transform-origin: 60px 60px;
  z-index: 1;
}

#distance {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
  color: #ccc;
}

#input-area {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #16213e;
  border-top: 1px solid #0f3460;
}

#destination {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #0f3460;
  border-radius: 8px;
  background: #1a1a2e;
  color: #eee;
  font-size: 16px;
  outline: none;
}

#destination:focus {
  border-color: #e74c3c;
}

#search-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#search-btn:active {
  background: #c0392b;
}
