/* ================================================================
   SELLGENIUS.AI — LAYOUT
   layout.css

   Core layout system. Sidebar + main wrap.
   All pages import this.
   ================================================================ */

body {
  margin: 0;
  background: #0d0d14;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: #fff;
  min-height: 100vh;
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sw, 224px);
  background: rgba(13,13,22,.98);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 50;
  transition: width .25s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar.col { width: var(--swc, 64px); }

/* ── MAIN WRAP ── */
.main-wrap {
  margin-left: var(--sw, 224px);
  flex: 1;
  transition: margin-left .25s cubic-bezier(.16,1,.3,1);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-wrap.col { margin-left: var(--swc, 64px); }

/* ── TOPBAR ── */
.topbar {
  height: var(--th, 60px);
  background: rgba(10,10,20,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
}

/* ── PAGE BODY ── */
.page-body, .pb {
  padding: 22px 24px 48px;
  flex: 1;
}

/* ── SPACER ── */
.spacer { flex: 1; }

/* ── CARDS ── */
.card {
  background: rgba(22,22,42,.8);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .main-wrap { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
}
