* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}
:root {
  --bg: #fafafa;
  --green: #34caa5;
  --light-green: #15e0ee;
  --white: #ffffff;
  --border: #dadddd;
  --heading-clr: #26282c;
  --graph-dark: #090c2c;
  --dark-text-clr: #3a3f51;
  --light-text-clr: #787486;
  --red: #ed544e;
  --gold: #ffb74a;
  --blue: #54c5eb;
  --purple: #6160dc;
}
body[light-mode="light"] {
  background-color: white;
  color: var(--graph-dark);
}
body[light-mode="dark"] {
  background-color: var(--graph-dark);
  color: var(--bg);
}

/* Mobile Style */
.nav__small {
  min-height: 78px;
  display: flex;
  padding-top: 1.125rem;
  padding-inline: 0.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.right__div .nav__small div {
  display: flex;
  width: 100%;
  padding-inline: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  justify-content: space-between;
}
.right__div .nav__small p {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.right__div .nav__small .hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hamburger span {
  width: 30px;
  background: var(--heading-clr);
  height: 5px;
}
body[light-mode="dark"] .hamburger span {
  background: var(--bg);
}
.overlay {
  width: 0%;
  height: 100vh;
  position: absolute;
  inset: 0;
  z-index: 5;
}
.overlay__bg {
  background: rgba(0, 0, 0, 0.5);
  width: 0;
  right: 0;
  top: 0;
  height: 100%;
  position: absolute;
}
.overlay.open {
  width: 100%;
}
.overlay.open .overlay__bg {
  animation: slide-in 0.5s linear forwards;
}
.overlay__bg.close {
  animation: slide-out 0.4s linear forwards !important;
}
@keyframes slide-in {
  to {
    width: 80%;
  }
}
@keyframes slide-out {
  from {
    width: 80%;
  }
  to {
    width: 0%;
  }
}
.overlay .sidebar {
  width: 0px;
  padding: 20px 0px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-right: 1px solid #ebecf2;
  background: #f7f8fa;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
}
.sidebar .mode {
  display: flex;
  padding: 8px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  background: #fff;
  margin-bottom: 5rem;
}
.sidebar .mode div {
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.overlay.open .sidebar {
  animation: expand 0.5s linear 0.2s forwards;
}
.sidebar.close {
  animation: close 0.3s linear forwards !important;
}
.close__menu {
  position: absolute;
  top: 10px;
  left: 0%;
  display: none;
}
.overlay.open .close__menu {
  display: block;
}
@keyframes expand {
  to {
    width: 80px;
  }
}
@keyframes close {
  from {
    width: 80px;
  }
  to {
    width: 0px;
  }
}
.base__div {
  /* display: flex; */
  display: none;
  position: fixed;
  width: 95%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #e5eaef;
  min-height: 50px;
  bottom: 3%;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.85rem;
  padding-top: 0.5rem;
  justify-content: space-between;
}

.notification {
  display: flex;
  flex-wrap: wrap;
  width: 60px;
  height: 60px;
  padding: 11px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 27px;
  border: 0.769px solid #dadddd;
}

.nav__form {
  background: var(--white);
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  max-width: 500px;
  padding: 0.4rem;
  padding-left: 16px;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.nav__form input {
  outline: none;
  border: none;
  padding-top: 0.05rem;
}
.base__div .nav__form {
  padding-block: 0.5rem;
}
.base__div .nav__form input {
  flex-grow: 1;
}
.nav__form label {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__form input::placeholder {
  color: #a3a3a3;
  font-family: Inter;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
@media screen and (max-width: 301px) {
  .nav__form {
    order: 3;
  }
}
/* End Of mobile size */

nav.nav__large {
  display: none;
  padding: 0.5rem;
  height: 78px;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}
nav .right__div__large {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
aside {
  display: none;
  width: 80px;
  padding: 20px 0px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-right: 1px solid #ebecf2;
  background: #f7f8fa;

  height: 100vh;
}
body[light-mode="dark"] aside {
  border-right: 1px solid var(--graph-dark);
  background: var(--graph-dark);
}
.second__img {
  margin-top: 0.25rem;
}
aside .mode {
  display: flex;
  padding: 8px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  background: #fff;
  margin-bottom: 3rem;
}
aside .mode div {
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__large form {
  width: 351px;
  flex-grow: 0;
  height: 48px;
}

.nav__heading {
  color: var(--heading-clr);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
}
body[light-mode="dark"] .sales__trend,
body[light-mode="dark"] .nav__heading {
  color: #fafafa;
}
.nav__large p.date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.nav__large span.date {
  color: #26282c;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
body[light-mode="dark"] .nav__large span.date {
  color: #fafafa;
}
.user__profile {
  display: flex;
  padding: 6px 8px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 28px;
  border: 1px solid var(--border);
}
.user__profile p span {
  display: block;
}
span.user__name {
  color: #26282c;
  text-align: right;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0.25rem;
}

body[light-mode="dark"] .nav__large span.date,
body[light-mode="dark"] span.user__name {
  color: #fafafa;
}
span.user__email {
  color: #787486;
  text-align: right;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
body[light-mode="dark"] .nav__large span.date,
body[light-mode="dark"] span.user__email {
  color: #fafafa;
}
@media screen and (min-width: 1014px) {
  nav.nav__large,
  aside {
    display: flex;
  }
  .base__div,
  .nav__small {
    display: none;
  }
  .container {
    display: grid;
    grid-template-columns: 80px auto;
  }
  .notification {
    width: 40px;
    height: 40px;
  }
}
/* ////////////////////////////// GRAPH SECTION //////////////////////////////*/
/* .graph__section {
  padding: 1rem 0.75rem;
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  display: grid;
  gap: 1rem;
  grid-template-columns: 4fr 3fr;
  align-items: stretch;
}
@media screen and (max-width: 930px) {
  .graph__section {
    grid-template-columns: auto;
  }
}

.graph__container {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 0.5rem;
  padding-bottom: 1rem;
  display: grid;
  max-width: 100%;
  max-width: 900px;
  border: 1px solid #edf2f7;
}

.graph__container__header {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}
.sales__trend {
  color: #26282c;
  font-size: 1.125rem;
  font-weight: 600;
}

.sort__by {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  color: #3a3f51;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 22px;
}
.sort__by span:first-child {
  color: #3a3f51;
}
.sort__by span:last-child {
  margin-bottom: 0.5rem;
  display: flex;
  padding: 6px 12px;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  border: 1px solid #e1dfdf;
  background: #fff;
}

@media screen and (min-width: 400px) {
  .graph__container__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .sort__by span:last-child {
    margin-bottom: 0;
  }
}
.lines {
  height: 25px;
  position: relative;
}

.lines::after {
  content: "";
  bottom: 0;
  position: absolute;
  width: calc(100% - 70px);
  transform: translateX(70px);
  height: 0;
  border-bottom: 1px dashed #eaeaea;
}

.lines span {
  position: absolute;
  left: 0px;
  z-index: 10;
  bottom: -5px;
}
.child {
  position: absolute;
  width: 5%;
  max-width: 50px;
  height: calc(var(--height) / 1.15);
  bottom: 0;
  left: calc(100% * var(--left) / 14);
  transform: translateX(70px);
  background: #ebfaf6;
  border-top-right-radius: 50px;
  border-top-left-radius: 50px;
}
@media screen and (min-width: 931px) {
  .child {
    height: calc(var(--height) * 1.8);
  }
}
@media screen and (min-width: 1250px) {
  .child {
    height: calc(var(--height) * 1.7);
  }
}
@media screen and (min-width: 1280px) {
  .child {
    height: calc(var(--height) * 1.5);
  }
}
.child:hover {
  background: linear-gradient(white #34caa5);
  transition: background-color 0.3s linear;
}
.child span {
  position: absolute;
  bottom: -20px;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
}
@media screen and (max-width: 509px) {
  .graph__container {
    overflow-x: scroll;
  }
  .child {
    width: 6%;
  }
  .child span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    bottom: -32px;
  }
  .lines::after {
    width: calc(100% - 40px);
  }
}
.chart-container {
  position: relative;
  width: 600px;
  margin: auto;
} */

/* cards section */
/* 
.finance__cards {
  display: grid;
  max-width: 100%;
  grid-template-columns: auto auto;
  gap: 1rem;
}
@media screen and (max-width: 430px) {
  .finance__cards {
    grid-template-columns: 1fr;
  }
}
.card {
  padding: 1rem 0.5rem;
  background: white;
  border: 2px slid red;
  border-radius: 14px;
}
.card p:has(span) {
  color: #898989;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 26px;
  margin-block: 0.5rem;
}
.card > p:has(span) span {
  color: #3a3f51;
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 32px;
}
.order .header,
.refund .header,
.sales .header,
.income .header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.order span:has(img) {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0.714px solid #e6e6e6;
  border-radius: 50%;
}
.footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer > p:has(img) {
  display: flex;
  padding: 4px 8px;
  align-items: center;
  gap: 4px;
  border-radius: 1000px;
  background: rgba(52, 202, 165, 0.12);
}
.footer > p:has(img).red {
  background: rgba(237, 84, 78, 0.12);
}

.footer > p:has(img) span {
  margin-left: 0.5rem;
  color: #34caa5;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 16px;
}
.footer > p:has(img).red span {
  color: #ed544e;
}
footer > p:last-of-type {
  color: #606060;
  font-family: Inter;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: normal;
} */
