/* Main Styles for Light Pi App */

* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #1E1E1E;
    margin: 0;
    padding: 20px;
}


.sensor-banner {
  position: static;
  top: 0;
  left: 0;
  right: 0;
  background-color: #2d2d2d;
  padding: 10px 0;
  z-index: 1000;
  overflow: hidden;
}

.sensor-data {
  display: flex;
  color: white;
}

.sensor-reading {
  background-color: #1E1E1E;
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
  margin: 0 10px;
  min-width: 150px;
  display: inline-block;
  transition: background-color 0.5s ease;
}

.sensor-reading .label {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}

.sensor-reading .value {
  font-size: 20px;
  font-weight: bold;
}

.sensor-reading .difference {
  font-size: 12px;
  margin-left: 5px;
  opacity: 0.8;
  color: white;
}

.difference.positive {
  color: rgb(79, 199, 83);
}

.difference.negative {
  color: #eb3f45;
}

/* Adjust main content to account for banner */
.grid-container {
  margin-top: 0;
}

.grid-container form {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  padding: 10px;
}

.grid-item-on {
  background-color: rgb(79, 199, 83);
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-off {
  background-color: #eb3f45;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-nil {
  background-color: #758f74;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-red {
  background-color: #21aae9;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-prj {
  background-color: #8c03fc;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-mon {
  background-color: #295183;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-api {
  background-color: #298352;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-toggle-on {
  background-color: rgb(79, 199, 83);
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.grid-item-toggle-off {
  background-color: #eb3f45;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}