* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1419;
  color: #e7ecf1;
  line-height: 1.5;
}
a { color: #5eb8ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: #161b22;
  border-right: 1px solid #30363d;
  padding: 24px 16px;
}
.sidebar .brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 24px; color: #fff; }
.sidebar nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #c9d1d9;
  margin-bottom: 4px;
}
.sidebar nav a:hover { background: #21262d; text-decoration: none; }
.main { flex: 1; padding: 32px; max-width: 1100px; }
.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
h1, h2, h3 { margin-top: 0; color: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #30363d; }
th { color: #8b949e; font-size: 0.85rem; text-transform: uppercase; }
.btn {
  display: inline-block;
  background: #238636;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn:hover { background: #2ea043; text-decoration: none; color: #fff; }
.btn-danger { background: #da3633; }
.btn-danger:hover { background: #f85149; }
.btn-secondary { background: #21262d; border: 1px solid #30363d; }
.btn-secondary:hover { background: #30363d; }
input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e7ecf1;
  margin-bottom: 12px;
}
label { display: block; margin-bottom: 4px; color: #8b949e; font-size: 0.9rem; }
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.alert-success { background: #12261e; border: 1px solid #238636; color: #7ee787; }
.alert-danger { background: #2d1117; border: 1px solid #da3633; color: #ffa198; }
.alert-info { background: #122031; border: 1px solid #1f6feb; color: #79c0ff; }
.secret-box {
  font-family: ui-monospace, monospace;
  background: #0d1117;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #30363d;
  word-break: break-all;
  margin: 8px 0;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card { width: 100%; max-width: 400px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { background: #0d1117; padding: 16px; border-radius: 8px; border: 1px solid #30363d; }
.stat .value { font-size: 1.8rem; font-weight: 700; color: #fff; }
.stat .label { color: #8b949e; font-size: 0.85rem; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-active { background: #12261e; color: #7ee787; }
.badge-revoked { background: #2d1117; color: #ffa198; }
.badge-expired { background: #2a2008; color: #d29922; }
.inline-form { display: inline; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
}
