/* ============================================================
   Zallixor Admin — layout on top of the shared theme (style.css).
   Desktop-first (sidebar); collapses to a top tab bar on phones.
   ============================================================ */

.admin-body { background: var(--bg); color: var(--text); margin: 0; }
.admin-boot { min-height: 100dvh; display: grid; place-items: center; }

.admin-shell { display: flex; min-height: 100dvh; }

.admin-nav {
  flex: 0 0 230px; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 14px calc(14px + var(--safe-bottom));
  background: var(--panel); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100dvh; box-sizing: border-box;
}
.admin-brand { display: flex; align-items: center; gap: 8px; }
.admin-tabs { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-tab {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: transparent; border: 0; color: var(--muted);
  border-radius: 12px; padding: 11px 12px; font-size: .92rem; font-weight: 650;
  transition: background var(--dur-med), color var(--dur-med);
}
.admin-tab .icon { width: 18px; height: 18px; }
.admin-tab:hover { background: var(--panel-2); color: var(--text); }
.admin-tab.active { background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(124,58,237,.35); }
.admin-me { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-me .muted { overflow: hidden; text-overflow: ellipsis; }

.admin-main { flex: 1; padding: 22px; max-width: 900px; display: flex; flex-direction: column; gap: 14px; }

.admin-stats { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
.fp-stat.clickable { cursor: pointer; transition: transform var(--dur-fast), border-color var(--dur-med); }
.fp-stat.clickable:hover { border-color: var(--accent-a); transform: translateY(-2px); }

.adm-row.subtle { opacity: .7; }
.adm-target { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.adm-target-text { font-size: .88rem; overflow-wrap: anywhere; }
.adm-search-row { display: flex; gap: 8px; align-items: center; }
.adm-user-head { display: flex; align-items: center; gap: 12px; }

/* ── Phone layout ── */
@media (max-width: 760px) {
  .admin-shell { flex-direction: column; }
  .admin-nav { flex: none; height: auto; position: sticky; top: 0; z-index: 20;
    flex-direction: column; gap: 10px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { flex: 0 0 auto; padding: 8px 12px; font-size: .82rem; }
  .admin-me { flex-direction: row; align-items: center; justify-content: space-between; border-top: 0; padding-top: 0; }
  .admin-main { padding: 14px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .adm-row { flex-direction: column; }
  .adm-actions { flex-direction: row; flex-wrap: wrap; }
}
