#app { height: 100%; }

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-sidebar-text);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  color: var(--color-sidebar-muted);
  cursor: pointer;
  border-radius: 0;
  font-size: 14px;
  transition: background .15s, color .15s;
  user-select: none;
}

.sidebar-nav-item:hover { background: rgba(255,255,255,.06); color: var(--color-sidebar-text); }
.sidebar-nav-item.active { background: rgba(255,255,255,.1); color: var(--color-sidebar-text); }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: var(--color-sidebar-muted);
}

.sidebar-footer .admin-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}

.sidebar-footer button {
  background: none;
  border: none;
  color: var(--color-sidebar-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.sidebar-footer button:hover { color: var(--color-sidebar-text); }

/* Main content */
.main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.page-header {
  padding: 24px 32px 0;
}

.breadcrumb {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-text); }

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
}

.page-body {
  padding: 0 32px 32px;
  flex: 1;
}

/* Login layout (no sidebar) */
.login-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; z-index: 100; top: 0; left: 0; height: 100%; }
  .page-header, .page-body { padding-left: 16px; padding-right: 16px; }
}
