body {
  margin: 0;
  font-family: Helvetica, sans-serif;
  background-color: #000;
  overflow: hidden;
}

/* LOGIN UI */
#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease-out;
}
.login-card {
  background: white;
  padding: 60px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 80%;
  border: 1px solid #e0e0e0;
}
#google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* APP UI */
#container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}
#menu {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 100;
}

button {
  color: rgba(127, 255, 255, 0.75);
  background: transparent;
  outline: 1px solid rgba(127, 255, 255, 0.75);
  border: 0;
  padding: 5px 10px;
  cursor: pointer;
  margin: 0 5px;
  text-transform: uppercase;
}
button:hover {
  background-color: rgba(0, 255, 255, 0.5);
}
button:active {
  color: #000;
  background-color: rgba(0, 255, 255, 0.75);
}

/* LOGOUT BUTTON */
#logout-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  border: 1px solid rgba(127, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.5);
  color: rgba(127, 255, 255, 0.75);
  display: none;
  cursor: pointer;
  padding: 8px 15px;
}
#logout-btn:hover {
  background-color: rgba(0, 255, 255, 0.5);
  color: white;
}

/* TILE STYLES */
.element {
  width: 120px;
  height: 160px;
  box-shadow: 0px 0px 12px rgba(0, 255, 255, 0.5);
  border: 1px solid rgba(127, 255, 255, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s;
  cursor: default;
}
.element:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.element img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}
.element .name {
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.element .details {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.login-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

#heatmap-legend {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-family: sans-serif;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

.legend-title {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #aaa;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
}

.color-box {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
}

.high {
  background-color: rgba(58, 159, 72, 0.85);
}
.mid {
  background-color: rgba(253, 202, 53, 0.85);
}
.low {
  background-color: rgba(239, 48, 34, 0.85);
}

#heatmap-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border: 1px solid #ff0000;
  border-radius: 4px;
  z-index: 1000;
}

.heatmap-label {
  color: white;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.heatmap-bar {
  width: 150px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* Matches your JS colors: Red (Low), Yellow (Mid), Green (High) */
  background: linear-gradient(
    to right,
    rgba(239, 48, 34, 1) 0%,
    rgba(253, 202, 53, 1) 50%,
    rgba(58, 159, 72, 1) 100%
  );
}
