@import url("./tokens.css");

.admin-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
}

.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.admin-logo .brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent-dark);
}
.admin-menu { padding: 12px 10px; flex: 1; }
.menu-group { margin-bottom: 16px; }
.menu-group-title {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.menu-item:hover { background: var(--bg-soft); color: var(--text); }
.menu-item.active {
  background: var(--accent-soft);
  color: var(--black);
  font-weight: 600;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar h1 { font-size: 18px; font-weight: 600; }
.admin-topbar .right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-secondary); }
.admin-content {
  padding: 24px 28px 48px;
  flex: 1;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.stat-card .lbl { font-size: 13px; color: var(--text-muted); }
.stat-card .num { font-size: 28px; font-weight: 700; margin-top: 8px; }
.stat-card .trend { font-size: 12px; color: var(--accent-dark); margin-top: 6px; }

.admin-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
