/* main */

:root {
  --bg-color: #f4f4f4;
  --text-color: #1a1a1a;
  --accent-color: #000;
  --sidebar-width: 250px;
  --header-height: 60px;
}

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

body {
  font-family: "M PLUS Code Latin", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

p {
  margin-bottom: 1rem;
}

/* header */

.main-header {
  background-color: var(--accent-color);
  color: #fff;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
}

/* hamburger */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* main wrapper */

.main-wrapper {
  display: flex;
  flex: 1;
}

/* sidebar */

.sidebar {
  width: var(--sidebar-width);
  background-color: #fff;
  padding: 20px;
  border-right: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.sidebar-nav ul li a {
  display: block;
  padding: 10px;
  border-radius: 5px;
}

.sidebar-nav ul li a:hover {
  background-color: #eee;
  color: var(--accent-color);
}

.sidebar-nav ul li a.active {
  font-weight: bold;
  background-color: #e0e0e0;
}

/* main content */

.main-content {
  flex: 1;
  padding: 40px;
  font-size: 1.1rem;
}

/* footer */

.main-footer {
  background-color: var(--accent-color);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* mobile */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    transform: translateX(-100%);
    z-index: 999;
    border-right: none;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-wrapper {
    flex-direction: column;
  }

  .main-content {
    padding: 20px;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/*


 $$$$$$\  $$$$$$$$\ $$\   $$\ $$$$$$$\  $$$$$$$$\ $$\     $$\
$$  __$$\ $$  _____|$$$\  $$ |$$  __$$\ $$  _____|\$$\   $$  |
$$ /  \__|$$ |      $$$$\ $$ |$$ |  $$ |$$ |       \$$\ $$  /
\$$$$$$\  $$$$$\    $$ $$\$$ |$$$$$$$\ |$$$$$\      \$$$$  /
 \____$$\ $$  __|   $$ \$$$$ |$$  __$$\ $$  __|      \$$  /
$$\   $$ |$$ |      $$ |\$$$ |$$ |  $$ |$$ |          $$ |
\$$$$$$  |$$$$$$$$\ $$ | \$$ |$$$$$$$  |$$$$$$$$\     $$ |
 \______/ \________|\__|  \__|\_______/ \________|    \__|


*/
