@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
:root {
  --base-clr: #27374d;
  --main-clr: #526d82;
  --line-clr: #9db2bf;
  --hover-clr: #526d82;
  --text-clr: #e6e6ef;
  --texthead-clr: #e6e6ef;
  --accent-clr: #bd760a;
  --secondary-text-clr: #27374d;
}
* {
  margin: 0;
  padding: 0;
}

html {
  font-family: "Poppins", sans-serif;
  line-height: 1e;
}

body {
  background-color: var(--text-clr);
  color: var(--base-clr);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0;
}
.texthead {
  color: var(--texthead-clr);
  font-size: 20px;
}

svg {
  fill: var(--text-clr);
}

#sidebar {
  box-sizing: border-box;
  height: 100vh;
  width: 250px;
  padding: 5px 1em;
  background-color: var(--base-clr);
  border-radius: 1px solid var(--line-clr);
  border-right: 1px solid var(--line-clr);

  position: sticky;
  top: 0;
  align-self: self-start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
}
#sidebar.close {
  padding: 5px;
  width: 60px;

  > #userdp{
    display: none;
  }
}
#sidebar ul {
  list-style: none;
}
#sidebar > ul > li:first-child {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  .logo {
    font-weight: 500;
  }
}
#sidebar ul li.active a {
  color: var(--accent-clr);
  svg {
    fill: var(--accent-clr);
  }
}

#sidebar a,
#sidebar .dropdown-btn,
#sidebar .logo {
  border-radius: 0.5em;
  /* padding: 0.5em 0.5em 0.5em 0.88em; */
  padding: 0.3em 0.5em 0.3em 0.88em;
  text-decoration: none;
  color: var(--text-clr);
  display: flex;
  align-items: center;
  gap: 1em;
}

.dropdown-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

#sidebar svg {
  flex-shrink: 0;
  fill: var(--line-clr);
}

#sidebar a span,
#sidebar .dropdown-btn span {
  flex-grow: 1;
  
  color: #90a3a7;
}
#sidebar a:hover,
#sidebar .dropdown-btn:hover {
  background-color: var(--hover-clr);
}

#sidebar .sub-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: 400ms ease-in-out;
  font-size: 12px;

  > div {
    overflow: hidden;
  }
  
}
#sidebar .sub-menu.show {
  grid-template-rows: 1fr;
}

.dropdown-btn svg {
  transition: 200ms ease;
}
.rotate svg:last-child {
  rotate: -180deg;
}

#sidebar .sub-menu a {
  padding-left: 3em;
}

#toggle-btn {
  margin-left: auto;
  padding: 1em;
  border: none;
  border-radius: 0.5em;
  background: none;
  cursor: pointer;

  svg {
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover {
  background-color: var(--hover-clr);
}

main p {
  color: var(--main-clr);
  margin-top: 5px;
  margin-bottom: 15px;
}
.header {
  padding: 20px 19px 10px 21px;

  background-color: var(--main-clr);
  border-bottom: 1px solid var(--accent-clr);
  box-shadow: 0 4px 4px 2px;
}
.right-float {
  float: right;
  font-size: 16px;
}
.container {
  border: 1px solid var(--text-clr);
  border-radius: 5px;
  padding: 10px 20px 10px 20px;
  background-color: #fff;

  margin: 25px 20px 0px 18px;
  overflow: auto;

  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  
  z-index: 1;
}
.containerbody {
  border: 1px solid var(--text-clr);
  border-radius: 5px;
  padding: 10px 20px 20px 20px;
  background-color: #fff;

  margin: 15px 20px 0px 18px;
  overflow: auto;

  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 5px rgba(1, 59, 73, 0.5);

}
.containerbtn {
  border: 1px solid var(--text-clr);
  border-radius: 5px;
  padding: 15px 20px 15px 20px;
  background-color: #fff;

  margin: 15px 20px 0px 18px;
  overflow: auto;

  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 5px rgba(1, 59, 73, 0.5);

  > a.myActionButton {
    float: right;
    margin-right: 3px;
  }
}

.actionBtn {
  padding: 10px 20px;
}

.copyright {
  width: 100%;
  overflow: auto;
  color: #27374d;

  > p {
    font-size: small;
    text-align: center;
    margin: 0 20px; 
  }
}

.soma,
.hide {
  display: none;
}

.secondary-nav {
  position: absolute;
  bottom: 20px;
  width: 87%;
}

#userdp {
  position: relative;
}

#user-dp {
  display: block;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  border: 5px solid var(--line-clr);
}

.space {
  margin-right: 5px;
}

th,td{
  padding: 0 5px;
}

thead tr{
  background-color: #b7bdc0;
  padding: 0 5px;
}
tr:nth-child(even){
  background-color: #f1eded;
}

tbody tr:hover{
  background-color: #e2e0df;
}

th{
  border-top: 1px solid #88888a;
  border-bottom: 1px solid #88888a;
}

tr:last-child{
  border-bottom: 1px solid #88888a;
}

svg.updateicon{
  fill:  #033b55;
  margin-right: 5px;
}
svg.delicon{
  fill:   #92152a;
}
.tbresponsive{
  overflow-x: auto;
}

.showAnalytics{
  display: block;
}
.hideAnalytics{
  display: none;
}



@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
  }
  main {
    /* padding: 2em 1em 50px 1em; */
    padding: 0;
  }
  .container,
  .containerbtn,
  .containerbody {
    border: none;
    padding: 10px;
    margin: 5px;
  }

  /* .copyright{
    width: 100%;
    
    p{
      text-align: center;
      margin: 10px;
    }
  } */

  #sidebar {
    height: 60px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-clr);
    padding: 0;
    align-content: center;
    position: fixed;
    top: unset;
    bottom: 0;

    > ul {
      padding: 0;
      display: grid;
      grid-auto-columns: 60px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: auto;
    }
    ul a,
    ul .dropdown-btn {
      width: 60px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }

    ul li span,
    ul li:first-child,
    .dropdown-btn svg:last-child {
      display: none;
    }

    ul li .sub-menu.show {
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--hover-clr);
      border-top: 1px solid var(--line-clr);
      display: flex;
      justify-content: center;

      > div {
        overflow-x: auto;
      }

      li {
        display: inline-flex;
      }
      a {
        box-sizing: border-box;
        padding: 1em;
        width: auto;
        justify-content: center;
      }
    }

    .soma {
      display: inline-flex;
    }

    .secondary-nav,
    #userdp,
    #space {
      display: none;
    }
  }
}
