/* Reset and Fonts */
/* @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;500&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;500;700&display=swap");

.bar-header,
.bar-footer,
.content-header,
.content-footer {
  padding: 20px;
}


body,
.content,
.bar,
.bar-header,
.bar-menu,
.bar-footer,
.content-header,
.content-body,
.content-footer {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  margin: 0px;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

.content-header {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-header img{
  max-height: 100px;
}

.content-header h1 {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  text-wrap: nowrap;
}

.content-body {
  flex-grow: 1;
  text-align: center;
  /* justify-items: center; */
}

@media screen and (max-width: 450px) { 
  .content-body {
    font-size: 0.9em;
  }
}

.content-footer {
  padding-top: 40px;
  background-color: #333;
  color: #ccc;
}

.content-footer a {
  color: #ccc;
}

body {
  display: grid;
  height: 100vh;
  overflow: hidden;
}

.bar {
  background: radial-gradient(ellipse at bottom right, #103D25 0%, #081F12 100%);
  color: white;
  box-shadow: 7px 0px 10px 0px rgba(0, 0, 0, 0.7);
  z-index: 4;
}

.bar-header {
  align-items: center;
}

.toggle-button {
  height: 100%;
  width: auto;
  box-sizing: border-box;
  transition: transform 0.3s ease-in-out;
  margin-left: auto;
}



.toggle-button:hover path {
  fill: #ffffff;
}

.toggle-button.rotated {
  transform: rotate(-225deg);
}

.bar-menu ul {
  list-style: none;
  padding: 0;
}

.bar-menu ul li {
  position: relative;
}

/* the hover color animation for menu items */
.bar-menu ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2.5em;
  background: #107C41;
  transition: width 0.3s ease;
}

.bar-menu ul li a {
  color: white;
  padding: 10px;
  height: 2.5em;
  box-sizing: border-box;
  text-decoration: none;
  position: relative;
  align-content: center;
  display: inline-flex;
  width: 100%;
  /* align-items: center; */

}


.bar-menu ul li a svg {
  margin-left: 10px;
}

.bar-menu ul li:hover::before,
.bar-menu ul li.touch-hover::before {
  width: 100%;
}


/* active items in menu */
.bar-menu ul li.active {
  background-color: #185C37;
}

/* hovering submenu subitems */
.submenu ul li::before {
  height: 100%;
  background: #107C41;
}

.submenu ul li:hover::before {
  width: 100%;
}


.submenu ul li a {
  padding-left: 0;
}

.submenu * {
  color: #fff;
}



.logo-topbar {
  height: 100%;
  width: auto;
  max-width: 60%;
  box-sizing: border-box;
  transition: max-height 0.3s ease-in-out;


}

.logo-sidebar {
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}








/* SIDEBAR MODE */
/* SIDEBAR MODE */
/* SIDEBAR MODE */
/* SIDEBAR MODE */
/* SIDEBAR MODE */
body.sidebar {
  grid-template-columns: 200px 1fr;
  /* Fixed width for sidebar, remaining space for content */
  grid-template-rows: 1fr;
  /* One row that takes up all available height */
}

body.sidebar .bar {
  grid-area: 1 / 1 / 1 / 1;
  display: flex;
  flex-direction: column;
}

body.sidebar .content {
  grid-area: 1 / 2 / 1 / 2;
}

body.sidebar .bar-header .toggle-button {
  display: none;
}

/*

.bar {
  flex-grow: 1;
  flex-direction: column;
  display: flex;
  height: 100%;
}

.bar-menu {
  flex-grow: 1;
} */

body.sidebar .logo-topbar {
  display: none;
}

body.sidebar .logo-sidebar {
  display: inline-block;
}












/* makes submenu two columns */
body.sidebar .submenu ul {
  width: 50%;
  float: left;
}



body.sidebar .submenu {
  position: absolute;
  left: 0px;
  top: 0px;
  opacity: 0;
  background: radial-gradient(ellipse at top left, #185C37 0%, #103D25 100%);
  visibility: hidden;
  width: 600px;
  transition: all 0.3s ease;
  box-shadow: 7px 0px 10px 0px rgba(0, 0, 0, 0.7);
  z-index: 1;
}


body.sidebar .submenu.submenu-visible {
  opacity: 1 !important;
  /* background-color: #21A366 !important; */
  visibility: visible !important;
  left: 200px !important;
}

body.sidebar .submenu li,
body.sidebar .submenu h3 {
  padding: 0px 20px;
}

body.sidebar .submenu h3 {
  font-weight: 500;
}






/* TOPBAR MODE */
/* TOPBAR MODE */
/* TOPBAR MODE */
/* TOPBAR MODE */
/* TOPBAR MODE */

body.topbar {
  grid-template-columns: 1fr;
  grid-template-rows: 60px 1fr;
}

body.topbar .bar {
  grid-area: 1 / 1 / 1 / 1;
}

body.topbar .bar {
  width: 100%;
  height: 100%;
  transition: height 0.3s ease-in-out;
}

body.topbar .content {
  grid-area: 2 / 1 / 2 / 1;
}

body.topbar .logo-sidebar {
  display: none;
}

body.topbar .logo-topbar {
  display: inline-block;
}

body.topbar .bar-header {
  padding: 10px 20px;
  display: flex;
  height: 60px;
  align-items: center;
  box-sizing: border-box;
  transition: height 0.3s ease-in-out;
}

body.topbar .bar-menu ul {
  list-style: none;
  padding: 0;
  width: 100%;
  margin: 0 auto;
}

body.topbar .bar-menu,
body.topbar .bar-footer {
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.3s, opacity 0.3s ease-in-out;
  justify-content: center;
}

body.topbar .bar.expanded .bar-menu,
body.topbar .bar.expanded .bar-footer {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s linear 0.3s, opacity 0.3s ease-in-out;
}

body.topbar .bar.expanded .bar-header {
  height: 70px;

}

body.topbar .bar.expanded {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
}



body .bar-menu {
  flex-grow: 1;
}


body.topbar .submenu {
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
  background: radial-gradient(ellipse at bottom right, #185C37 0%, #103D25 100%);

}

body.topbar .submenu-visible {
  visibility: visible;
  max-height: 700px;
  transition: max-height 0.6s ease !important;
}


body.topbar .submenu ul li a {
  padding-left: 20px;
}

body.topbar .submenu h3 {
  display: none;
}

.bar-menu ul li.has-submenu > a {
  cursor: pointer;
}