/* ============================================================
   layout.css — App shell, sidebar, workspace
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Poppins', 'Nunito', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-app);
  color: var(--text-main);
  overflow: hidden;
}

/* App root */
#app {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* No border — color difference creates the separation */
  box-shadow: var(--shadow-soft);
  z-index: 10;
}

.sb-head {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sb-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sb-logo em { color: var(--neon-pink); font-style: normal; }
/* .sb-logo small — removed, no longer using PRO badge */
.sb-tagline {
  font-size: 0.6rem; color: var(--text-muted);
  margin-top: 1px; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-acts { display: flex; gap: 6px; }

.sb-scroll {
  flex: 1;
  overflow-y: auto;
}

.sb-footer {
  padding: 14px 20px;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Workspace ────────────────────────────────────────────── */
#workspace {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  background: var(--bg-app);
}

#zoom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 20px;
  gap: 6px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

#page-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px;
}

#page-wrapper {
  transform-origin: top center;
  transition: transform 0.2s;
}

/* ── Webkit scrollbars ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-app); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }

/* Floating zoom bubble — top-right corner of workspace */
#zoom-bubble {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 4px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.z-btn {
  background: none;
  border: none;
  color: var(--text-main);
  border-radius: 12px;
  width: 24px; height: 24px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.z-btn:hover { background: rgba(255,255,255,0.12); }
#z-pct { font-size: 0.65rem; color: var(--text-muted); min-width: 32px; text-align: center; }

/* Right ad rail */
#ad-rail {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  background: var(--bg-app);
  border-left: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.ad-unit { width: 160px; }
.ad-label {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
/* Hide ad rail on small screens */
@media (max-width: 1100px) { #ad-rail { display: none; } }