:root {
  --bg: #0b1c2e;
  --panel: #142b44;
  --text: #e6eef6;
  --accent: #3fb1d5;
  --hover: #1d3b5c;
  --running: #2ecc71;
  --stopped: #e74c3c;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

h1 { margin-bottom: 32px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  width: 100%;
  max-width: 640px;
}

a.card, .card {
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, transform 0.15s;
}

a.card:hover, .card:hover {
  background: var(--hover);
  transform: translateY(-3px);
}

.card .title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.card .desc {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.85;
  margin-bottom: 14px;
}

.service-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stopped);
  display: inline-block;
}

.status-dot.running { background: var(--running); }
.status-dot.stopped { background: var(--stopped); }
.status-dot.unknown { background: #7f8c8d; }

.status-text {
  min-width: 70px;
  text-align: left;
}

.service-btn {
  background: var(--accent);
  color: #062330;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.service-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.open-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.open-link:hover {
  text-decoration: underline;
}
