* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  text-decoration: none;
  list-style: none;
  appearance: none;
}

/* Estilos generales */
body {
  width: 100vw;
  height: 100vh;
  font-size: .7rem;
  
  overflow-x: hidden;
  background: #181a1e; /* Reemplazado var(--clr-color-background) */
  font-family: 'Poppins', sans-serif;
}

.container {
  display: grid;
  width: 96%;
  gap: 1.8rem;
  grid-template-columns: 14rem auto 16rem;
  margin: 0 auto;
}

a {
  color: #7d8da1; /* Reemplazado var(--clr-dark) */
}

h1 {
  font-weight: 800;
  font-size: 2rem;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 0.87rem; /* Corregido para que sea una unidad */
}

h4 {
  font-weight: 0.8rem; /* Esto es inusual, 'font-weight' espera un número o palabra clave (bold, normal, 500, etc.), no una unidad de tamaño. Asumiendo que quisiste decir 'font-size' */
  font-size: 0.8rem; /* Se cambió a font-size si esa era la intención */
}
h5 {
  font-size: 0.77rem;
}
small {
  font-size: 0.75rem;
}
.profile-photo img {
  width: 2.8rem;
  height: 2.8rem;
  overflow: hidden;
  border-radius: 50%;
}
.text-muted {
    color: #7d8da1; /* Reemplazado var(--clr-info-dark) */
}
p {
    color: #677483; /* Reemplazado var(--clr-dark-variant) */
}
b {
    color: #363949; /* Reemplazado var(--clr-dark) */
}
.primary {
    color: #7380ec; /* Reemplazado var(--clr-primary) */
}

.success {
    color: #41f1b6; /* Reemplazado var(--clr-success) */
}

.danger {
    color: #ff7782; /* Reemplazado var(--clr-danger) */
}

.warning {
    color: #ff4edc; /* Reemplazado var(--clr-warnig) */
}


/* aside */
aside {
  height: 100vh;
}
aside .top {
  background: #202528; /* Reemplazado var(--clr-white) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
}

aside .logo {
  display: flex;
  gap: 1rem;
}
aside .logo img {
  width: 2rem;
  height: 2rem;
}
aside .top div.close span {
  display: none;
}

/* ===================
Sidebar
================== */

aside .sidebar {
  background: #202528; /* Reemplazado var(--clr-white) */
  display: flex;
  flex-direction: column;
  height: 86vh;
  position: relative;
  top: 1rem;
}

aside h3 {
    font-weight: 500;
}

aside .sidebar a {
  display: flex;
  color: #7d8da1; /* Reemplazado var(--clr-info-dark) */
  margin-left: 2rem;
  gap: 1rem;
  align-items: center;
  height: 3.3rem;
  transition: all .1s ease;
}

aside .sidebar a span {
    font-size: 1.6rem;
    transition: all .3s ease-in-out;
}

aside .sidebar a:last-child {
    position: absolute;
    bottom: 1rem;
    width: 100%;
}

aside .sidebar a.active {
    background-color: rgba(132, 139, 200, 0.18);
    color: #7380ec; 
    margin-left: 0;
    border-left: 5px solid #7380ec; 
    padding-left: calc(2rem - 3px);
}
aside .sidebar a:hover span {
    margin-left: 1rem;
}

aside .sidebar a span.msg_count {
  background-color: #ff7782; /* Reemplazado var(--clr-danger) */
  color: #fff; /* Reemplazado var(--clr-white) */
  padding: 2px 5px;
  font-size: 11px;
  border-radius: 0.4rem; /* Reemplazado var(--border-radius-1) */
}


 /* ----------------------------
 --------- Main--------------
 ------------------------------ */


main {
  flex: 1;
  padding: 1rem;
  background-color: #181a1e;
}

main input {
  background-color: transparent;
  border: 0;
  outline: 0;
  color: #363949; /* Reemplazado var(--clr-dark) */
}

.tienda-info {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  gap: 1rem;
}

main .insights {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.6rem;
}

main .insights > div {
  background-color: #202528;
  padding: 1.8rem;
  border-radius: 2rem; 
  margin-top: 1rem;
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.4);
  transition: all .3s ease;
}

main .insights > div:hover {
  box-shadow: none;
}
main .insights > div span {
  background: coral;
  padding: 0.5rem;
  border-radius: 50%;
  color: #fff; 
  font-size: 2rem;
}

h1, h2, h3 {
  margin-bottom: 1rem;
}

main h1 {
    color: #edeffd; /* Reemplazado var(--clr-dark) */
}

/* recent order */

main .recent_order {
  margin-top: 2rem;
}

/* Tabs */
.tab-navigation {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.tab-link {
  padding: 0.5rem 1.5rem;
  background-color: #e9ecef;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.tab-link.active {
  background-color: #0d6efd;
  color: white;
}

main .recent_order h2 {
  color: #edeffd; /* Reemplazado var(--clr-dark) */
  margin-bottom: 0.8rem;
}
main .recent_order table {
  background: #202528;
  width: 100%;
  border-radius: 2rem; 
  padding: 1.8rem; 
  text-align: center;
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.4); 
  transition: all .3s ease;
  color: #edeffd; /* Reemplazado var(--clr-dark) */
}

main .recent_order table:hover {
    box-shadow: none;
}

main table tbody td {
  height: 3.8rem;
  color: #677483; /* Reemplazado var(--clr-dark-variant) */
}
main table tbody tr:last-child td {
    border: none;
}

/* Filtro por tienda */
.filter-section {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.text_fil{
  color: #edeffd;
}

.filter-section select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/*********************
Right Side
**********************/

.right{
  margin-top: 1.4rem;
}
.right h2{
  color: #edeffd;
}
.right .top{
  display: flex;
  justify-content: start;
  gap: 2rem;
}

.right .top button{
  display: none;
}

.right .theme-toggler{
  background: #fff;
  display: flex;
  justify-content: space-between;
  height: 1.6rem;
  width: 4.2rem;
  cursor: pointer;
  border-radius: var(--border-radius-1);
}
.right .theme-toggler span{
  font-size: 1.2rem;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right .theme-toggler span.active{
  background: var(--clr-primary);
  color: #fff;
}

.right .top .profile {
    display: flex;
    gap: 2rem;
    text-align: right;
}
.right .info h3 {
    color: #363949; /* Reemplazado var(--clr-dark) */
}
.right .item h3 {
    color: #363949; /* Reemplazado var(--clr-dark) */
}

/* recent update */

.right .recent_updates {
  margin-top: 1rem;
  margin-left: -20px;
}
.right .recent_updates .updates {
  background-color: #202528; 
  padding: 1.8rem; 
  border-radius: 2rem; 
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.4);
  transition: all .3s ease;
}
.right .recent_updates .updates:hover {
  box-shadow: none;
}
.right .recent_updates .update {
  display: grid;
  grid-template-columns: 2.6rem auto;
  gap: 1rem;
  margin-bottom: 1rem;
}


/* see analytics */

.right .sales-analytics {
  margin-top: 2rem;
  margin-left: -20px;
}
.right .sales-analytics h2 {
  margin-bottom: 0.8rem;
}

.right .sales-analytics .item {
  background-color: #202528; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 10px 0;
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 1.4rem 1.8rem; 
  border-radius: 1.2rem; 
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.4);
}

.right .sales-analytics .item:hover {
  box-shadow: none;
}

.right .sales-analytics .item .icon {
  padding: 0.6rem;
  color: #fff; /* Reemplazado var(--clr-white) */
  border-radius: 50%;
  height: 50px;
  width: 50px;
  line-height: 50px;
  align-items: center;
  background: coral;
}

.right .sales-analytics .item:nth-child(3) .icon {
  background: #41f1b6; /* Reemplazado var(--clr-success) */
}
.right .sales-analytics .item:nth-child(4) .icon {
  background: #ff7782; /* Reemplazado var(--clr-danger) */
}


.add_product div {
  display: flex;
  height: 60px;
  width: 100%;
  text-align: center;
  justify-content: center;
  align-items: center;
  border: 2px dashed;
  color: #677483; /* Reemplazado var(--clr-dark-variant) */
  margin-bottom: 40px;
}


/* **********8
MEDIA QUERY
****************/

@media screen and (max-width:1200px) {
    .container{
      width: 94%;
      grid-template-columns: 7rem auto 14rem;
    }
    aside .sidebar h3{
      display: none;
    }
    aside .sidebar a{
      width: 5.6rem;
    }
    aside .sidebar a:last-child{
      position: relative;
      margin-top: 1.8rem;
    }
    main .insights{
      display: grid;
      grid-template-columns: repeat(1,1fr);
    }
}


/* ****************
MEDIA QUERY PHONE
************************/

@media screen and (max-width:768px) {
  .container{
    width: 100%;
    grid-template-columns: repeat(1,1fr);
  
  }
  
  aside{
    position: fixed;
    width: 18rem;
    z-index: 3;
    height: 100vh;
    background-color: #202528;
    display: none;
    left: -110px;
    animation:  menuLeft .3s ease forwards;
  }
  
  @keyframes menuLeft {
      to{
        left: 0;
      }
  }
  

  aside .logo h2{
    display: inline;
  }
  aside .sidebar h3{
    display: inline;
  }
  aside .sidebar a{
    width: 100%;
    height: 3.4rem;
  }
  aside .top div.close  span{
    display: inline;
    position: absolute;
    right: 0;
    margin-right:30px;
    font-size: 35px;
    cursor: pointer;
  }

  .right .top{
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.8rem;
    background: #202528;
    height: 4.6rem;
    width: 100%;
    z-index: 2;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.4);
    margin: 0;
  }
  
  .tienda-info {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    gap: 1rem;
  }


  main .insights{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 1.6rem;
    padding: 0px;
  }
  main .recent_order{
    padding: 0px;
    margin: 0 auto;
  }

  main .recent_order table {
    background: #202528;
    width: 100%;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.4);
    transition: all .3s ease;
    color: #edeffd;
}

.imag {
  border-radius: 3rem;
}




  .right .profile{
    position: absolute;
    left: 70%;
  }

  .right .top .theme-toggler{
    width: 4.4rem;
    position: absolute;
    left: 50%;
  }
   .right .profile .info{
    display: none;
   }

   .right .top button{
     display: inline-block;
     background: transparent;
     cursor: pointer;
     color: #edeffd;
     position: absolute;
     left: 1rem;

   }
   .right .recent_order{
    padding: 0 30px;
   }
   .right .recent_updates{
    padding: 0 40px;
   }
   .right .sales-analytics{
    padding: 0 40px;
   }
   .right .add_product{
    padding: 0 40px;
    margin-bottom: 40px;
   }


}

