/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
:root {
  --white-color: #fff;
  --blue-color: #4070f4;
  --grey-color: #707070;
  --grey-color-light: #aaa;
}
body {
  background-color: #e7f2fd;
  transition: all 0.5s ease;
}
body.dark {
  background-color: #333;
}
body.dark {
  --white-color: #333;
  --blue-color: #fff;
  --grey-color: #f2f2f2;
  --grey-color-light: #aaa;
}

/* navbar */
.navbar {
    top: 0;
    width: 100%;
    left: 0;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 0 2px var(--grey-color-light);
    position: fixed !important;
    height: 60px;
}
.logo_item {
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-size: 22px;
    font-weight: 500;
    color: var(--blue-color);
    margin-left: 15px;
    left: 10px;
    position: absolute;
}
/*.navbar img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 50%;
}*/
.search_bar {
  height: 47px;
  max-width: 60%;
  width: 100%;
}
.search_bar input {
  height: 100%;
  width: 100%;
  border-radius: 25px;
  font-size: 18px;
  outline: none;
  background-color: var(--white-color);
  color: var(--grey-color);
  border: 1px solid var(--grey-color-light);
  padding: 0 20px;
}
.navbar_content {
    display: flex;
    align-items: flex-end;
    column-gap: 9px;
    right: 20px;
    position: absolute;
}
.navbar_content i {
  cursor: pointer;
  font-size: 20px;
  color: var(--grey-color);
}

/* sidebar */
.sidebar {
  background-color: var(--white-color);
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  padding: 80px 20px;
  z-index: 100;
  overflow-y: scroll;
  box-shadow: 0 0 1px var(--grey-color-light);
  transition: all 0.5s ease;
}
    /*.sidebar.close {
        left: -100%;
    }*/
.sidebar::-webkit-scrollbar {
  display: none;
}
.menu_content {
  position: relative;
}
.menu_title {
  margin: 15px 0;
  padding: 0 20px;
  font-size: 18px;
}
.sidebar.close .menu_title {
  padding: 6px 30px;
}
.menu_title::before {
  color: var(--grey-color);
  white-space: nowrap;
}
.menu_dahsboard::before {
  content: "Dashboard";
}
.menu_editor::before {
  content: "Editor";
}
.menu_setting::before {
  content: "Setting";
}
.sidebar.close .menu_title::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 18px;
  border-radius: 12px;
  background: var(--grey-color-light);
}
.menu_items {
  /*padding: 0;*/
  list-style: none;
}
.navlink_icon {
  position: relative;
  font-size: 22px;
  min-width: 50px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 6px;
}
.navlink_icon::before {
  content: "";
  position: absolute;
  height: 100%;
  width: calc(100% + 100px);
  left: -20px;
}
/*.navlink_icon:hover {
  background: var(--blue-color);
}*/
.sidebar .nav_link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--grey-color);
  /*white-space: nowrap;*/
}
.sidebar.close .navlink {
  display: none;
}
.nav_link:hover {
  color: var(--white-color);
  background: var(--blue-color);
}

.selected {
    color: var(--white-color) !important;
    background: #1e2d56 !important;
}

.selectedm {
    color: var(--white-color) !important;
    background: #28709f !important;
}

.sidebar.close .nav_link:hover {
    background: var(--white-color);
}
.submenu_item {
    cursor: pointer;
    background-color: #848789;
    color: white !important;
}
.submenu {
  display: none;
}
.submenu_item .arrow-left {
  position: absolute;
  right: 10px;
  display: inline-block;
  margin-right: auto;
}
.sidebar.close .submenu {
  display: none;
}
.show_submenu ~ .submenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.show_submenu .arrow-left {
  transform: rotate(90deg);
}
.submenu .sublink {
    padding: 15px 15px 15px 20px;
    width: 156px;
}
.bottom_content {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 260px;
  cursor: pointer;
  transition: all 0.5s ease;
}
.bottom {
  position: absolute;
  display: flex;
  align-items: center;
  left: 0;
  justify-content: space-around;
  padding: 18px 0;
  text-align: center;
  width: 100%;
  color: var(--grey-color);
  border-top: 1px solid var(--grey-color-light);
  background-color: var(--white-color);
}
.bottom i {
  font-size: 20px;
}
.bottom span {
  font-size: 18px;
}
.sidebar.close .bottom_content {
  width: 50px;
  left: 15px;
}
.sidebar.close .bottom span {
  display: none;
}
.sidebar.hoverable .collapse_sidebar {
  display: none;
}
#sidebarOpen {
    font-size: 25px;
    display: block;
    margin-right: 10px;
    cursor: pointer;
    color: var(--grey-color);
}

.search_bar {
    margin-left: 20%;
}
    @media screen and (max-width: 768px) {
        .sidebar {
            left: -100%;
        }

        .sidebar.close {
            left: -100%;
        }

        .search_bar {
            display: none;
        }

        .sidebar.close .bottom_content {
            left: -100%;
        }

        .obj {
            max-width: 45%;
        }

        .page {
            margin: 10px !important;
        }

        .lgincrd {
            width: 90% !important;
        }

        .main {
            width: 100% !important;
            margin-left: 0px !important;
            transition: all 0.5s ease;
        }

            .main.open {
                margin-left: 0px !important;
                width: 100% !important;
            }

        .logo_item {
            flex-direction: row-reverse;
        }

        /*#main {
            max-height: calc(100vh - 136px) !important;
        }*/

        /*.navbar {
            height: 120px;
        }
*/
        .logo_item {
            top: 5%;
            margin-left: 0px;
        }

        .navbar_content {
            top: 5%;
        }

        .search_bar {
            margin-top: 42px;
            gap: 4%;
            margin-left: 20px;
            max-width: 100%;
        }
        p.p-0.m-0 {
            font-size: 13px !important;
        }
    }

    .profile {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
}

.sublink {
    background-color: #e9ecef;
    margin: 10px;
    overflow: hidden;
}

.navlink {
    width: 120px;
    overflow: hidden;
    text-wrap: balance;
}

.main.open {
    margin-left: 0px;
    width: 100%;
}

.lgincrd {
    width: 500px;
}

.page {
    margin: 50px;
    margin-top: 0px;
    padding-top: 30px;
    min-height: 83vh;
}

#main {
    max-height: calc(100vh - 120px) !important;
}

ul {
     padding-left: 0rem !important; 
}

.inp_err{
    color:red;
    font-size:12px;
}