:root {
  --bg-dark: #0a0015;
  --bg-sidebar: #120028;
  --neon-magenta: #ff00cc;
  --neon-cyan: #00ffff;
  --neon-red: #ff0000; /* A.K. */
  --neon-green: #00aa00; /* A.K. */
  --neon-yellow: #eeff00; /* A.K. */
  --text: #d0c8ff;
  --text-dim: #aa88cc;
  --glow-magenta: 0 0 10px #ff00cc, 0 0 20px #ff00cc;
  --glow-cyan: 0 0 10px #00ffff, 0 0 20px #00ffff;
  --glow-red: 0 0 10px #ff0000, 0 0 20px #ff0000; /* A.K. */
  --glow-green: 0 0 10px #00ab00, 0 0 20px #00bc00; /* A.K. */
  --glow-yellow: 0 0 10px #eeff00, 0 0 20px #eeff00; /* A.K. */
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Courier New', Consolas, monospace;
}

/* ─── Sidebar (desktop) ──────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 360px;
  font-size: 15px;
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 2px solid #440066;
  box-shadow: 4px 0 25px rgba(170,0,255,0.35);
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid #550099;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.0em;
  font-weight: bold;
  color: var(--neon-magenta);
  text-shadow: var(--glow-magenta);
  letter-spacing: 2px;
}

.close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-size: 1em;
  cursor: pointer;
}

.sidebar-content {
  padding: 12px 0;
}

.section {
  margin: 16px 0;
}

/* Make folder titles bigger too */
.section-title {
  font-size: 15.5px !important;
  padding: 10px 20px;
  font-weight: bold;
  background: rgba(80,20,120,0.4);
  border-left: 4px solid var(--neon-magenta);
  margin-bottom: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.neon-magenta { color: var(--neon-magenta); text-shadow: var(--glow-magenta); }
.neon-cyan    { color: var(--neon-cyan);    text-shadow: var(--glow-cyan); }
.neon-red     { color: var(--neon-red);    text-shadow: var(--glow-red); } /* A.K. */
.neon-green   { color: var(--neon-green);    text-shadow: var(--glow-green); } /* A.K. */
.neon-yellow  { color: var(--neon-yellow);    text-shadow: var(--glow-yellow); } /* A.K. */

/* For subsections inside .section-content */
.subsection {
  padding: 6px 28px 2px;
  color: #bb99ff;
  font-size: 0.95em;
}

/* Add / Update these CSS rules */
.sidebar a {
    display: block;
    padding: 9px 20px 9px 38px;     /* better padding */
    font-size: 15px;                /* bigger and readable */
    color: #c0b0ff;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.2s;
}

.sidebar a:hover {
    color: white;
    background: rgba(255, 0, 255, 0.15);
    padding-left: 46px;
    text-shadow: 0 0 8px #ff00ff;
}


/* ─── Hamburger & Overlay (mobile) ───────────────────────────── */
.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  background: rgba(20,0,60,0.7);
  border: 1px solid #8800ff;
  color: var(--neon-cyan);
  font-size: 1.2em;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--glow-cyan);
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 900;
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 820px) {

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger {
    display: block;
  }

  .close-btn {
    display: block;
  }

  /* Main content gets full width */
  .main-content {
    margin-left: 0 !important;
    padding: 70px 12px 20px;
  }
}
.search-container {
  position: relative;
  margin: 12px 16px 20px;
}

#sidebarSearch {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: rgba(30,10,60,0.7);
  border: 1px solid #7700aa;
  border-radius: 6px;
  color: #e0d0ff;
  font-family: inherit;
  font-size: 0.8em;
  outline: none;
  box-shadow: inset 0 0 8px rgba(170,0,255,0.2);
  transition: all 0.25s;
}

#sidebarSearch:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.4), inset 0 0 8px rgba(0,255,255,0.15);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon-cyan);
  font-size: 1.5em;
  pointer-events: none;
  text-shadow: var(--glow-cyan);
}

/* Highlight matched text */
.highlight {
  background: rgba(255,0,204,0.25);
  color: white;
  padding: 1px 3px;
  border-radius: 3px;
}
.main-content {
  margin-left: 360px;           /* matches sidebar width on desktop */
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 820px) {
  .main-content {
    margin-left: 0;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.toggle-arrow {
  display: inline-block;
  font-size: 0.9em;
  transition: transform 0.35s ease;
  width: 14px;
  text-align: center;
}

.section-title.open .toggle-arrow {
    transform: rotate(90deg);
}

.section-title:hover {
  background: rgba(120,40,180,0.55);
}

/* Smooth collapse animation */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.25s ease;
    opacity: 0;
}

.section-content.open {
    max-height: 2500px;   /* large enough for deep nesting */
    opacity: 1;
}


