/* ===== Layout Reset ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
  display: flex;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  border-right: 2px solid #333;
  padding: 20px 0;
  box-sizing: border-box;
}

.sidebar-logo img {
  width: 180px;
  margin: 0 auto 20px;
  display: block;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}

/* Top-level links (Home, etc.) */
.nav-link {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 6px 0;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:visited { color: #ccc; text-decoration: none; }

/* ===== Collapsible groups ===== */
/* Remove default disclosure marker and focus rings */
.sidebar .nav-link:focus,
.sidebar .nav-link:active,
.sidebar-nav summary:focus,
.sidebar-nav summary:active {
  outline: none !important;
  box-shadow: none !important;
}
.nav-group summary::-webkit-details-marker { display: none; }

/* Top-level group headers (Client, Server, Database, Guides) */
.nav-group summary {
  cursor: pointer;
  font-weight: bold;
  padding: 6px 8px;
  color: #aaa;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-group[open] summary { color: #fff; }

/* Caret for top-level groups */
.nav-group > summary::after {
  content: "▸";
  margin-left: auto;
  font-size: 0.95em;
  transition: transform .18s ease;
}
.nav-group[open] > summary::after { content: "▾"; }

/* Child lists */
.nav-group ul { list-style: none; margin: 0; padding-left: 14px; }
.nav-group li { margin: 3px 0; }
.nav-group a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}
.nav-group a:hover,
.nav-group a.active { color: #fff; font-weight: 700; }  /* active link bold */

/* Inner drawers (e.g., Equipment, Items under Database) */
.nav-group > ul > li > details > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 8px;     /* neutral; no green ring */
}
.nav-group > ul > li > details > summary::after {
  content: "▸";
  margin-left: auto;
  font-size: 0.9em;
  transition: transform .18s ease;
}
.nav-group > ul > li > details[open] > summary::after { content: "▾"; }

/* Previously added green outline removed completely */
.nav-group.active-group summary {
  color: #fff;            /* keep readable when JS flags group as active */
  /* outline/background intentionally removed */
}

/* ===== Footer ===== */
.sidebar-footer {
  padding: 12px 16px;
  font-size: 12px;
  color: #777;
  border-top: 1px solid #333;
  text-align: center;
}
.sidebar-footer .made-by {
  margin-bottom: 6px;
  color: #bbb;
}
.sidebar-footer a {
  display: block;
  color: #00aaff;
  text-decoration: none;
  margin: 4px 0;
}
.sidebar-footer a:hover { color: #fff; }
.sidebar-footer img {
  width: 90px;
  margin-top: 8px;
  filter: brightness(0.8);
}

/* ===== Main Content ===== */
.main {
  margin-left: 240px;
  flex: 1;
  padding: 20px;
}
