/* ===== Admin Layout ===== */
.admin-layout {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

/* ===== Admin Sidebar ===== */
.admin-sidebar {
  background: var(--bg-surface); border-right: 1px solid var(--border);
  padding: 24px 12px; position: sticky; top: 64px;
  height: calc(100vh - 64px); overflow-y: auto;
}
.admin-sidebar-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 2px; user-select: none;
}
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav-item:hover  { background: var(--accent-light); color: var(--accent); }
.admin-nav-item.active { background: var(--accent); color: #fff; }

/* ===== Admin Main ===== */
.admin-main { padding: 32px; overflow-y: auto; }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-page-title { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.admin-page-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

/* ===== Admin Cards ===== */
.admin-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 24px; margin-bottom: 20px;
}
.admin-card-title {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
}
.admin-card-title svg { width: 18px; height: 18px; color: var(--accent); }
.admin-card-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 20px; text-align: center;
}
.stat-num   { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== Banner Upload ===== */
.banner-preview {
  width: 100%; height: 200px; border-radius: var(--radius);
  object-fit: cover; margin-bottom: 12px;
  border: 1px solid var(--border); display: block;
}
.admin-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; cursor: pointer;
  transition: var(--transition); position: relative; background: var(--bg-elevated);
}
.admin-dropzone:hover  { border-color: var(--accent); background: var(--accent-light); }
.admin-dropzone input  { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.admin-dropzone p      { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.admin-dropzone p svg  { width: 16px; height: 16px; }
.admin-dropzone p b    { color: var(--accent); }

/* ===== Menu Item Editor ===== */
.menu-item-card {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px;
  transition: var(--transition);
}
.menu-item-card:hover { border-color: var(--border-focus); }

.menu-item-header {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.menu-item-header-left {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--text-primary);
}
.menu-item-header-left svg { width: 16px; height: 16px; color: var(--accent); }

.menu-item-body { display: none; padding-top: 16px; }
.menu-item-body.open { display: block; }

/* ===== Icon Picker ===== */
.icon-grid {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 6px; margin-top: 8px;
}
.icon-opt {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.icon-opt svg { width: 16px; height: 16px; color: var(--text-secondary); }
.icon-opt:hover  { border-color: var(--accent); background: var(--accent-light); }
.icon-opt.sel    { border-color: var(--accent); background: var(--accent-light); }
.icon-opt.sel svg { color: var(--accent); }

/* ===== Registrations Table ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: var(--bg-elevated); padding: 10px 14px;
  font-weight: 700; color: var(--text-secondary); text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--accent-light); }

/* ===== Admin Responsive ===== */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-main    { padding: 20px 16px; }
  .stats-grid    { grid-template-columns: 1fr; }
  .icon-grid     { grid-template-columns: repeat(6, 1fr); }
}
