/*===============================*/
/*===========[Root Var]==========*/
/*===============================*/
:root {
  /* Dark mode default */
  --bg: #181a1b;
  --bg-alt: #2f3136;
  --text: #eee;
  --card: #222;

  --accent-2: #2ecc71; /* groen accentkleur */
  --accent: #1abc9c;   /* optioneel 2e accentkleur */

  --gradient-topbar: linear-gradient(180deg, #0a0e14 0%, #12171f 100%);
  --gradient-sidebar: linear-gradient(180deg, #0a0e14 0%, #151a22 100%);
}

body.light {
  /* Light mode override */
  --bg: #f4f3ef;
  --bg-alt: #c4e8b3;
  --text: #111;
  --card: #fff;

  --accent-2: #27ae60; /* iets donkerder groen voor light mode */
  --accent: #16a085;

  --gradient-topbar: linear-gradient(180deg, #c4e8b3 0%, #f4f3ef 100%);
  --gradient-sidebar: linear-gradient(180deg, #f4f3ef 0%, #f4f3ef 100%);
}


/* Basis body-styling, nu maar 1x */
body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sidebar */
.sidebar {
  
}

/* Content cards */
.content section {

}
3
/*==================================*/
/*===========[Code Block]============*/
/*==================================*/
/* Inline code */
code {
  background: rgba(0,0,0,0.6);
  color: #7ef57e; /* zachte groene kleur */
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.95em;
}

/* Block code */
pre {
  background: #111; /* nog donkerder */
  color: #ddd;
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Fira Code", "Consolas", monospace;
  margin: 12px 0;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
}

pre code {
  background: none;   /* weghalen inline background binnen pre */
  padding: 0;
  color: inherit;
}

/*==================================*/
/*===========[LightMode]============*/
/*==================================*/

/* Theme toggle knop */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  margin-left: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent-2);
  transform: scale(1.1);
}


/* Avatar naast naam in de navbar */
.nav__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;              /* little spacing before logo text */
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}

.nav__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*===============================*/
/*===========[Top Bar]===========*/
/*===============================*/
.topbar {
  background: var(--gradient-topbar);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1100; /* hoger dan sidebar */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); /* subtiele schaduw naar beneden */
}


/* Logo + button stay on the left */
.topbar .logo,
.topbar .menu-toggle {
  display: flex;
  align-items: center;
}
.topbar .logo {
  font-weight: bold;
  font-size: 20px;
  white-space: nowrap;
}

.marginTop {
	margin-top: 1rem;
}



/* De gradient-lijn zelf */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;

  /* Gradient die langzaam schuift */
  background: linear-gradient(90deg, #31458f, #00ff00);
  background-size: 300% 300%;
  animation: colorShift 8s ease-in-out infinite;
  border-radius: 2px;
}

/* Hergebruik de animatie */
@keyframes colorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Left group keeps logo + menu together */
.left-group {
  display: flex;
  align-items: center;
  gap: 12px; /* spacing between logo and button */
}

.right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Layout */
.layout {
  display: flex;
  flex: 1;
  transition: margin-left 0.3s ease;
}

.layout.sidebar-collapsed .content {
  margin-left: 0;
}
/*===============================*/
/*=======[Logo + Subtitle]=======*/
/*===============================*/
.logo-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  white-space: nowrap;
  color: var(--text);
}

.subtitle {
  font-size: 12px;
  color: var(--text); /* muted gray-blue tone */
  font-weight: 400;
}
/*===============================*/
/*===========[Sidebar]===========*/
/*===============================*/
.sidebar {
  width: 300px;
  background: var(--gradient-sidebar);
  overflow-y: auto;
  transition: width 0.3s ease, left 0.3s ease;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.8);
  z-index: 1050;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar h3,
.sidebar h4,
.sidebar ul li h4,
.sidebar ul li a {
  color: var(--text);
}
.sidebar.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.sidebar .arrow {
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.25s ease;
}

h3.open .arrow, h4.open .arrow {
  transform: rotate(90deg);
}

.sidebar h3 {
  font-size: 19px;
	padding: 0; !important
	margin-left: 4px; !important
}

.sidebar h3,
.sidebar h4 {
  background: none;          /* remove button background */
  margin: 4px 0;
	margin-left 0.5rem;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar h3:hover,
.sidebar h4:hover {
  color: var(--accent-2);     /* green on hover */
}

.sidebar h4 .arrow {
  margin-right: 6px;
  transition: transform 0.25s ease;
}

.sidebar ul li h4 {
  font-size: 17px;   /* smaller than head category */
  font-weight: 500;
  margin: 8px 12px 4px 16px;	
  margin: 8px 0 4px 16px; /* more indent */
}

.sidebar ul {
  list-style: none;
  margin-bottom: 10px;
}

.sidebar ul li {
  padding: 0px 0px 0px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.sidebar ul li a {
  display: block;
  width: 13rem;
  padding: 0.8rem;
  margin-left: 1.6rem;
  margin-bottom: 0.4rem;
  border-radius: 6px;
  background: var(--bg-alt);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.sidebar ul li a:hover {
  background: var(--bg);
  color: var(--accent-2);
  transform: translateX(3px);
}

/* Active/current page */
.sidebar ul li.active a,
.sidebar ul li a:active {
  background: var(--accent);
}
/*======================================*/
/*===========[Hamburger Menu]===========*/
/*======================================*/
.submenu {
  list-style: none;
  margin-bottom: 10px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 1000px; /* big enough for content */
  opacity: 1;
}

/* Collapsed state */
.submenu.hidden {
  max-height: 0 !important;
  opacity: 0;
}

/*======================================*/
/*============[Main Content]============*/
/*======================================*/
/* Landing page content */
.content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

/* Headings */
.content h1 {
  font-size: 32px;
  margin-bottom: 25px;
  text-align: center;
}

.content h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.content h1,
.content h2 {
  color: var(--text);
}

/* Sections styled like cards */
.content section {
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content section:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(47, 255, 92, 0.4);
  border: 1px solid var(--accent-2);
}

/* Paragraphs */
.content p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text); /* ipv hardcoded #ccc */
}

/* Menu toggle next to logo */
.menu-toggle {
  background: rgba(255, 255, 255, 0.08); /* subtle gray background */
  border: none;
    color: var(--text);      /* softer white icon */
  font-size: 22px;                       /* slightly larger */
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  margin-left: 3.8rem;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15); /* brighter on hover */
  color: var(--text);                        /* full white */
  transform: scale(1.05);                /* subtle pop */
}

/* Move button closer when collapsed */
.sidebar.collapsed ~ .menu-toggle {
  left: 10px;
}

/* Overlay hidden by default */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 900; /* lower than sidebar but above content */
}

/* Show overlay when sidebar is open */
.sidebar.open ~ .overlay {
  display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  /* Sidebar off-canvas by default */
  .sidebar {
    position: fixed;
    top: 60px; /* hoogte van de topbar */
    left: -300px; /* verstopt */
    width: 260px;
    height: calc(100% - 60px);
    background: var(--bg-alt);
    transition: left 0.3s ease;
    z-index: 1100; /* boven content maar onder topbar */
    padding: 15px;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.85); /* extra diepte */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Wanneer open → slide in */
  .sidebar.open {
    left: 0;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
	.sidebar ul li h4 {
		margin-left: 25px;
		font-size: 16px !important;
	}
	.sidebar ul li {
		padding: 0;
	}
	.sidebar ul li a {
		width: 12.3rem;
		margin-left: 2.5rem;
	}


  /* Ensure content fills full width */
  .content {
    padding: 20px;
  }
	
  .topbar {
    justify-content: space-between; /* logo left, button right */
  }

  .left-group {
    gap: 10px; /* keep avatar + logo close */
  }

  /* Hamburger visible */
  .menu-toggle {
	margin-left: auto;
    padding: 8px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.2);
  }
}

/*==================================*/
/*===========[Bash Command Pagina]============*/
/*==================================*/

/* grid standaard zichtbaar */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Open categorie */
.commands-category.open .commands-grid {
  max-height: 2000px;
  opacity: 1;
  pointer-events: auto;
}

.command-card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 180px; /* zorgt dat ze niet te klein worden */
}

.command-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(47, 255, 92, 0.4);
  border: 1px solid var(--accent-2);
}

.command-card h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.command-card pre {
  margin: 10px 0;
}

.command-card p {
  line-height: 1.2;
}

.commands-category {
  margin-bottom: 50px;
  text-align: center;
}

/* categorie titel klikbaar maken */
/* Titel styling */
.commands-category h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 40px 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.commands-category h2:hover {
  color: var(--accent-2);
}

/* FontAwesome icoon */
.commands-category h2 i {
  transition: transform 0.3s ease;
}

.commands-category.open h2 i {
  transform: rotate(180deg); /* pijltje naar beneden */
}

/* Inline code snippets */
/* Inline code snippets (inside paragraphs) */
p code, li code {
  background: rgba(0, 0, 0, 0.7);
  color: #7ef57e; /* bright green */
  padding: 2px 6px;
  border-radius: 5px;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.9em;
  white-space: nowrap; /* only for inline! */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Code blocks */
pre {
  background: #111;
  color: #ddd;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.95em;
  margin: 12px 0;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);

  /* fix spacing */
  white-space: pre; 
  line-height: 1.4;
}


pre code {
  background: none;   /* remove inline styles inside pre */
  color: inherit;
  padding: 0;
  font-size: inherit;
  white-space: pre;   /* preserve formatting */
}



/* de lijnen links/rechts */
.commands-category h2::before,
.commands-category h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #222222;
}

.chmod-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.9em;
}

.chmod-table th,
.chmod-table td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 8px;
  text-align: center;
}

.chmod-table th {
  background: rgba(255,255,255,0.05);
  font-weight: 600;
}

.chmod-table td {
  background: rgba(0,0,0,0.3);
}




/* Op tablets → 2 kolommen */
@media (max-width: 1024px) {
  .commands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Op mobiel → 1 kolom */
@media (max-width: 600px) {
  .commands-grid {
    grid-template-columns: 1fr;
  }
}
