body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #fff;
}

header {
  display: flex;
  align-items: center;
  background-color: #e6f0fa;
  padding: 10px;
  position: relative;
}

#settings-btn {
  position: absolute;
  left: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

#settings-btn:hover {
  background-color: #0056b3;
}

h1 {
  flex-grow: 1;
  text-align: center;
  margin: 0;
}

#help-icon {
  position: absolute;
  right: 10px;
  cursor: pointer;
}

.tooltip:hover::after {
  content: "Click for help";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px;
  border-radius: 3px;
  font-size: 12px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  width: 300px;
  text-align: center;
}

#device-info, #device-list {
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  font-weight: bold;
}

.status-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}

.red { background-color: red; }
.orange { background-color: orange; }
.yellow { background-color: yellow; }
.green { background-color: green; }
.slow-flash {
  background-color: green;
  animation: slowFlash 1s infinite;
}
.rapid-flash {
  background-color: green;
  animation: rapidFlash 0.5s infinite;
}

@keyframes slowFlash {
  50% { opacity: 0.5; }
}

@keyframes rapidFlash {
  50% { opacity: 0; }
}