* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #0b1220;
  color: #e7ecf5;
}
.app {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 14px;
  min-height: 100vh;
  padding: 14px;
}
.card {
  background: #111c33;
  border: 1px solid #223154;
  border-radius: 14px;
  padding: 14px;
}
.sidebar h1 { margin: 0 0 4px; font-size: 22px; }
.sidebar h2 { margin: 14px 0 8px; font-size: 16px; }
.muted { color: #a9b3c9; }
label {
  display: block;
  margin: 8px 0 4px;
  color: #a9b3c9;
  font-size: 13px;
}
input, select {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #2a3d68;
  background: #0d1628;
  color: #e7ecf5;
  padding: 0 10px;
}
.btn {
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #18f3d2;
  color: #001114;
  font-weight: 600;
  cursor: pointer;
}
.btn.secondary {
  background: #233a63;
  color: #d5def2;
}
.btn:hover { opacity: .9; }
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
hr {
  border: none;
  border-top: 1px solid #223154;
  margin: 14px 0;
}
.toolbar {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 8px;
  margin-bottom: 12px;
}
.tableWrap {
  max-height: 460px;
  overflow: auto;
  border: 1px solid #223154;
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px;
  border-bottom: 1px solid #1b2a4a;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}
th {
  position: sticky;
  top: 0;
  background: #12203a;
}
.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.status.active { background: #1f3f35; color: #8ff4d6; }
.status.revoked { background: #4a1f2b; color: #ff95a8; }
.status.expired { background: #453b18; color: #f2d780; }
.tableActions { display: flex; gap: 6px; flex-wrap: wrap; }
.tableActions button {
  border: 1px solid #2a3d68;
  background: #162744;
  color: #dce4f6;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.tableActions button:hover { background: #223a66; }
.output {
  white-space: pre-wrap;
  background: #0d1628;
  border: 1px solid #223154;
  border-radius: 10px;
  padding: 10px;
  min-height: 70px;
  max-height: 180px;
  overflow: auto;
  font-family: Consolas, monospace;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
}

