/* -----------------------------------------
   University AI & Weather Research Lab
   Global Wind Visualization – Stylesheet
------------------------------------------ */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, #002850, #000d20);
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  overflow: hidden;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Canvas (globe view) */
#scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Sidebar panel */
.card {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 320px;
  padding: 20px;
  background: rgba(0, 20, 40, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.card h1 {
  margin: 0 0 10px 0;
  font-size: 1.3em;
  color: #79b8ff;
}

.card strong {
  color: #ffe499;
}

.legend {
  margin-top: 15px;
}

.legend-title {
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #b0cfff;
}

.bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bar span {
  font-size: 0.8em;
  color: #ddd;
}

.bar .scale {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #00b3ff, #00ff9f, #ffd740, #ff5c33);
}

/* Button */
.btn {
  margin-top: 15px;
  background: #003d70;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #005ba0;
}

/* Floating info button */
.floating {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.floating:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Footer */
footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.8em;
  color: #88b7ff;
  pointer-events: none;
}
