* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e6e6e6;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #222;
}

header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

button {
  background: #2b6cb0;
  color: white;
  border: 0;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
button:hover { background: #3182ce; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #1c1f26;
  vertical-align: middle;
}

th {
  background: #161922;
  font-weight: 600;
  color: #9aa3b2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr:hover { background: #151821; }

td.cell {
  cursor: default;
  user-select: none;
  min-width: 120px;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td.cell.url a {
  color: #63b3ed;
  text-decoration: none;
  cursor: pointer;
}
td.cell.url a:hover { text-decoration: underline; }

td.cell .placeholder { color: #4a5160; font-style: italic; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: #3a3f4b;
}
.status-dot.up      { background: #38a169; box-shadow: 0 0 6px #38a16988; }
.status-dot.down    { background: #e53e3e; box-shadow: 0 0 6px #e53e3e88; }
.status-dot.unknown { background: #a0aec0; }
.status-dot.none    { background: #3a3f4b; }

td.cell input,
td.cell select {
  width: 100%;
  background: #0f1115;
  border: 1px solid #2b6cb0;
  border-radius: 4px;
  padding: 4px 6px;
  color: #e6e6e6;
  font: inherit;
  outline: none;
}

td.cell.device select + input {
  margin-top: 4px;
}

td.actions { width: 40px; text-align: right; }

.del-btn {
  background: transparent;
  color: #6b7280;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
}
.del-btn:hover { background: #2a1010; color: #f56565; }
