* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #12141f;
  color: #e8e8f0;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: #1b1e30;
  border-bottom: 2px solid #ffcb05;
}
h1 { font-size: 24px; color: #ffcb05; }

.pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.pill.online { background: #1d4620; color: #7fff7f; }
.pill.offline { background: #46201d; color: #ff8f8f; }
.pill.running { background: #46401d; color: #ffe27f; }

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #1b1e30;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.card h2 { font-size: 18px; margin-bottom: 14px; }

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #2c3050;
  color: #fff;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.2); }
.btn.primary { background: #ffcb05; color: #222; }
.btn.danger { background: #a33; }
.btn-row { display: flex; gap: 10px; margin: 14px 0 8px; }

.form-row { display: flex; gap: 8px; }
input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #3a3f60;
  background: #12141f;
  color: #fff;
  font-size: 14px;
  flex: 1;
}
input[type="number"] { max-width: 110px; }

.msg { min-height: 20px; font-size: 14px; margin-top: 6px; }
.msg.ok { color: #7fff7f; }
.msg.err { color: #ff8f8f; }
.muted { color: #9aa; font-size: 14px; margin-top: 6px; }
.small { font-size: 12px; margin-top: 10px; }
code { background: #12141f; padding: 2px 6px; border-radius: 5px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #2a2e48; }
th { color: #ffcb05; font-size: 13px; }
