body {
  background: #f3f5f8;
  font-family: "Segoe UI", Arial, sans-serif;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0f172a;
  color: #cbd5e1;
  padding: 18px 14px;
}
.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand small {
  color: #93c5fd;
  display: block;
}
.menu-link {
  display: block;
  margin-top: 6px;
  text-decoration: none;
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.menu-link:hover {
  background: #1e293b;
  color: #fff;
}
.menu-link.active {
  background: #2563eb;
  color: #fff;
}
.main-content {
  padding: 20px 22px;
}
.topbar {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 15px;
}
.card-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}
.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-running {
  background: #16a34a;
}
.status-stopped {
  background: #dc2626;
}
.mono {
  font-family: Consolas, "Courier New", monospace;
}
.pre-log {
  background: #0b1220;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  white-space: pre-wrap;
  min-height: 380px;
  max-height: 70vh;
  overflow: auto;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #1e293b;
  }
  .menu-link {
    display: inline-block;
    margin-top: 4px;
    margin-right: 4px;
  }
  .main-content {
    padding: 12px;
  }
}
