.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  padding: 0 41.31px;
  box-sizing: border-box;
  font-size: var(--text-large);
  background-color: #000000;
  color: white;

  h2 {
    font-size: var(--text-xlarge);
    line-height: 18px;
    letter-spacing: -0.04em;
    white-space: nowrap;
  }

  nav {
    display: flex;
    align-items: center;
    height: 36px;
    border-radius: 8px;
    background-color: #181c25;
    z-index: 99999;
  }

  .menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    color: #d9dfec;
    border-radius: 8px;
    background-color: #181c25;

    font-size: 15px;
    line-height: 15px;
    letter-spacing: -0.6px;
  }

  .menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
  }

  .menu-item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 0px;
    width: 1px;
    height: 16px;
    background-color: #404658;
  }

  .menu-item:has(.menu-title-active)::before,
  .menu-item:has(.menu-title-active) + .menu-item::before {
    display: none;
  }

  .menu-item:not(:first-child):not(:last-child):hover {
    width: 160px;
    height: 36px;
    background: #35446ab2;
  }

  .menu-item:hover {
    width: 160px;
    height: 36px;
    border-radius: 8px;
    background: #35446a;
  }

  .menu-item:hover::before {
    display: none;
  }

  .menu-item:hover + .menu-item::before {
    display: none;
  }

  .menu-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .menu-title-active {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    color: var(--white);
    background-color: #35446a;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 160px;
    margin-top: 8px;
    color: var(--gray-700);
    border: 1px solid #aeb7c6;
    border-radius: 8px;
    background-color: var(--bg-color-white);
    box-shadow: 0px 4px 8px 0px #00000026;

    li {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 39px;
      padding: 12px 0;
      text-align: center;
    }

    li:hover {
      color: var(--gray-900);
      background-color: #f7faff;
    }

    li:hover:first-child {
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
    }

    li:hover:last-child {
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;
    }

    li:not(:last-child) {
      border-bottom: 1px solid #d9dfec;
    }

    li:active {
      color: var(--gray-700);
      background: #f2f7ff;
    }
  }

  .submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: transparent;
  }

  .menu-item:hover .submenu,
  .submenu:hover {
    display: block;
  }

  .power-off-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #404658;
    background-color: #181c25;
    cursor: pointer;
  }
}
