:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #05060a;
  --panel: #11131c;
  --panel-strong: #16192a;
  --text: #f4f5fa;
  --subtext: #9ca0b1;
  --accent: #00c9ff;
  --accent-2: #ff5f6d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(0, 201, 255, 0.05), transparent 40%), var(--bg);
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #07090f;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 600;
}

.brand small {
  display: block;
  font-size: 0.8rem;
  color: var(--subtext);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item {
  text-align: left;
  background: transparent;
  border: none;
  color: var(--subtext);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

main {
  padding: 2rem;
  overflow-y: auto;
}

.page header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

button {
  background: linear-gradient(120deg, var(--accent), #5bffdd);
  border: none;
  color: #03111b;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}

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

.card {
  background: var(--panel);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.metric h3 {
  margin: 0;
  color: var(--subtext);
}

.metric p {
  font-size: 2rem;
  margin: 0.35rem 0;
}

.panel {
  background: var(--panel-strong);
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-item {
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.timeline-item small {
  color: var(--subtext);
}

.split {
  display: grid;
  grid-template-columns: minmax(320px, 45%) 1fr;
  gap: 1rem;
}

.list-panel {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tr:hover {
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.detail-panel pre {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 12px;
  overflow-x: auto;
}

.placeholder ul {
  margin: 0;
}

.placeholder li {
  color: var(--subtext);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
