/* Base */

*,
*::after,
*::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Time New Roman", sans-serif;
}


body {

  background: #d5acbc;
  color: #927685;
}

html {
  font-size: 62.5%;
  /* = 10px = 1rem */
}

.dashboard {
  max-width: 100%;
  min-height: 100%;
  background: #f0f0f0;
  /* background: #333; */
  /* margin: 5rem auto; */
  display: flex;
  overflow-x: hidden;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.flex-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  cursor: pointer;
  margin: 2.5rem 0;
}

/* 
.heading {
  font-size: 1.8rem;
  color: #fcfcfc;
  font-weight: 500;
  text-align: left;
} */

.heading {
  color: #1e1e1e;
  font-size: 2vw;
  font-weight: 700;
}

.top-selling-products th {
  border-radius: 20px;
  font-size: 1.8vw;
  color: #1e1e1e;
  padding: 10px 8px;
}

.top-selling-products td {
  padding: 10px 8px;
  font-size: 1.4vw;
  color: #1e1e1e;
}

/* End Base */

.menu {
  flex: 0 0 8%;
  /* min-height: 80rem; */
  background: #ff5151;
  justify-content: space-between;
  padding: 2rem;
}

.menu .icon:hover,
.menu .logo .icon {
  background: linear-gradient(to right bottom, #faad72, #f89456);
  color: #2c1923;
  border-radius: 2px;
  transition: all 0.6s ease-out;
}

/* Menu */

.content {
  flex: 1;
  display: flex;
}

/* Main Content */
.main-content {
  padding: 3rem;
  width: 76%;
}

.head {
  justify-content: space-between;
}

.head h1 {
  flex: 1;
  font-size: 2.2rem;
  font-weight: 600;
  color: #1e1e1e;
}

.box {
  padding: 10px;
  /*background: #33202c;*/
  background: #333;
  font-size: 1.8rem;
  font-weight: 500;
  color: #e6e3e5;
  cursor: pointer;
}

.box .angle {
  margin-left: 10px;
}

.time-period {
  margin-right: 2rem;
}

.backto {
  color: #fff;
  background-color: #ff5e3a;
  border-radius: 1rem;
  padding: 0.5rem 2rem;
  border: none;
}

.backto:hover {
  background: linear-gradient(to right bottom, #faad72, #f89456);
  transition: 0.5s ease-in;
}

/* Stats */
.stats {

  margin-top: 4rem;
  /* background-color: blue; */
  padding: 2rem 1rem;
  font-size: 1.6rem;
  width: auto;
  justify-content: space-between;
}

.stats-box {
  /* min-height: 15rem; */
  width: 40vw;

  padding: 2rem 1rem;

}

.stats-box .heading {
  margin-bottom: 2rem;
}

.sales {
  background: #d1d1d1;
  flex: 0 0 60%;
  margin-top: 2vh;
  margin-bottom: 2vh;
  border-radius: 20px;
}

.earning {
  background: #d1d1d1;
  width: 38%;
  border-radius: 20px;
}

.earning-amount {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}

.earning-icon {
  font-size: 4rem;
  color: #3f2532;
  border-radius: 20px;
  background: linear-gradient(to right bottom, #faad72, #f89456);
  padding: 15px;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Product Sales */
.product-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-top: 5rem;
}

.product-stats .stats-box {
  border-radius: 20px;
  background: #d1d1d1;
}

.product-sales {
  width: 20vw;
  height: fit-content;
  /* min-width: 500px; */
  /* border: 2px solid red; */
  /* margin: 5vw; */
}

.top-selling {
  width: 30vw;
  height: fit-content;
  /* min-width: 700px; */
}

.top-selling-products {
  text-align: left;
  font-size: 1vw;
  padding: 7px 0;
}

.top-selling-products th,
.top-selling-products td {
  padding: 10px 8px;
}

.product-name {
  justify-content: flex-start;
}

.product-name p {
  margin-left: 10px;
}

.product-name .icon {
  margin: 0;
  background: #91ff8b;
  border-radius: 50%;
  color: red;
  font-size: 3rem;
}

.product-name.iphone .icon {
  background: #f89456;
}

.product-name.windows .icon {
  background: #dc9afc;
}

/* End Product Sales */

/* End Stats */

/* End Main Content */

/* Profile */
.profile {
  background: linear-gradient(to right bottom, #ffecdd, #eb8888);
  padding: 2rem;
  flex: 1;
  border-radius: 20px;
}

.title {
  justify-content: space-between;
}

.user {
  color: #fff;
  text-align: center;
  margin: 3rem 0 5rem 0;
}

.user img {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto;
}

.user h2 {
  font-size: 2rem;
  margin: 8px 0;
}

.user p {
  color: #ccc;
}

.activities {
  margin: 10px 0;
  font-size: 14px;
}

.activity {
  justify-content: flex-start;
  font-size: 14px;
  margin: 2rem 0;
}

.activity h2 {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}

.task {
  margin: 0 5px;
}

.task p, .task h2 , .flex-c{
  color: #1e1e1e;
}

.time {
  margin-top: 4px;
}

.activity .icon {
  font-size: 3rem;
  width: 40px;
  height: 40px;
  background: #33202c;
  margin: 0 5px 5px 5px;
  border-radius: 50%;
  color: #faad72;
}

.upgrade {
  width: 100%;
  margin: 5rem auto 0 auto;
  background: #33202c;
  padding: 2rem;
  color: #ccc;
  text-align: center;
  font-size: 14px;
}

.upgrade .icon {
  font-size: 8rem;
}

.btn {
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(to right bottom, #ff7207, #f73c17);
  padding: 2rem 0;
  color: #fff;
  border-radius: 20px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover{
  background: linear-gradient(to right bottom, #f77d1f, #ff4d29);
}

/* End Profile */

/* Responsive */
@media (max-width: 1200px) {
  .dashboard {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .product-sales {
    width: 50vw;
    font-size: 20px;
    margin-bottom: 2vh;
  }

  .top-selling {
    width: 50vw;
  }


  .top-selling-products th {
    font-size: 20px;
  }

  .top-selling-products th,
  .top-selling-products td {
    padding: 10px 8px;
  }

}


/* ==================================== */
@media (max-width: 1180px) {
  html {
    font-size: 50%;
  }

  .product-sales {
    width: 50vw;
  }

  .heading {
    color: #1e1e1e;
    font-size: 3vw;
    font-weight: 700;
  }

  .top-selling-products th {
    font-size: 3vw;
    color: #1e1e1e;
    padding: 10px 8px;
  }

  .top-selling-products td {
    padding: 10px 8px;
    font-size: 2.3vw;
    color: #1e1e1e;
  }
}


/* ================================= */

@media (max-width: 1050px) {
  html {
    font-size: 50%;
  }

  .product-sales {
    width: 50vw;
  }

  .stats-box {
    justify-content: center;
  }

  .sales {
    width: 40vw;
  }

  .earning {
    width: 40vw;
  }

  .top-selling-products th {
    font-size: 20px;
  }

  .top-selling-products th,
  .top-selling-products td {
    padding: 10px 8px;
  }
}

/* ================================== */

@media (max-width: 1000px) {
  .content {
    flex-direction: column;
  }


  .profile {
    width: 40%;
    margin: 3rem auto;
  }

  .main-content {
    width: 100%;
  }

  .title,
  .upgrade {
    display: none;
  }

  .activity {
    justify-content: center;
  }

  .btn {
    width: 60%;
  }


  .top-selling-products th {
    font-size: 20px;
  }

  .top-selling-products th,
  .top-selling-products td {
    padding: 10px 8px;
  }


}

/* ============================ */
@media (max-width: 850px) {
  .menu {
    width: 100%;
    flex-direction: row;
    position: absolute;
    height: 80px;
    min-height: 80px;
  }


  .navigation {
    display: flex;
  }

  .navigation .icon {
    margin: 0 10px;
  }

  .product-sales {
    width: 50vw;
  }

  .content {
    margin-top: 85px;
  }
}

@media (max-width: 750px) {
  .stats {
    flex-direction: column;
    background: none;
  }


  .earning {
    width: 100%;
    margin: 20px 0;
    background: #d1d1d1;
  }

  .sales {
    width: 100%;
    margin: 20px 0;
    background: #d1d1d1;
  }

  .stats-box {
    width: 70%;
  }

  .profile {
    width: 60%;
  }
}

@media (max-width: 650px) {

  .navigation,
  .settings {
    display: none;
  }

  .menu {
    justify-content: center;
  }

  .main-content {
    padding: 1rem;
  }

  .product-stats {
    flex-direction: column;
  }

  .product-sales,
  .top-selling {
    width: 95%;
    padding: 2rem 4rem;
    margin: 20px auto;
  }

  .product-sales {
    width: 60%;
  }
}

@media (max-width: 550px) {

  .product-sales,
  .top-selling {
    width: 100%;
  }

  .product-name .icon {
    display: none;
  }

  .profile {
    width: 85%;
  }

  .menu {
    min-height: 60px;
    height: 60px;
  }
}

@media (max-width: 300px) {
  html {
    font-size: 35%;
  }
}

/* End  Responsive */


/* ================================ */

::-webkit-scrollbar {
  width: 8px;
  /* height: 10px; */
  background-color: rgb(255, 255, 255);
}

::-webkit-scrollbar-track {

  border: 5px solid transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--btn-gradient);
  border-radius: 10px;
}

::-webkit-scrollbar-track-piece {
  /* border: 10px solid black; */
  background-color: rgb(255, 255, 255);
  border: 7px solid transparent;
  background-clip: content-box;
  /* color:aqua; */
}
