.wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--deep-black);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 10, 10, 0.98);
  border-inline-end: 1px solid rgba(0, 209, 255, 0.1);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.sidebarTop {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0, 209, 255, 0.08);
}

.brandLink {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brandLogo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,209,255,0.2), rgba(0,80,255,0.15));
  border: 1px solid rgba(0,209,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--glow-blue-sm);
}

.brandName {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--electric-blue);
  letter-spacing: 1px;
}

.brandSub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Side Navigation */
.sideNav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: start;
  width: 100%;
  font-family: inherit;
}

.navItem:hover {
  background: rgba(0, 209, 255, 0.06);
  color: var(--text-primary);
}

.navActive {
  background: rgba(0, 209, 255, 0.1) !important;
  border-color: rgba(0, 209, 255, 0.2) !important;
  color: var(--electric-blue) !important;
}

/* Sidebar Bottom */
.sidebarBottom {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.adminUser {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adminAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), #0050FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.topBar {
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.pageTitle {
  font-family: 'Orbitron', 'Cairo', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Stats */
.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.statCard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.statCard:hover {
  border-color: rgba(0, 209, 255, 0.2);
  transform: translateY(-2px);
}

.statIcon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.statValue {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.statLabel {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cardTitle {
  font-family: 'Orbitron', 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Table */
.tableWrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.table th {
  padding: 12px 16px;
  text-align: start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--electric-blue);
  background: rgba(0, 209, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }

@media (max-width: 1200px) {
  .statsGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .content { padding: 16px; }
  .topBar { padding: 12px 16px; }
  .statsGrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .statsGrid { grid-template-columns: 1fr; }
}
