@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

:root {
  --header-height: 3rem;
  --nav-width: 68px;
  --first-color: #39a3ff;
  --first-color-light: #AFA5D9;
  --white-color: #F7F6FB;
  --body-font: 'Nunito', sans-serif;
  --normal-font-size: 1rem;
  --z-fixed: 100
}
/* ===== Base Styles ===== */
*,
::before,
::after {
  box-sizing: border-box
}

a {
  text-decoration: none
}
/* ===== Layout Styles ===== */
.layout {
  display: flex;
}

.body {
    margin: 0;
    padding-top: var(--header-height);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: 0.5s;

}
/* ===== Header Styles ===== */
.header-board {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--white-color);
  z-index: var(--z-fixed);
  transition: .5s
}

.header_toggle {
  color: var(--first-color);
  font-size: 1.5rem;
  cursor: pointer;
}
.header_toggle i.bx-menu{
  padding-left: 100px;
}
.header_toggle i.bx-x {
  padding-left: 230px;
}
.header_img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden
}

.header_img img {
  width: 40px
}
/* ===== Sidebar Styles ===== */
.l-navbar {
  position: fixed;
  top: 0;
  left: -30%;
  width: var(--nav-width);
  height: 100vh;
  background-color: var(--first-color);
  padding: .5rem 1rem 0 0;
  transition: .5s;
  z-index: var(--z-fixed);

}
#nav-bar .show {
  left: 0
}

.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden
}

.nav_logo,
.nav_link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: .5rem 0 .5rem 1.5rem
}

.nav_logo {
  margin-bottom: 2rem
}

.nav_logo-icon {
  font-size: 1.25rem;
  color: var(--white-color)
}

.nav_logo-name {
  color: var(--white-color);
  font-weight: 700
}

.nav_link {
  position: relative;
  color: var(--first-color-light);
  margin-bottom: 1.5rem;
  transition: .3s
}

.nav_link:hover {
  color: var(--white-color)
}

.nav_icon {
  font-size: 1.25rem
}

.nav_link.active {
  color: var(--white-color)
}

.nav_link.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--white-color)
}
/* ===== Overlay Styles ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Main Content ===== */
.main-content {
  width: 100%;
  margin-left: 0;
  padding: 1rem;
  transition: margin-left 0.3s ease;
  display: flex;
  justify-content: center;
}

.body-pd {
  padding-left: calc(var(--nav-width) + 188px);
}
.main-content,
.body,
.body-pd {
  box-sizing: border-box;
}

/* Adjust content when sidebar is shown */
.body-pd .main-content {
  margin-left: var(--nav-width);
}
/* Adjust header when sidebar is shown */
.body-pd .header-board {
  padding-left: calc(var(--nav-width) + 5rem);
}

.router-content {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.layout,
.body,
.main-content,
.router-content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Remove any conflicting transitions */
.body-pd .router-content {
  transition: none;
}

/* Ensure proper layout structure */
.main-content {
  overflow-x: hidden;
}

/* Responsive adjustments */
@media (min-width: 668px) {
  /* overflow-x: hidden; */
.header-board {
    height: calc(var(--header-height) + 1rem);
  }

  .body {
    padding-left: 0;
  }

  .body-pd {
    padding-left: 0;
  }

    .header-board {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem ,
  }

  .header_img {
    width: 40px;
    height: 40px
  }

  .header_img img {
    width: 45px
  }

  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0
  }


    #nav-bar .show {
    width: calc(var(--nav-width) + 156px);
  }
/*   .router-content {
    max-width: 1200px;
    padding: 20px 40px;
  } */

}
/* Responsive adjustments */
@media (max-width: 668px) {

  .router-content{
    padding: 0 !important;
  }
  .main-content{
    padding: 0 !important;
  }
  .l-navbar.show{
    left: 0;
  }
  #nav-bar .show {
    width: calc(var(--nav-width) + 156px);
  }
    .header_toggle i.bx-menu {
      padding-left:0px;
    }


}

