/* css variables*/
:root {
  --primary-color: #252930;
  --primary-color-light: #5d6778;
  --accent-color: #5A2A8F;
  --accent-color-light: #f5effa;
  --accent-color-dark: #7335B7;
  --white-color: #FAFBFC;
  --light-gray-color: #C6CBD1;
  --medium-gray-color: #959DA5;
  --dark-gray-color: #444D56;
  --bg-color: #ede7f5;
  --code-bg-color: #ede7f5;
}

/* normalized */
html, body {
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: white;
}

p {
  font-weight: 300;
  color: #333333;
}

a, a:hover {
  text-decoration: none;
  color: var(--primary-color);
}

hr {
  padding: 1rem 0;
  border: 0;
  border-bottom: 2px solid var(--code-bg-color);
}

* {
  box-sizing: border-box;
}

/* global components */

/* typography */
.section__title {
  color: var(--primary-color);
}

/* tabs */
.tab__container {
  position: relative;
}

.tab__container > ul {
  position: absolute;
  list-style: none;
  margin: 0;
  right: 1rem;
  top: -2rem;
  padding-left: 0;
}

.tab__container .code {
  white-space: normal;
  padding: 1rem 1.5rem;
}

.tab {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  font-weight: 200;
  cursor: pointer;
}

.tab.active {
  border-bottom: 1px solid var(--primary-color);
  font-weight: 700;
  display: inline-block;
}

.tab__pane {
  display: none;
}

.tab__pane.active {
  display: block;
}

/* code */
.code {
  border-radius: 3px;
  font-family: Space Mono, SFMono-Regular, Menlo,Monaco, Consolas, Liberation Mono, Courier New, monospace;
  background: var(--bg-color);
  border: 1px solid var(--code-bg-color);
  color: var(--primary-color-light);
}

.code--block {
  white-space: pre-line;
  padding: 0 1.5rem;
}

.code--inline {
  padding: 3px 6px;
  font-size: 80%;
}

/* buttons */
.button--primary {
  padding: 0.6rem 1.25rem;
  background-color: var(--accent-color);
  color: white;
  position: relative;
  text-decoration: none;
  border: 0;
  transition: all .3s ease-out;
}

.button--primary:after {
  position: absolute;
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: var(--accent-color-light);
  right: -0.4rem;
  top: -0.4rem;
  transition: all 0.3s ease-out;
}

.button--primary:hover {
  text-shadow: 0px 1px 1px var(--accent-color-dark);
  color: white;
  transform: translate3D(0, -3px, 0);
}

.button--primary:hover::after {
  transform: rotate(90deg);
}

.button--secondary {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--primary-color);
  transition: all 0.5s ease-out;
}

.button--secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* links */
.link {
  text-decoration: none;
  transition: all 0.3s ease-out;
}

.link:hover {
  color: var(--accent-color);
}

.link--dark {
  color: var(--primary-color);
}

.link--light {
  color: var(--accent-color);
}

/* menu */
nav {
}

.menu {
  margin: 0;
  text-align: right;
  list-style: none;
  display: flex;
  align-items: center;
  padding-left: 0;
  flex-grow: 1;
  justify-content: flex-end;
}

.toggle {
  display: none;
  position: relative;
  height: 20px;
  width: 20px;
}

.toggle span,
.toggle span:before,
.toggle span:after {
  content: '';
  position: absolute;
  height: 2px;
  width: 18px;
  border-radius: 2px;
  background: var(--primary-color);
  display: block;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  right: 0;
}

.toggle span:before {
  top: -6px;
}

.toggle span:after {
  bottom: -6px;
}

.toggle.open span{
  background-color: transparent;
}

.toggle.open span:before,
.toggle.open span:after {
  top: 0;
}

.toggle.open span:before {
  transform: rotate(45deg);
}

.toggle.open span:after {
  transform: rotate(-45deg);
}

.menu__item {
  padding: 1rem;
}

.menu__item.toggle {
  /* display: none; - tidak perlu karena sudah diatur oleh .toggle di atas */
}

/* table */
table {
  border-collapse: collapse;
  width: 100%;
  transition: color .3s ease-out;
  margin-bottom: 2rem;
}

table td, table th {
  border: 1px solid var(--code-bg-color);
  padding: 0.8rem;
  font-weight: 300;
}

table th {
  text-align: left;
  background-color: white;
  border-color: white;
  border-bottom-color: var(--code-bg-color);
}

table td:first-child {
  background-color: var(--bg-color);
  font-weight: 600;
}

/* layout */
.wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer {
  text-align: center;
  background-color: var(--white-color);
  padding: 2rem;
  color: black;
  border-top: 1px solid var(--light-gray-color);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0,30px,0);
  }
  100% {
    transform: translate3d(0,0,0);
  }
}

/* Media Query for Mobile */
@media screen and (max-width: 750px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ini akan menyelaraskan logo dan toggle */
    padding: 1rem 1.5rem;
    position: relative; /* Penting untuk menu dropdown */
    border-bottom: 2px solid var(--light-gray-color);
  }

  .logo {
    font-size: 1.2em;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    padding: 1rem 0;
    flex-grow: unset;
    justify-content: unset;
  }

  .menu.responsive {
    display: flex;
  }

  .menu__item {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .menu__item:last-child {
      border-bottom: none;
  }

  .menu__item a {
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
  .menu__item a:hover {
    color: var(--accent-color-light);
  }

  .menu__item a i.fa {
    margin-right: 0.75rem;
    font-size: 1.2em;
  }

  .toggle { /* Perbaikan di sini */
    display: block;
    /* Hapus properti absolute positioning */
    /* position: absolute; */
    /* right: 1.5rem; */
    /* top: 1rem; */
    z-index: 1001;
    padding: 0;
    height: 20px;
    width: 20px;
    cursor: pointer;
  }

  /* .menu__text rule was already removed to show text */
}