:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

#app {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

#cesiumContainer {
  flex: 1 1 auto;
  height: 100vh;
  width: calc( 100vw - 400px);
  min-width: 0;
}

#sidePanel {
  flex: 1 1 auto;
  top: 0;
  right: 0;
  background: rgba(30, 30, 40, 0.98);
  color: #fff;
  z-index: 10;
  padding: 2em 1.5em 1em 1.5em;
  box-shadow: -2px 0 8px #0008;
  font-size: 1.1em;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vanilla:hover {
  filter: drop-shadow(0 0 2em #f7df1eaa);
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.dropdown-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dropdown-row label {
  flex: 1 1 auto;
  margin: 0;
}

.flag-btn {
  margin-left: 0.5rem;
  font-size: 1.2em;
  padding: 0.2em 0.5em;
  border: none;
  background: #444a;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.flag-btn:hover {
  background: #646cff;
}

#sidePanel label[for="flightLevel"] {
  font-weight: 500;
}
#flightLevel {
  width: 100%;
  margin-top: 0.3em;
}
#flightLevelValue {
  font-weight: bold;
  color: #ffe066;
}

.loader {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid #ffe066;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5em;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.route-points-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}
.route-airport-select {
  min-width: 120px;
  font-size: 1em;
  padding: 0.2em 0.5em;
}
.add-btn {
  background: #2a2;
  color: #fff;
  font-size: 1.2em;
  border: none;
  border-radius: 4px;
  padding: 0.2em 0.6em;
  margin: 0 0.2em;
  cursor: pointer;
  transition: background 0.2s;
}
.add-btn:hover {
  background: #3c3;
}
.remove-btn {
  background: #a22;
  color: #fff;
  font-size: 1.1em;
  border: none;
  border-radius: 4px;
  padding: 0.2em 0.5em;
  margin-left: 0.2em;
  cursor: pointer;
  transition: background 0.2s;
}
.remove-btn:hover {
  background: #d33;
}

#flightDate {
  font-size: 1.1em;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: #222;
  color: #ffe066;
  border: 1px solid #ffe066;
  border-radius: 4px;
  padding: 0.3em 0.6em;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  box-shadow: 0 1px 4px #0008;
}
#flightDate:focus {
  outline: 2px solid #ffe066;
  background: #333;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
