body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #1e1e1e;
  color: #ffffff;
}

.top-bar {
  display: flex;
  align-items: center;
  background: #111;
  padding: 10px 16px;
}

.logo {
  height: 36px;
  margin-right: 12px;
}

.title {
  font-size: 20px;
  flex-grow: 1;
}

.user-info {
  font-size: 14px;
  color: #fcc;
}

.tabs {
  display: flex;
  background: #222;
  border-bottom: 1px solid #444;
}

.tab {
  padding: 10px 16px;
  cursor: pointer;
  border-right: 1px solid #333;
  white-space: nowrap;
}

.tab.active {
  background: #606000;
foreground: #000000;
  font-weight: bold;
}

#iox-container {
  padding: 20px;
}

.iox-card {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 20px;
}

.iox-card h1 {
  margin: 0;
  font-size: 22px;
}

.iox-card h2 {
  margin: 6px 0 20px;
  font-size: 15px;
  color: #bbb;
}

.section-title {
  margin-top: 24px;
  border-bottom: 1px solid #808080;
  padding-bottom: 4px;
}

.grid-8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.cell {
  background: #333;
  border-radius: 6px;
  padding: 8px;
  height: 70px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cell-id {
  font-size: 12px;
}

.cell-desc {
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.led {
	width: 25px; height: 25px; border-radius: 50%;
	margin: auto;
	display: inline-block; background-color: #006000;
	border: 2px solid #555; transition: background 0.3s, box-shadow 0.3s;
}
.led.on {
  background: #00c853;
}


.alarm-symbol {
  margin: auto;
  font-size: 28px;
  border: 0px solid #000;
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 24px;
}
.alarm-on {
  color: red;
}
.alarm-muted {
  color: orange;
}


@media (max-width: 1200px) {
  .grid-8 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  .grid-8 { grid-template-columns: repeat(2, 1fr); }
}

.footer {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: #aaa;
}
