/* --- Base Layout --- */
body {
  background-color: #0f1419;
  color: #d6deeb;
  font-family: "Inter", sans-serif;
  margin: 0;
  min-height: 100vh;

  /* Shift the entire layout over for sidebar */
  padding-left: 70px;
  transition: padding-left 0.3s ease;
}

/* Expanded sidebar moves full page */
body.sidebar-expanded {
  padding-left: 260px;
}

/* --- HEADER --- */
header, .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0b0e13;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid #1c2129;
  z-index: 50;
}

header h1, .site-header h1 {
  font-size: 1.1rem;
  margin: 0;
  color: #d6deeb;
}

/* --- Sidebar --- */
#sidebar {
  position: fixed;
  top: 60px; /* 👈 starts BELOW header */
  bottom: 0;
  left: 0;
  width: 70px;
  background: rgba(15, 20, 25, 0.95);
  color: #ddd;
  padding: 1rem 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s ease;
  z-index: 10;
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* Expanded sidebar */
#sidebar.expanded {
  width: 260px;
  box-shadow: 4px 0 10px rgba(0,0,0,0.4);
}

/* Hide text when collapsed */
#sidebar .section-title span,
#sidebar a span {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  margin-left: 0.5rem;
  display: inline-block;
}
#sidebar.expanded .section-title span,
#sidebar.expanded a span {
  opacity: 1;
}

/* Sidebar links */
#sidebar a {
  display: block;
  color: #ccc;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  transition: 0.2s;
  border-radius: 4px;
}
#sidebar a:hover {
  color: #00bfff;
  background: rgba(0,191,255,0.08);
}
#sidebar a.active {
  color: #fff;
  background: rgba(0,191,255,0.15);
}

/* Section headers */
#sidebar .section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #00bfff;
  margin: 1rem 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Sublist */
#sidebar .sublist {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* --- Main Content --- */
#doc-content {
  max-width: 960px;
  padding: 2rem;
  margin: 80px auto 0 auto; /* 👈 offset below header */
}

/* --- Footer --- */
.docs-footer {
  text-align: center;
  color: #888;
  padding: 1rem;
  border-top: 1px solid #222;
  margin-top: 2rem;
}

/* --- Console Loader --- */
.console {
  background: #06070a;
  color: #8fffb2;
  font-family: "Fira Code", monospace;
  padding: 1.25rem;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.95rem;
  box-shadow: inset 0 0 12px #00bfff22;
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
  white-space: pre-wrap;
}

.cursor {
  display: inline-block;
  background: #8fffb2;
  width: 8px;
  height: 16px;
  margin-left: 6px;
  animation: blink 0.8s steps(1) infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}
1~/* --- Base Layout --- */
body {
  background-color: #0f1419;
  color: #d6deeb;
  font-family: "Inter", sans-serif;
  margin: 0;
  min-height: 100vh;

  /* Shift the entire layout over for sidebar */
  padding-left: 70px;
  transition: padding-left 0.3s ease;
}

/* Expanded sidebar moves full page */
body.sidebar-expanded {
  padding-left: 260px;
}

/* --- HEADER --- */
header, .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0b0e13;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid #1c2129;
  z-index: 50;
}

header h1, .site-header h1 {
  font-size: 1.1rem;
  margin: 0;
  color: #d6deeb;
}

/* --- Sidebar --- */
#sidebar {
  position: fixed;
  top: 60px; /* 👈 starts BELOW header */
  bottom: 0;
  left: 0;
  width: 70px;
  background: rgba(15, 20, 25, 0.95);
  color: #ddd;
  padding: 1rem 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s ease;
  z-index: 10;
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* Expanded sidebar */
#sidebar.expanded {
  width: 260px;
  box-shadow: 4px 0 10px rgba(0,0,0,0.4);
}

/* Hide text when collapsed */
#sidebar .section-title span,
#sidebar a span {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  margin-left: 0.5rem;
  display: inline-block;
}
#sidebar.expanded .section-title span,
#sidebar.expanded a span {
  opacity: 1;
}

/* Sidebar links */
#sidebar a {
  display: block;
  color: #ccc;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  transition: 0.2s;
  border-radius: 4px;
}
#sidebar a:hover {
  color: #00bfff;
  background: rgba(0,191,255,0.08);
}
#sidebar a.active {
  color: #fff;
  background: rgba(0,191,255,0.15);
}

/* Section headers */
#sidebar .section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #00bfff;
  margin: 1rem 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Sublist */
#sidebar .sublist {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* --- Main Content --- */
#doc-content {
  max-width: 960px;
  padding: 2rem;
  margin: 80px auto 0 auto; /* 👈 offset below header */
}

/* --- Footer --- */
.docs-footer {
  text-align: center;
  color: #888;
  padding: 1rem;
  border-top: 1px solid #222;
  margin-top: 2rem;
}

/* --- Console Loader --- */
.console {
  background: #06070a;
  color: #8fffb2;
  font-family: "Fira Code", monospace;
  padding: 1.25rem;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.95rem;
  box-shadow: inset 0 0 12px #00bfff22;
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
  white-space: pre-wrap;
}

.cursor {
  display: inline-block;
  background: #8fffb2;
  width: 8px;
  height: 16px;
  margin-left: 6px;
  animation: blink 0.8s steps(1) infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0b0e13;
  color: #d6deeb;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid #1c2129;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #a48bff; /* your purple branding */
  font-weight: 600;
}

.logo-link:hover {
  color: #cbb3ff;
}

.brand {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.2rem;
}

.divider {
  color: #555;
  font-weight: 400;
  margin: 0 0.4rem;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d6deeb;
  margin: 0;
}
/* --- Header Scroll Effect --- */
.site-header.scrolled {
  background: rgba(11, 14, 19, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
/* --- Custom Code Block Styling (Wolf InfoSec theme) --- */
pre[class*="language-"],
code[class*="language-"] {
  position: relative;
  border: 1px solid #00bfff40;        /* soft cyan border glow */
  border-left: 4px solid #00bfff;     /* strong accent edge */
  background: #0f1419;
  box-shadow: 0 0 18px #00bfff1a;
  transition: all 0.25s ease;
}

pre[class*="language-"]:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 24px #00bfff3a;
  transform: translateY(-2px);
}

/* subtle header bar for large code blocks */
pre[class*="language-"]::before {
  content: "💻 Code Snippet";
  display: block;
  font-size: 0.75rem;
  color: #38bdf8;
  background: #0b1117;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #00bfff33;
  border-radius: 6px 6px 0 0;
}

/* rounded corners and spacing */
pre[class*="language-"] {
  border-radius: 8px;
  overflow: hidden;
  margin: 1.4rem 0;
}

/* inline code (within text) */
code {
  background: #121821;
  color: #a3e635;
  border: 1px solid #00bfff33;
  border-radius: 4px;
  padding: 2px 5px;
}
/* --- Dynamic Code Block Header Styling --- */
pre[class*="language-"] {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #00bfff40;
  box-shadow: 0 0 15px #00bfff22;
  background: #0f1419;
}

/* The top bar that shows language + icon */
pre[class*="language-"]::before {
  content: attr(data-lang-label);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #00bfff33;
  color: #00bfff;
  background: #0b1117;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Subtle hover pulse */
pre[class*="language-"]:hover {
  box-shadow: 0 0 24px #00bfff55;
  transform: translateY(-2px);
  transition: all 0.25s ease;
}
