* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 40px 20px;
  background: #111827;
  color: #e5e7eb;
  font-family: system-ui, sans-serif;
}
main {
  max-width: 800px;
  margin: auto;
}
h1 {
  margin-bottom: 6px;
  font-size: 28px;
}
.subtitle {
  color: #9ca3af;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.refresh {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.services {
  display: grid;
  gap: 12px;
}
.service {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1f2937;
  padding: 18px 20px;
  border: 1px solid #374151;
  border-radius: 12px;
}
.name {
  flex: 1;
  font-weight: 600;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 110px;
  flex-shrink: 0;
  color: #d1d5db;
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
}
.service.active .dot {
  background: #22c55e;
}
.service.inactive .dot {
  background: #9ca3af;
}
.service.failed .dot {
  background: #ef4444;
}
.service.activating .dot {
  background: #3b82f6;
}
.service.deactivating .dot {
  background: #f59e0b;
}
.service.unknown .dot {
  background: #a855f7;
}
.service.active .status::after {
  content: "Active";
}
.service.inactive .status::after {
  content: "Inactive";
}
.service.failed .status::after {
  content: "Failed";
}
.service.activating .status::after {
  content: "Starting";
}
.service.deactivating .status::after {
  content: "Stopping";
}
.service.unknown .status::after {
  content: "Unknown";
}
.actions {
  display: flex;
  gap: 8px;
}
button {
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.restart {
  background: #374151;
  color: #e5e7eb;
}
.stop {
  background: #7f1d1d;
  color: #fecaca;
}
button:hover {
  filter: brightness(1.2);
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: none;
}
button:disabled:hover {
  filter: none;
}
@media (max-width: 560px) {
  body {
    padding: 25px 14px;
  }
  .service {
    flex-wrap: wrap;
    gap: 12px;
  }
  .name {
    flex-basis: 60%;
  }
  .status {
    flex: 1;
  }
  .actions {
    width: 100%;
  }
  .actions button {
    flex: 1;
  }
}
