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

body {
  background: #020617;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "PingFang SC", sans-serif;
}

/* ===== App ===== */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Topbar ===== */
.topbar {
  height: 60px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo .dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 10px;
}

.badge.online {
  color: #22c55e;
}

/* ===== Layout ===== */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
}

/* ===== Sidebar ===== */
.sidebar {
  border-right: 1px solid #1e293b;
  padding: 24px;
}

.sidebar h2 {
  font-size: .95rem;
  margin-bottom: 16px;
  color: #94a3b8;
}

.project-list {
  list-style: none;
}

.project-list li {
  margin-bottom: 8px;
}

.project-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #93c5fd;
  background: rgba(30, 41, 59, .35);
  transition: all .2s;
}

.project-list a:hover {
  background: rgba(59, 130, 246, .25);
  color: #fff;
}

/* ===== Content ===== */
.content {
  padding: 32px;
}

.content h1 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px;
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  font-size: .85rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.hint {
  font-size: .75rem;
  color: #64748b;
}

/* ===== Index List ===== */
.index-list {
  list-style: none;
}

.index-list li {
  margin-bottom: 10px;
  font-size: .85rem;
}

.index-list b {
  color: #c7d2fe;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 14px;
  font-size: .8rem;
  color: #94a3b8;
}

.footer-stats {
  margin-bottom: 6px;
}

.footer-links a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}