@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");

/*  styling scrollbars  */
::-webkit-scrollbar {
  width: 5px;
  height: 6px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #a5aaad;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #3ea175;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a5aaad;
}

* {
  margin: 0;
  padding: 0;
}

body {
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}

.text-primary-p {
  color: #a5aaad;
  font-size: 14px;
  font-weight: 700;
}

.font-bold {
  font-weight: 700;
}

.text-title {
  color: #2e4a66;
}

.text-lightblue {
  color: #469cac;
}

.text-red {
  color: #cc3d38;
}

.text-yellow {
  color: #a98921;
}

.text-green {
  color: #3b9668;
}

.container_css {
  display: grid;
  height: 100vh;
  grid-template-columns: 0.6fr 1fr 1fr 1fr;
  grid-template-rows: 0.2fr 3fr;
  grid-template-areas:
    "sidebar nav nav nav"
    "sidebar main main main";
  /* grid-gap: 0.2rem; */
}

.navbar_css {
  background: #ffffff;
  grid-area: nav;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 30px;
  border-bottom: 1px solid lightgray;
}

.nav_icon {
  display: none;
}

.nav_icon > i {
  font-size: 26px;
  color: #a5aaad;
}

.navbar__left > a {
  margin-right: 30px;
  text-decoration: none;
  color: #a5aaad;
  font-size: 15px;
  font-weight: 700;
}

.navbar__left .active_link {
  color: #265acc;
  border-bottom: 3px solid #265acc;
  padding-bottom: 12px;
}

.navbar__right {
  position: relative;
  right: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;

  transition: 0.5s;
  transition-property: display;

}
.navbar__right li ul {
 position: absolute;
 right: 5px;
  list-style: none;
  border: 1px solid green;
  background: white;
  width: 150px;
  padding-right: 10px;
  padding-left: 10px;
  padding-top: 5px;


}
.navbar__right li ul li {
 
  line-height: 32px;
  border-bottom: 1px solid  #a5aaad;
}
.navbar__right li ul li a {
 
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding-left: 5px;
}
.navbar__right li ul li a:hover {
 
  color: #3ea175;;
  font-size: 13px;
  font-weight: 600;
}
main {
  background: #f3f4f6;
  grid-area: main ;
  overflow-y: auto;
}

.main__container {
  padding: 20px 35px;

}

.main__title {
  display: flex;
  align-items: center;
}

.main__title > img {
  max-height: 100px;
  object-fit: contain;
  margin-right: 20px;
}

.main__greeting > h1 {
  font-size: 24px;
  color: #2e4a66;
  margin-bottom: 5px;
}

.main__greeting > p {
  font-size: 14px;
  font-weight: 700;
  color: #a5aaad;
}

.main__cards {
  margin: 20px 0;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  
  padding: 25px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 5px 5px 13px #ededed, -5px -5px 13px #ffffff;
}


/*  SIDEBAR STARTS HERE  */

#sidebar {
  background: #020509;
  grid-area: sidebar;
  height: 100%;
  overflow-y: auto;
  padding-top: 20px;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;

}

.sidebar__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f3f4f6;
  margin-bottom: 30px;
  /* color: #E85B6B; */
}

.sidebar__img {
  display: flex;
  align-items: center;

}

.sidebar__title > div > img {
  width: 40px;
  object-fit: contain;
  border-radius: 60%;
}

.sidebar__title > div > h1 {
  font-size: 16px;
  display: inline;
  padding-left: 12px;
}

.sidebar__title > i {
  font-size: 18px;
  display: none;
}

.sidebar__menu  {
  color: #3ea175;
  font-size: 15px;
  margin-top: 15px;
  margin-bottom: 5px;
  padding: 0 5px;
  font-weight: 700;
  list-style: none;
}
.sidebar__menu li{

 border-bottom: 1px solid rgb(151, 131, 127 ,0.5);
color: #f3f4f6;
}
.sidebar__link {
  color: #f3f4f6;
  padding: 10px;
  border-radius: 3px;
  margin-bottom: 5px;
  font-size: 13px;
}
.sidebar__link a:hover{
  color: #3ea175;
  font-size: 14px;
}
/*submenu or dropdown*/
.sidebar__link ul{
  position: static;
  list-style: none;
  
  background: rgb(19, 19, 22);
  margin-top: 5px;
  margin-bottom: 5px;
  padding-bottom: 5px;

}
.sidebar__link ul li{

  line-height: 42px;
 padding-left: 40px;
 /* 
  padding-top: 10px;
  border-radius: 3px;
  margin-bottom: 5px;*/
  
}
.sidebar__link a span{

 display: inline;
 margin-left: 3px;
 font-size: 15px;
  
}
.sidebar__link ul li a{
  text-decoration: none;
  color: #f3f4f6;
  font-size: 13px;

  transition: 0.5s;
  transition-property: color;
}
.sidebar__link ul li a:hover{
  color: #3ea175;
  font-size: 14px;
}

.on 
{ 
 

}
.showhide{
   display: none;
    transition: 0.5s;
  transition-property: display; 
}
/*end of submenu or dropdown*/

.active_menu_link {
  background: rgba(62, 161, 117, 0.3);
  color: #3ea175;
}

.active_menu_link a {
  color: #3ea175 !important;
}

.sidebar__link > a {
  text-decoration: none;
  color: #a5aaad;
  font-weight: 700;
}

.sidebar__link > i {
  margin-right: 10px;
  font-size: 18px;
}
/*
.sidebar__logout {
  margin-top: 20px;
  padding: 10px;
  color: #e65061;
}

.sidebar__logout > a {
  text-decoration: none;
  color: #e65061;
  font-weight: 200;
  text-transform: uppercase;
}

.sidebar__logout > i {
  margin-right: 10px;
  font-size: 18px;
}*/

.sidebar_responsive {
  display: inline !important;
  z-index: 9999 !important;
  left: 0 !important;
  position: absolute;
}

@media only screen and (max-width: 978px) {
  .container_css {
    grid-template-columns: 1fr;
    /* grid-template-rows: 0.2fr 2.2fr; */
    grid-template-rows: 0.2fr 3fr;
    grid-template-areas:
      "nav"
      "main";
  }
/*kan waxa isticmala in dropdown la furo*/



  #sidebar {
    display: none;
  }

  .sidebar__title > i {
    display: inline;
  }

  .nav_icon {
    display: inline;
  }
}

@media only screen and (max-width: 855px) {
  .main__cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .charts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
}

@media only screen and (max-width: 480px) {
  .navbar__left {
    display: none;
  }
}
