/* Общие стили админ-пульта */
.admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  z-index: 100;
}
.admin-bar .admin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.admin-bar .admin-btn:hover { color: #22d3ee; background: rgba(34,211,238,0.08); }
.admin-bar .admin-btn.has-dropdown::after { content: '▾'; font-size: 11px; opacity: 0.7; }
.admin-bar .admin-btn.roots { padding: 8px 12px; }
.admin-bar .admin-btn.roots img { width: 24px; height: 24px; object-fit: contain; }

.admin-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-secondary, #1e293b);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  margin-top: 6px;
  padding: 8px 0;
  display: none;
  z-index: 200;
}
.admin-dropdown.open { display: block; }
.admin-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.admin-dropdown a:hover,
.admin-dropdown button:hover { background: rgba(34,211,238,0.1); color: #22d3ee; }
.admin-dropdown .divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.admin-dropdown .open-site { font-size: 11px; opacity: 0.8; }
.admin-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.admin-bar .dropdown-wrap { position: relative; }

/* Разметка с деревом */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 52px);
  margin-top: 52px;
}
.admin-tree {
  background: rgba(0,0,0,0.25);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.admin-tree a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.admin-tree a:hover { color: #22d3ee; background: rgba(34,211,238,0.05); }
.admin-tree a.active { color: #22d3ee; border-left-color: #22d3ee; background: rgba(34,211,238,0.08); }
.admin-tree .tree-title {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.admin-tree .divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 0;
}
.admin-content {
  padding: 24px 32px;
  overflow-y: auto;
}
.admin-content h1 { font-size: 22px; margin-bottom: 8px; }
.admin-content p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
