/* Hufan Exchange — admin panel layout */
body.admin { background: #f3f5f9; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 60;
  background: linear-gradient(180deg, #0b1220, #101b2e); color: #cbd5e1;
  display: flex; flex-direction: column; padding: 18px 14px;
}
.sidebar-brand { padding: 4px 8px 20px; font-size: 18px; }
.sidebar .logo-img { filter: brightness(0) invert(1); }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-nav a, .side-foot a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: #94a3b8; font-weight: 500; font-size: 14.5px;
}
.side-nav a:hover, .side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: color-mix(in srgb, var(--brand) 28%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.side-count { margin-left: auto; font-style: normal; background: var(--accent); color: #111827; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 10px; }
.admin-main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 12px 26px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 18px; margin: 0; flex: 1; }
.topbar-right { display: flex; gap: 6px; align-items: center; }
.admin-content { padding: 24px 26px 40px; flex: 1; }
.admin-foot { padding: 14px 26px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .sidebar.open { transform: none; }
  .admin-main { margin-left: 0; }
  .topbar { padding: 10px 16px; }
  .admin-content { padding: 18px 16px 30px; }
  .hide-sm { display: none; }
}
.admin .nav-toggle { display: none; }
@media (max-width: 980px) { .admin .nav-toggle { display: inline-flex; } }

.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-row h2 { margin: 0; font-size: 20px; }
.section-gap { margin-top: 22px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 10px 4px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-fill { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #fff)); min-height: 3px; }
.bar-val { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.bar-lbl { font-size: 11.5px; color: var(--muted); }
.reserve-list { display: flex; flex-direction: column; }
.reserve-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.reserve-row:last-child { border-bottom: 0; }
.reserve-row strong { margin-left: auto; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.switch-cell { white-space: nowrap; }
.color-input { width: 52px; height: 42px; padding: 3px; border-radius: 10px; border: 1px solid #cfd8e3; background: #fff; cursor: pointer; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: linear-gradient(180deg, #0b1220, #12203a); }
.login-card { width: 100%; max-width: 400px; padding: 30px; }
.login-card .brand { justify-content: center; width: 100%; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.tabs a { padding: 12px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.logo-preview { height: 48px; width: auto; border-radius: 8px; border: 1px solid var(--line); padding: 4px; background: #fff; }
