* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

header {
  border-bottom: 1px solid #1e293b;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

h1 {
  letter-spacing: 0.3em;
  font-size: 28px;
  margin: 0;
}

.subtitle {
  color: #94a3b8;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

h2 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #cbd5f5;
}

.systems {
  margin-bottom: 50px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02);
}

.card h3 {
  margin-top: 0;
  font-size: 16px;
}

.status {
  font-size: 13px;
  margin-bottom: 14px;
}

.status.green {
  color: #22c55e;
}

.status.yellow {
  color: #eab308;
}

.card a {
  display: inline-block;
  margin-right: 14px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 13px;
}

.card a:hover {
  text-decoration: underline;
}

.card a.muted {
  color: #64748b;
  pointer-events: none;
}

.infra ul {
  list-style: none;
  padding: 0;
}

.infra li {
  padding: 6px 0;
  color: #cbd5f5;
}

footer {
  margin-top: 60px;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}
.ports {
  margin-top: 50px;
}

.ports-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

#ports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#ports-table th,
#ports-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #1e293b;
  text-align: left;
}

#ports-table th {
  color: #cbd5f5;
  font-weight: 500;
}
.port-group {
  margin-top: 40px;
}

.port-owner {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #cbd5f5;
  margin-bottom: 10px;
}

.ports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.ports-table th,
.ports-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #1e293b;
  text-align: left;
}

.exposure-public {
  color: #f87171; /* red */
}

.exposure-loopback {
  color: #22c55e; /* green */
}

.exposure-internal {
  color: #38bdf8; /* blue */
}

.control-actions {
  margin: 24px 0 40px 0;
}

.btn-primary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08),
              0 8px 20px rgba(37,99,235,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12),
              0 12px 26px rgba(37,99,235,0.35);
}

.port-system { color: #22c55e; }
.port-system-internal { color: #38bdf8; }
.port-application { color: #eab308; }
.port-ai-local { color: #a78bfa; }
.port-unknown { color: #f87171; }
