@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* CSS VARIABLES */
:root {
  --purple-color: #924ee9;
  --text-color: #121212;
  --light-grey: #464545;
  --bg-grey: #f6f6f6;
}

/* DEFAULTS */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  font-size: 14px;
  background: var(--bg-grey);
  display: flex;
  justify-content: center;
}

header nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100vw;
  min-height: 100px;
  background: #ffffff;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 62px;
}
nav ul {
  display: inline-block;
}
nav ul li {
  display: inline-block;

  padding-left: 1rem;
}
nav ul li a {
  text-decoration: none;
  transition: 0.4s;
  color: var(--text-color);
}
nav ul li .signup {
  position: relative;
  top: 0;
  right: 0;
  font-weight: 600;
  padding: 0.875rem 1rem;
  font-size: 14px;
  color: white;
  margin: 0 20px;
  background: var(--purple-color);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}
nav ul li a:hover {
  opacity: 0.7;
}

/* SIDEBAR */
.nav-toggle.active {
  background: url(../images/navopen.png);
  background-repeat: no-repeat;
  background-position: center;
  min-width: 4px;
  height: 4px;
}
.nav-toggle {
  order: 2;
  margin-right: 1rem;
  background: url(../images/navtoggle.png);
  min-width: 3px;
  width: max-content;
  cursor: pointer;
  min-height: 30px;
  border-radius: 2px;
}

.sidebar {
  position: fixed;
  width: auto;
  display: flex;
  justify-content: start;
  align-items: center;
  /* height: ; */
  left: 0;
  background: #ffffff;
  min-height: 358px;
  transform: translateY(50%);
  border-radius: 0px 16px 16px 0px;
  box-shadow: 0px 4px 75px rgba(0, 0, 0, 0.08);
}
.sidebar .nav-item {
  position: relative;
}
.sidebar .nav-item.active a:hover .tooltip {
  display: none;
}
.sidebar .nav-item a:hover .tooltip {
  position: absolute;
}

.sidebar .nav-item a h4 {
  display: none;
}
.sidebar .nav-item.active a h4 {
  display: inline-block;
}
.sidebar .nav-item a .bx {
  font-size: 35px;
  font-weight: 400;
}
.sidebar .nav-items li {
  list-style: none;
  padding: 12px 20px;
}
.sidebar ul {
  padding: 4px 0;
}

.nav-item.active h4 {
  display: none;
}

/* .nav-toggle a {
  position: absolute;
} */
.sidebar .nav-items li a {
  border-radius: 4px;
  text-decoration: none;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(122, 122, 122);
  transition: 0.4s;
  column-gap: 12px;
}
.sidebar .nav-items li a:hover {
  background: #914ee92d;
  color: var(--purple-color);
}

/* RIGHT SIDE BTN */
.rightSideBtn {
  position: fixed;
  width: 95px;
  right: 60px;
  background: none;
  min-height: 400px;
  transform: translateY(40%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.rightSideBtn ul li {
  list-style: none;
  padding-bottom: 40px;
}
.rightSideBtn ul li a {
  text-decoration: none;
  transition: 0.3s;
  font-weight: 700;
  color: grey;
  font-size: 1.145rem;
  background: linear-gradient(89.03deg, #ffffff 18.04%, #fefefe 40.02%);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.03);
  padding: 18px 12px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  min-width: 175px;
}
.rightSideBtn ul li a:hover {
  transform: scale(1.04);
}
.rightSideBtn ul li a img {
  display: inline-block;
  max-width: 24px;
}

/* MID DASHBOARD */
.content {
  position: absolute;
  height: 100vh;
  z-index: -1;
  top: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  min-width: 880px;
  /* position: absolute; */
  position: relative;
  min-height: 100px;
  /* top: 270px; */
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
}
.container div {
  border-radius: 12px;
}

.container .header-stats {
  grid-column-start: 1;
  grid-column-end: 13;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.container .chart-body {
  grid-column: 1/7;
  grid-row: 2/5;
  background: #ffffff;
  padding: 20px;
}
.container .header-stats .info-text {
  display: flex;
  font-size: 18px;
  column-gap: 12px;
  color: #464545;
}

.container .header-stats .info-text i {
  font-size: 20px;
  padding: 6px;

  /* background: #914ee973; */
  border-radius: 4px;
}

.container .header-stats h3 {
  font-size: 32px;
  font-weight: 600;
  color: #646464;
}
.header-stats > * {
  position: relative;
}
.header-stats > * > .rating-badge {
  position: absolute;
  right: 0;
}

.info-text .bx-grid-alt {
  color: #0c8d6f;
  background: #11e2b179;
}
.info-text .bx-receipt {
  color: var(--purple-color);
  background: #b545ff56;
}
.info-text .bx-user {
  color: #094e8a;
  background: #1290ff71;
}
.info-text .bx-bar-chart-alt-2 {
  color: #c50b68;
  background: #e447957e;
}
.rating-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(1, 197, 181, 0.192);
  width: auto;
  border: 0.8px solid gray;
  max-width: 40px;
  height: 20px;
  /* width: auto; */
  padding: 0 3px;
  color: #0c8d6f;
}
.container .activities {
  grid-column: 7/13;
  grid-row: 2/4;
  background: #ffffff;
  padding: 30px 40px;
}
.container .activities ul li {
  list-style: none;
  display: flex;
  align-items: center;
  column-gap: 12px;
  padding: 20px 30px;
  font-size: 12px;
}
.container .activities ul li p span {
  font-weight: 600;
}
.activities {
  color: var(--light-grey);
}
.container .info {
  grid-column: 7/13;
  grid-row: 4/5;
  background: #ffffff;
}
.container .table-container {
  margin-top: 30px;
  grid-column-start: 1;
  grid-column-end: 13;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px 40px;
}
.table-container table {
  width: 100%;
}
.table-container h3 {
  font-size: 18px;
  color: var(--light-grey);
  padding-bottom: 30px;
}
.send:hover {
  background: rgba(171, 196, 249, 0.82);
  color: #357fff;
}
.copy:hover {
  background: linear-gradient(
    83.42deg,
    rgba(195, 255, 232, 0.55) 11.39%,
    #eafff7 69.98%
  );
  color: #20c49f;
}
.download:hover {
  background: linear-gradient(
    80.8deg,
    rgba(168, 255, 223, 0.6) 10.49%,
    rgba(231, 255, 242, 0.85) 64.1%
  );
  color: #20c49f;
}
.save:hover {
  background: linear-gradient(82.41deg, #ff81ff 11.04%, #ffbad9 75.17%);
  color: #b645ff;
}
.preview:hover {
  background: linear-gradient(64.51deg, #ff9860 19.54%, #ffe59a 53.39%);
  color: #fd5900;
}
.table-container table thead {
  width: 100%;
  background: #ffffff;
  box-shadow: 0px 4px 65px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.table-container table thead th {
  font-weight: 600;
  color: #464545;
}
.table-container table thead th:hover {
  cursor: pointer;
  opacity: 0.7;
}

th,
td {
  padding: 15px;
  text-align: left;
}
.toggle-btn {
  transition: 0.4s;
  height: 30px;
  width: 30px;

  background: url(../images/menu.png);
  display: none;
}

.user-img {
  border-radius: 50%;
  height: 30px;
  width: 30px;
  background: grey;
  overflow: hidden;
}

/* RESPONSIVE */

@media screen and (max-width: 991px) {
  /* body {
    /* background: red; */

  .content {
    /* top: 500px; */
    min-width: 80vw;
  }
  .toggle-btn {
    display: inline-block;
    position: absolute;
    left: 80%;
    top: 40%;
    background-repeat: no-repeat;
    cursor: pointer;
  }
  nav ul {
    transition: 0.4s;
  }
  .navigation {
    display: none;
    transition: ease-in 0.4s;
  }
  .toggle-btn.active {
    background: url(../images/close.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 30px;
    width: 30px;
  }

  nav {
    flex-direction: column;
    position: relative;
    justify-content: center;
  }
  .navigation.active {
    /* display: none; */
    display: flex;
    position: absolute;
    top: calc(100% + 20px);
    width: 90%;
    transition: 0.4s;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    min-height: 40vh;
    font-size: 18px;
    box-shadow: 0px 4px 75px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
  }

  .logo {
    display: flex;
    justify-content: flex-start;
    margin: 50px 0;
    width: 100%;
    /* flex-direction: row; */
  }
  .container {
    min-width: 80%;
  }
  .sidebar,
  .rightSideBtn {
    display: none;
  }
  .container {
    display: flex;
    transform: translateY(20%);
    /* flex-basis: 100%; */
    min-width: 80vw;
    flex-direction: column;
  }

  .container .header-stats {
    display: flex;
    flex-direction: column;
    /* width: 100%; */
    align-items: start;
    padding: 40px;
  }
  .container .header-stats > div {
    padding-right: 40px;
  }

  .container .header-stats > * {
    padding: 30px;
  }
  .table-container {
    min-width: 300px;
    width: 80vw;
    margin: 20px auto;
    overflow-x: scroll;
  }
  .rightSideBtn {
    position: fixed;
    display: flex;
    width: 100vw;
    right: 0;
    bottom: 0;

    /* right: 90px; */
  }
  .rightSideBtn ul {
    display: flex;
    flex: 1 1 100%;
    max-width: 100vw;
    width: 90vw;
    align-items: center;
    justify-content: space-between;
  }

  .rightSideBtn span {
    display: none;
  }
  .rightSideBtn ul li a {
    /* max-width: 40px; */
    width: 90px;
    background: rgb(236, 236, 236);
    /* border: 1px solid ; */
    min-width: 40px;
  }
}
