/* BOSS HQ — Layout: App shell, sidebar, topbar, content area */

/* ── App Shell ─────────────────────────────────────────────────────────── */
.app    { display: flex; height: 100vh; overflow: hidden; }
.main   { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.content { flex: 1; overflow-y: auto; padding: 24px; }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--brd);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logo-wrap {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6c63ff, #9c6fff);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 0 18px var(--acc3);
  flex-shrink: 0;
}
.logo-name { font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.logo-sub  { font-size: 10px; color: var(--t3); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }

.nav-section { padding: 14px 10px 4px; }
.nav-label   { font-size: 10px; font-weight: 600; color: var(--t3); letter-spacing: 1.5px; text-transform: uppercase; padding: 0 8px; margin-bottom: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--t2);
  transition: .15s; position: relative; margin-bottom: 2px; user-select: none;
}
.nav-item:hover               { background: var(--card); color: var(--t1); }
.nav-item.active              { background: var(--acc2); color: var(--acc); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--acc); border-radius: 0 2px 2px 0;
}
.nav-icon  { font-size: 15px; width: 20px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--yel); color: #000; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.nav-badge.red { background: var(--red); color: #fff; }

.sidebar-foot { margin-top: auto; border-top: 1px solid var(--brd); padding: 10px; }
.user-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.user-row:hover { background: var(--card); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #9c6fff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0;
}
.uname      { font-size: 13px; font-weight: 600; }
.urole      { font-size: 11px; color: var(--t3); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grn); margin-left: auto; box-shadow: 0 0 5px var(--grn); }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h); min-height: var(--topbar-h);
  background: var(--bg2); border-bottom: 1px solid var(--brd);
  display: flex; align-items: center; padding: 0 22px; gap: 14px;
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-sub   { font-size: 13px; color: var(--t3); margin-left: 6px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.date-chip    { font-size: 12px; color: var(--t2); background: var(--card); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--brd); }
.notif-btn    { width: 34px; height: 34px; background: var(--card); border: 1px solid var(--brd); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; position: relative; }
.notif-btn:hover { border-color: var(--acc); }
.notif-pip    { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--bg2); }

/* ── Grids ──────────────────────────────────────────────────────────────── */
.g4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.g21 { display: grid; grid-template-columns: 2fr 1fr;         gap: 14px; }
.g12 { display: grid; grid-template-columns: 1fr 2fr;         gap: 14px; }

/* ── Section headers ────────────────────────────────────────────────────── */
.sec-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sec-title { font-size: 16px; font-weight: 700; }
.sec-sub   { font-size: 13px; color: var(--t3); margin-top: 2px; }
