/* ============================================================
   css/layout.css — App shell: sidebar, topbar, content
   ============================================================ */

#app { min-height: 100vh; }

.app-layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; flex-shrink: 0;
}
.sidebar-logo-text  { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--text); }
.sidebar-logo-sub   { font-size: 10px; color: var(--text3); letter-spacing: .05em; text-transform: uppercase; margin-top: 1px; }

.nav-section { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; padding: .75rem 1.25rem .25rem; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 1.25rem; font-size: 13px; color: var(--text2);
  cursor: pointer; border-left: 2px solid transparent;
  transition: all .15s; user-select: none;
}
.nav-item:hover   { color: var(--text); background: var(--bg3); }
.nav-item.active  {
  color: var(--accent); background: var(--accent-bg);
  border-left-color: var(--accent); font-weight: 500;
}
.nav-item i { font-size: 16px; width: 18px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .5rem 0; }

.sidebar-bottom { padding: 1rem 1.25rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--purple-light); border: 1px solid #c4b5fd;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--purple); font-weight: 600; flex-shrink: 0;
}
.user-name { font-size: 13px; color: var(--text); font-weight: 500; }
.user-role { font-size: 11px; color: var(--text3); }

/* ── Main column ── */
.main-col { display: flex; flex-direction: column; min-height: 100vh; overflow-y: auto; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky; top: 0; z-index: 50; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.topbar-left .page-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text); }
.topbar-left .page-sub   { font-size: 12px; color: var(--text3); margin-top: 1px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }

.page-content { flex: 1; padding: 2rem; }

.notif-btn { position: relative; }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  border: 1.5px solid var(--bg2);
  pointer-events: none;
}
