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

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
}

:root {
  --main-color: #5d3fd3;
}

body {
  background: #5d3fd30f;
}

nav {
  display: flex;
  justify-content: space-between;
  height: 80px;
  box-shadow: 0px 3px 5px 1px #0000001a;
  align-items: center;
  background: #fff;
}

nav .logo {
  font-weight: 600;
  font-size: 25px;
  margin-left: 25px;
}

nav .logo span {
  color: var(--main-color);
}

.nav-links .nav-link {
  margin: 0 30px;
  display: inline-block;
  position: relative;
  font-weight: 600;
  color: #000;
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--main-color);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-links .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-links .nav-link.active {
  border-bottom: 2px solid var(--main-color);
}

.btn {
  padding: 7px 15px;
  outline: none;
  border-radius: 5px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  background: var(--main-color);
  transition: all 0.3s ease;
}

.btn:hover {
  opacity: 0.7;
}

nav .btn {
  margin-right: 25px;
}

article {
  width: 90%;
  margin: 0 auto;
  display: flex;
}

.tests,
.grades {
  width: 100%;
}

article h1 {
  margin: 40px 0;
  font-size: 28px;
}

article .tests .test-box {
  background: #fff;
  width: 85%;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 3px 5px 1px #0000001a;
}

.tests h4 {
  color: rgb(149, 149, 149);
  font-weight: 500;
  margin: 5px 0;
}

.tests h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.date,
.time {
  display: flex;
  align-items: center;
  color: rgb(97, 97, 97);
}

.date i,
.time i {
  color: var(--main-color);
  margin-right: 10px;
}

.date {
  margin-bottom: 10px;
}

.grades h4 {
  color: rgb(149, 149, 149);
  font-weight: 500;
  margin-bottom: 10px;
}

article .grades .progress-container {
  display: flex;
}

article .grades .progress-box {
  background: #fff;
  width: 100%;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 3px 5px 1px #0000001a;
  display: flex;
}

.grades .progress-box:nth-child(1) {
  margin-right: 40px;
}

.grades .progress-nums,
.grades .bar {
  width: 100%;
}

.grades .bar {
  display: flex;
  justify-content: center;
  margin-left: 30px;
}

.bar .circular-progress {
  position: relative;
  height: 75px;
  width: 75px;
  background: conic-gradient(var(--main-color) 3.6deg, #ededed 0deg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar .circular-progress-2 {
  position: relative;
  height: 75px;
  width: 75px;
  background: conic-gradient(var(--main-color) 3.6deg, #ededed 0deg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grades .circular-progress::before,
.grades .circular-progress-2::before {
  content: "";
  position: absolute;
  height: 66px;
  width: 66px;
  background-color: #fff;
  border-radius: 50%;
}

.circular-progress .progress-value,
.circular-progress-2 .progress-value {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--main-color);
}

.chartBox {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 3px 5px 1px #0000001a;
  width: 100%;
  margin-top: 60px;
}

#myChart {
  width: 100%;
}
