/* Shared theme — light, clean, modern */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface2: #f0f1f5;
  --border: #e2e4ea;
  --accent: #4f6ef7;
  --accent-light: #eef1fe;
  --accent2: #f59e0b;
  --green: #22c55e;
  --green-light: #ecfdf5;
  --red: #ef4444;
  --red-light: #fef2f2;
  --text: #1e293b;
  --text2: #475569;
  --dim: #94a3b8;
  --muted: #cbd5e1;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #3b5bdb; }

/* Shared nav bar */
.hub-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.hub-nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 12px;
}

.hub-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s;
}

.hub-nav a:hover { color: var(--text); background: var(--surface2); }
.hub-nav a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.card-title {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Status indicators */
.status-ok { color: var(--green); }
.status-warn { color: var(--accent2); }
.status-err { color: var(--red); }

/* Buttons */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(79,110,247,0.3);
}

.btn:hover { background: #3b5bdb; }

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  box-shadow: none;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Responsive */
@media (max-width: 768px) {
  .hub-nav { padding: 10px 16px; }
  .hub-nav a { font-size: 12px; padding: 5px 10px; }
}
