:root{
  --base-clr: #11121a;
  --line-clr: #42434a;
  --hover-clr: #222533;
  --table-clr: #1e202c;
  --secondary-table-clr: #13141b;
  --text-clr: #e6e6ef;
  --accent-clr: #5e63ff;
  --secondary-text-clr: #b0b3c1;
}
*{
  margin: 0;
  padding: 0;
}
html{
  font-family: sans-serif;
  line-height: 1.5rem;
}
body{
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100dvw;
  background-color: var(--base-clr);
  color: var(--text-clr);
  display: grid;
  grid-template-columns: auto 1fr;
}
#sidebar{
  box-sizing: border-box;
  height: 100vh;
  width: 250px;
  padding: 5px 1em;
  background-color: var(--base-clr);
  border-right: 1px solid var(--line-clr);
  user-select: none;
  position: sticky;
  top: 0;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
}
#sidebar.close{
  padding: 5px;
  width: 60px;
}
#sidebar ul{
  list-style: none;
}
#sidebar > ul > li:first-child{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  .logo{
    font-weight: 600;
  }
}
#sidebar ul li.active a{
  color: var(--accent-clr);

  svg{
    fill: var(--accent-clr);
  }
}

#sidebar a, #sidebar .logo{
  border-radius: .5em;
  padding: .85em;
  text-decoration: none;
  color: var(--text-clr);
  display: flex;
  align-items: center;
  gap: 1em;
}
#sidebar svg{
  flex-shrink: 0;
  fill: var(--text-clr);
}
#sidebar a span{
  flex-grow: 1;
}
#sidebar a:hover{
  background-color: var(--hover-clr);
}
#sidebar .sub-menu{
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;

  > div{
    overflow: hidden;
  }
}
#sidebar .sub-menu.show{
  grid-template-rows: 1fr;
}
.rotate svg:last-child{
  rotate: 180deg;
}
#sidebar .sub-menu a{
  padding-left: 2em;
}
#toggle-btn{
  margin-left: auto;
  padding: 1em;
  border: none;
  border-radius: .5em;
  background: none;
  cursor: pointer;

  svg{
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover{
  background-color: var(--hover-clr);
}

main{
  display: flex;
  flex-direction: column;
}

.content{
  width: 100%;
}

header{
  text-align: center;
  padding: 1rem;
  height: fit-content;
  border-bottom: 1px solid var(--line-clr);
}

table{
  border-collapse: collapse;
  width: 100%;
}

th,td{
  padding: 1em;
  text-align: left;
}

tbody tr{
  background-color: var(--hover-clr);
}

tbody tr:nth-of-type(2n){
  background-color: var(--table-clr);
}

th{
  border-bottom: 1px solid var(--line-clr);
}

.config{
  text-align: center;
}


@media(max-width: 900px){
  body{
    display: flex;
    flex-direction: column;
    overflow-x: auto;
  }

  #sidebar{
    height: 250px;
    border-bottom: 1px solid var(--line-clr);
    padding: 5px 0.2em;
    position: absolute;
 
    > ul > li:first-child{
      justify-content: flex-start;
    }
  }
  #sidebar.close{
    height: 60px;
    width: 60px;
    padding: 5px 0.2em;
  }
  .logo{
    font: 0 / 0 sans-serif;
  }
  #toggle-btn{
    margin-left: 0;
    border-radius: 1.5em;
  }
  #toggle-btn:hover{
    background-color: transparent;
  }
  #toggle-btn svg{
    transform: rotate(90deg);
  }

  th{
    display: none;
  }

  td::before{
    content: attr(data-cell) ": ";
    font-weight: 700;
  }

  td{
    display: grid;
    grid-template-columns: 15ch auto;
    padding: 0.2rem 1rem;
  }

  td:first-child{
    padding-top: 1rem;
  }

  td:last-child{
    padding-bottom: 1rem;
  }

  .config{
  text-align: left;
  }
}