/* ---------- Global ---------- */
:root {
  --bk-bg: #eef2f7;      /* was #f6f7fb — now matches the logo panel */
  --bk-text: #1a1f36;
  --bk-muted: #6b7280;
  --bk-white: #fff;
  --bk-line: #e5e7eb;
  --bk-primary: #11A8ED;
  --bk-primary-600: #0E96D3;
  --bk-shadow: 0 8px 22px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.bk-body {
  margin: 0;
  font: 14px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--bk-text);
  background: var(--bk-bg);
}

/* ---------- App Shell ---------- */
.bk-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 64px auto;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.bk-sidebar {
  grid-area: sidebar;
  background: #111827;              /* dark like Zscaler */
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.bk-sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}
.bk-sidebar-brand img { max-width: 150px; height: 28px; object-fit: contain; }

.bk-nav { padding: 8px 0; }
.bk-nav-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: #9ca3af; margin: 12px 8px;
}
.bk-nav-link {
  display: block; padding: 10px 12px; margin: 2px 0; border-radius: 8px;
  text-decoration: none; color: #e5e7eb;
}
.bk-nav-link:hover { background: rgba(255,255,255,.06); }
.bk-active { background: rgba(255,255,255,.12); }
.bk-sidebar-foot {
  margin-top: auto; font-size: 12px; color: #9ca3af; padding: 10px 8px;
}

/* ---------- Top Bar ---------- */
.bk-topbar {
  grid-area: topbar;
  background: var(--bk-white);
  display: grid; grid-template-columns: 1fr 540px 200px;
  align-items: center;
  padding: 12px 20px; gap: 16px;
  border-bottom: 1px solid var(--bk-line);
}

.bk-breadcrumb { font-weight: 600; color: var(--bk-text); }

.bk-search {
  width: 100%; height: 40px; border: 1px solid var(--bk-line);
  background: #f9fafb; border-radius: 10px; padding: 0 14px;
  outline: 0;
}
.bk-search:focus { border-color: var(--bk-primary); background: #fff; }

.bk-sort {
  height: 40px; padding: 0 14px; border: 1px solid var(--bk-line);
  background: #fff; border-radius: 10px; cursor: pointer;
}

/* ---------- Main Content ---------- */
.bk-main { grid-area: main; padding: 18px 22px 36px; }

.bk-content {
  max-width: 1200px; margin: 0 auto;
  background: transparent;
}

.bk-section-header {
  display: flex; align-items: center; gap: 10px; margin: 10px 2px 12px;
}
.bk-section-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--bk-primary);
}
.bk-section-title { margin: 0; font-size: 16px; color: var(--bk-muted); }

/* ---------- Grid + Cards (smaller) ---------- */
.bk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* smaller min width (was 220px) */
  gap: 12px; /* was 14px */
}

.bk-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;                          /* was 10px */
  height: 130px;                     /* was 150px */
  padding: 12px 10px;                /* was 14px */
  text-decoration: none;
  background: var(--bk-white);
  border: 1px solid var(--bk-line);
  border-radius: 12px;               /* was 14px */
  box-shadow: var(--bk-shadow);
  color: var(--bk-text);
  transition: transform .08s ease, box-shadow .16s ease, border-color .16s ease;
}
.bk-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(16,24,40,.10);
  border-color: #d1d5db;
}
.bk-card img { width: 36px; height: 36px; object-fit: contain; } /* was 40x40 */
.bk-card-title { font-weight: 600; font-size: 14px; }
.bk-card-sub { font-size: 11.5px; color: var(--bk-muted); }

.bk-card-ellipsis {
  position: absolute; top: 8px; right: 10px;
  color: #9ca3af; font-weight: 700; user-select: none;
}

/* ---------- Buttons (brand) ---------- */
.btn {
  display: inline-block;
  background-color: var(--bk-primary);
  color: #fff;
  padding: 12px 22px;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(17, 168, 237, 0.25);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background-color: var(--bk-primary-600); transform: translateY(-1px); }

/* ---------- Landing page polish (kept) ---------- */
.landing-wrap { max-width: 1080px; margin: 48px auto 64px; padding: 0 24px; }
.brand-row { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.brand-row img {
  width: 360px;
  max-width: 55vw;
  height: auto;
  display: block;
}
h1 { font-size: 2rem; margin: 24px 0 12px; letter-spacing: .2px; }
.lead { color: #59636B; margin-bottom: 8px; }
.helper { color: #74808A; margin-bottom: 24px; }
.divider { height: 1px; background: #E9EEF2; margin: 20px 0 28px; }

/* ---------- Pagination ---------- */
.bk-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 18px;
}
.bk-pager-label { color: var(--bk-muted); font-weight: 600; }
.bk-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bk-shell { grid-template-columns: 70px 1fr; }
  .bk-sidebar-brand img { display: none; }
  .bk-nav-title { display: none; }
  .bk-nav-link { padding: 10px; text-align: center; }
}
@media (max-width: 720px) {
  .bk-topbar { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
