@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    padding: 0;
    margin: 0;
}




body {
   font-family: "DM Sans", sans-serif;
    background-color: #f5f5f5;
}


.admin-page-top-header {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:transparent;
}

.admin-page-top-header-left-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    height: 100%;
    width: 260px;
    border-right: 1.5px solid #e1e1e1;
}

.admin-page-top-header-left-side  i {
  margin-right: 30px;
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.admin-page-top-header-logo {
    width: 100px;
    padding: 20px;
}

.admin-page-top-header-search-bar {
    width: calc(98% - 260px);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
  /*  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; */

    
}

#all-filter-options-container-search-bar {
    display: none;
    position: absolute;
    max-height: 419px;
    width: calc(98% - 260px);
    background: #f1f1f1;
    border: 1.5px solid #e1e1e1;
    top: 70px;
    border-radius: 6px;
    overflow: hidden;
    list-style: none;
    z-index: 99;
    
}

li.each-filter-option-search-bar {
  padding: 10px 15px;
  border-bottom: 0.70px solid #e1e1e1;

}


li.each-filter-option-search-bar:hover {
  background: #f5f5f5;
  cursor: pointer;

}



.admin-page-top-header-search-bar-left-side {
  width: 50%;
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 10px;
 
}

.admin-page-top-header-search-bar-left-side i {
    position: absolute;
    left: 15px;
}

.admin-page-search-bar {
  width: 100%;
  height: 50px;
  padding: 0 30px 0 50px;
  outline: none;
  border: none;
  background: #fff;
}


.admin-page-top-header-search-bar-right-side {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}



.admin-page-top-header-search-bar-right-side i {
    margin-right: 20px;
    font-size: 16px;
    color: #000;
    cursor: pointer;
   
    
}

.admin-page-top-header-search-bar-right-side img {
    width: 35px;
    border-radius: 50%;
    margin-right: 20px;
    cursor: pointer;
}




/* //////////////////////////////////// side nevigation bar ///////////////////////////////// */

.admin-page-content-container {
  display: flex;
}

.admin-page-left-nav-bar {
  width: 260px;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid #e1e1e1;
  padding-bottom: 100px;
}

.admin-page,
.admin-page-sub-menu-item {
    width: calc(20 - 100%);
    height: 100%;
    padding: 15px 20px;
    list-style: none;
    color: #3f3f3f;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

.admin-page i {
    margin: 0 10px;
    font-size: 15px;
    
}

.admin-page-item {
    width: 100%;
    display: flex;
    justify-content: space-between;

    border-radius: 5px;

}

.admin-page-item.active {
    background: #e7e5e5;
    color: #3f3f3f;
    padding: 10px 0;
    margin: 5px 0;
}

.admin-page-item i {
    font-size: 15px;
    transition: 0.5s ease;
    
}

.admin-page-item i.active {
    transform: rotate(90deg);
}
.admin-page-sub-menu {
    width: 100%;
    max-height: 0; 
    overflow: hidden;
    opacity: 0;
    margin-top: 10px;
    transition: max-height 0.5s ease, opacity 0.5s ease; 
  }
  
  .admin-page-sub-menu.active {
    max-height: 1000px;
    opacity: 1; 
  }
  


.admin-page-sub-menu-item {
  padding: 10px 20px;
  margin: 5px 0;
  border-radius: 5px;
}

.admin-page-sub-menu-item:hover {
  background: #e7e5e5;
  cursor: pointer;
}

.admin-page-profile-setting {
  display: none;
  background: #fff;
  position: absolute;
  width: 200px;
  height: auto;
  margin-left: -165px;
  margin-top: 10px;
  border-radius: 5px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #e1e1e1;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  z-index: 99;
}

.admin-page-profile-setting.active {
  display: block; 
}

.admin-page-profile-setting-list {
  list-style: none;
  padding: 10px;
  color: #3f3f3f;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  border-radius: 2px;
}

.admin-page-profile-setting-list:hover {
  background: #e7e5e5;
 
}

.admin-page-analytic-container {
  width: calc(100% - 260px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-analytic-page-profile-congrats{
  width: 97.5%;
  height: 150px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #e1e1e1;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  overflow: hidden;
}

.admin-analytic-page-profile-congrats-left-side {
  margin: 0 20px;
}

.admin-analytic-page-profile-congrats-name-text {
  font-size: 17px;
  font-weight: 600;
  color: #ff990098;
  text-transform: capitalize;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
}

.admin-analytic-page-profile-congrats-text {
  width: 300px;
  line-height: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #747474d2;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.admin-analytic-page-profile-congrats-button {
  width: 120px;
  height: 35px;
  background: #ff9900;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  margin: 20px 0;
}

.admin-analytic-page-profile-congrats-right-side img {
  margin: 0 20px;
}

.admin-analytic-page-order-revenue-container {
  margin: 10px 0;
  width: 97.5%;
  height: auto;
  display: flex;
  overflow: hidden;
  gap: 10px;
}


.admin-analytic-page-order-statistics-container,
.admin-analytic-page-transactions-container,
.admin-analytic-page-all-orders-statistics-handler {
  width: calc(100% / 3);
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
}



.admin-analytic-page-order-statistics-header,
.admin-analytic-page-orders-with-graph,
.admin-analytic-page-order-each-product-revenue,
.admin-analytic-page-transaction-header,
.admin-analytic-each-payment-transactions {
  width: calc(100% - 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 20px;
  overflow: hidden;
}

.admin-analytics-page-order-statistics-header-text,
.admin-analytic-page-transactions-heading-text,
.admin-analytic-order-statistics-handler-with-graph-header-text {
  font-size: 17px;
  color: #404040;
  text-transform: capitalize;

}

.admin-analytics-page-order-statistics-header-total-text,
.admin-analytic-page-orders-with-graph-text,
.admin-analytic-order-statistics-handler-with-graph-header-total-text {
  font-size: 14px;
  color: #404040;
}

.admin-analytic-page-order-statistics-header,
.admin-analytic-sales-statistics-handler-header,
.admin-analytic-page-transaction-header i {
   color: #404040a9;
   cursor: pointer;
}

.admin-analytic-page-orders-with-graph-header {
  font-size: 20px;
  font-weight: 500;
  color: #404040;
}

#admin-analytic-page-orders-graph {
  width: 100px;
}
.admin-analytic-page-order-each-product-revenue,
.admin-analytic-each-payment-transactions {
  flex-direction: column;

}


.admin-analytic-page-per-product-revenue {
  width: 100%;
}

.admin-analytic-page-per-product-revenue-left-side {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 5px 0;
  position: relative;
  padding: 0 0 5px 0;
}





.admin-analytic-page-per-product-revenue-left-side i {
  padding: 7px 8px;
  background: #ff990093;
  border-radius: 3px;
  font-size: 18px;
  color: #fff;
}

.admin-analytic-page-per-product-revenue-left-side div {
  margin: 0 8px;
}

.admin-analytic-page-per-product-revenue-name {
  font-size: 14px;
  color: #404040;
  text-transform: capitalize;
}

.admin-analytic-page-per-product-revenue-text {
  font-size: 11px;
  color: #404040;
  text-transform: capitalize;
}

.admin-analytic-page-per-product-revenue-quantity {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #404040;
}


.admin-analytic-each-payment-transactions {
  margin-top: 30px;
}

.admin-analytic-page-all-orders-statistics-handler {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-statistic-handler-medium-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.admin-analytic-order-statistics-handler-with-graph,
.admin-analytic-sales-statistics-handler,
.admin-analytic-payment-statistics-handler,
.admin-analytic-revenue-statistics-handler {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  width: 100%;
}



.admin-analytic-order-statistics-handler-with-graph-header,
.admin-analytic-sales-statistics-handler-header,
.admin-analytic-sales-statistics-handler-sales-container,
.admin-analytic-sales-statistics-handler-sales-record  {
  width: calc(100% - 40px);
  margin: 20px 20px;
 }

.admin-analytic-order-statistics-handler-with-graph-header-total-text,
.admin-analytic-sales-statistics-handler-sales-text {
  font-size: 18px;
  color: #404040;
  text-transform: capitalize;
  margin: 7px 0;
}

#admin-analytic-order-statistics-handler-with-graph,
#admin-analytic-revenue-statistics-handler-with-graph {
  max-width: 100%;
  min-height: auto;
  margin:10px 20px;
}

.admin-analytic-sales-statistics-handler-header {
  display: flex;
  justify-content: space-between;
}

.admin-analytic-sales-statistics-handler-header i:nth-child(1) {
  font-size: 20px;
  padding: 5px 8px;
  background: #ff990093;
  color: #fff;
  border-radius: 3px;
}

.admin-analytic-sales-statistics-handler-sales-record {
  display: flex;
}


.admin-analytic-sales-statistics-handler-sales-record-text.green,
.admin-analytic-sales-statistics-handler-sales-record i.green {
  color: green;
  font-size: 18px;
}

.admin-analytic-sales-statistics-handler-sales-record-text.red,
.admin-analytic-sales-statistics-handler-sales-record i.red {
  color: #ff0000;
  font-size: 18px;
}


#left-nav-bar-admin-panel {
  display: none;
}



/* //////////////////////////////////// dark mode ///////////////////////////////// */
.dark-mode-body {
  background-color: #1a1a1a;
}

.bi-moon.dark-mode-button::before {
  content: "\F1D2"; /* This is your icon */
}

.admin-page-search-bar.dark-mode-search-bar,
.admin-page-left-nav-bar.dark-mode-left-nav-bar,
.admin-page-top-header-left-side.dark-mode-left-nav-bar,
.admin-page-left-nav-bar.dark-mode-left-nav-bar.active {
  background: #2c2c2c;
  color: #fff;
}

.admin-page.dark-mode-nav-bar-text,
.admin-page-sub-menu-item.dark-mode-nav-bar-text {
  color: #fff;
}

.admin-page-top-header-search-bar.dark-mode-top-bar {
background: #2c2c2c;
border: 1px solid #fff;
color: #e0e0e0;
}

.admin-page-top-header-search-bar-right-side.dark-mode-right-side i,
.admin-analytic-page-profile-congrats-text.dark-mode-congrats-container-text {
color: #e0e0e0;
}


.admin-analytic-page-profile-congrats.dark-mode-congrats-container {
background: #2c2c2c;
color: #e0e0e0;
}

.admin-analytic-page-order-statistics-container.dark-mode-analytic-container,
.admin-analytic-page-transactions-container.dark-mode-analytic-container {
background: #2c2c2c;
color: #e0e0e0;
}

.admin-analytics-page-order-statistics-header-text.dark-mode-analytic-container-text,
.admin-analytic-page-orders-with-graph-header.dark-mode-analytic-container-text,
.admin-analytic-page-orders-with-graph-text.dark-mode-analytic-container-text,
.admin-analytics-page-order-statistics-header-total-text.dark-mode-analytic-container-text,
.admin-analytic-order-statistics-handler-with-graph-header-text.dark-mode-analytic-container-text,
.admin-analytic-page-per-product-revenue-name.dark-mode-analytic-container-text,
.admin-analytic-page-per-product-revenue-text.dark-mode-analytic-container-text,
.admin-analytic-page-per-product-revenue-quantity.dark-mode-analytic-container-text,
.admin-analytic-page-transactions-heading-text.dark-mode-analytic-container-text,
.admin-analytic-order-statistics-handler-with-graph-header.dark-mode-analytic-container-text h2, 
.admin-analytic-order-statistics-handler-with-graph-header.dark-mode-analytic-container-text p,
.admin-analytic-sales-statistics-handler-sales-container.dark-mode-analytic-container-text h2, 
.admin-analytic-sales-statistics-handler-sales-container.dark-mode-analytic-container-text p {
  color: #fff;

}

.admin-statistic-handler-medium-container.dark-mode-analytic-container div {
  background: #2c2c2c;
}

#all-filter-options-container-search-bar.dark-mode-search-bar-filter-container  {
  background: #515151;
  color: #e0e0e0;
  }





/* //////////////////////////////////// ///////////////////////////////////////// */


@media (max-width: 1250px) {


  .admin-page-top-header-left-side {
    height: 100px;
    position: absolute;
    z-index: 999;
    left: -100%;
    width: 250px;
    transition: 1s ease-in-out;
  }

  .admin-page-left-nav-bar  {
    position: absolute;  
    left: -100%;   
    height: 100%;
    width: 251px;
    background: #fff;
    border-right: 0;
    z-index: 999;
    transition: 1s ease-in-out;
  }

  .admin-page-left-nav-bar.active,
  .admin-page-top-header-left-side.active {
    left: 0;
  
  }

  
.admin-page-top-header-left-side  i {
  display: block;
}

.admin-page {
  height: auto;
  background: #fff;
  border-right: 1.5px solid #e1e1e1;
    
}


  .admin-page-analytic-container {
    width: 98.5%;
  }

  .admin-page-top-header-search-bar {
    width: 93.4%;
    margin-left: 65px;
  }
  #left-nav-bar-admin-panel {
    display: block;
  }
}

@media (max-width: 1205px) {
  .admin-page-top-header-search-bar {
    width: 93.3%;
  }
}

@media (max-width: 1150px) {
  .admin-page-top-header-search-bar {
    width: 93%;
  }
}

@media (max-width: 1120px) {
  .admin-page-top-header-search-bar {
    margin-left: 63px;
  }
}

@media (max-width: 1100px) {
  .admin-page-top-header-search-bar {
    width: 92.5%;
  }
}

@media (max-width: 1000px) {
  .admin-page-top-header-search-bar {
    width: 92.2%;
  }
}

@media (max-width: 950px) {
  .admin-page-top-header-search-bar {
    width: 92.1%;
    margin-left: 62px;
  }
}


@media (max-width: 900px) {
  .admin-page-top-header-search-bar {
    width: 91.7%;
  }
}