/* Googlefont Poppins CDN Link */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
.sidebar {
  position: fixed;
  height: 100%;
  width: 240px;
  background: #0a2558;
  transition: all 0.5s ease;
}
.sidebar.active {
  width: 60px;
}
.sidebar .logo-details {
  height: 80px;
  display: flex;
  align-items: center;
}
.sidebar .logo-details i {
  font-size: 28px;
  font-weight: 500;
  color:#25da7c;
  min-width: 60px;
  text-align: center;
}
.sidebar .logo-details .logo_name {
  color:#25da7c;
  font-size: 24px;
  font-weight: 500;
}
.sidebar .nav-links {
  margin-top: 10px;
}
.sidebar .nav-links li {
  position: relative;
  list-style: none;
  height: 50px;
}
.sidebar .nav-links li a {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
}
.sidebar .nav-links li a.active {
  background: rgb(10, 30, 70);
}
.sidebar .nav-links li a:hover {
  background: rgb(10, 30, 70);
}
.sidebar .nav-links li i {
  min-width: 60px;
  text-align: center;
  font-size: 18px;
  color:#25da7c;
}
.sidebar .nav-links li a .links_name {
  color:#25da7c;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}
.sidebar .nav-links .log_out {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.home-section {
  position: relative;
  background: #0a2558 ;;
  min-height: 100vh;
  width: calc(100% - 240px);
  left: 240px;
  transition: all 0.5s ease;
}
.sidebar.active ~ .home-section {
  width: calc(100% - 60px);
  left: 60px;
}
.home-section nav {
  display: flex;
  justify-content: space-between;
  height: 80px;
  background: #0a2558 ;  
  align-items: center;
  position: fixed;
  width: calc(100% - 240px);
  left: 240px;
  z-index: 100;
  padding: 0 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  color:#25da7c;
}
.sidebar.active ~ .home-section nav {
  left: 60px;
  width: calc(100% - 60px);
}
.home-section nav .sidebar-button {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
}
nav .sidebar-button i {
  font-size: 35px;
  margin-right: 10px;
}
.home-section nav .search-box {
  position: relative;
  height: 50px;
  max-width: 550px;
  width: 100%;
  margin: 0 20px;
}
nav .search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  background: #f5f6fa;
  border: 2px solid #efeef1;
  border-radius: 6px;
  font-size: 18px;
  padding: 0 15px;
}
nav .search-box .bx-search {
  position: absolute;
  height: 40px;
  width: 40px;
  background: #2697ff;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  font-size: 22px;
  transition: all 0.4 ease;
}
.home-section nav .profile-details {
  display: flex;
  align-items: center;
  background:#25da7c;
  border-radius: 6px;
  height: 50px;
  min-width: 190px;
  padding: 0 15px 0 2px;
}
nav .profile-details img {
  height: 40px;
  width: 40px;
  border-radius: 6px;
  object-fit: cover;
}
nav .profile-details .admin_name {
  font-size: 15px;
  font-weight:bold;
  color:#0a2558;
  margin: 0 10px;
  white-space: nowrap;

}
nav .profile-details i {
  font-size: 25px;
  color: #333;
}
.home-section .home-content {
  position: relative;
  padding-top: 100px;
  
}

/*Box-choix*/

.home-content .box-choix {
  display: flex;
  margin: 15px;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}


/*
.home-content .box-choix button {
*/
.box-choix button {
  cursor: pointer;
  display: flex;
  padding: 15px;
  align-items: center;
}

.home-content .box-choix button a {
  font-size: 20px;
  text-decoration: none;
}


/* overview-boxes */

.home-content .overview-boxes {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overview-boxes .box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #60c5ea;
  padding: 0 20px;
  border-radius: 12px;
  margin: 15px;
  flex-direction: column;
}


/* sales-boxes*/

.home-content .sales-boxes {
  padding: 20px;
  margin: 15px;
  background:#25da7c;
  border-radius: 12px;
}

/* 
.home-content .sales-boxes .recent-sales {
  width: 100%;
  padding: 20px 30px;
  margin: 0px;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.home-content .sales-boxes .sales-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
*/

.sales-boxes .box .title {
  font-size: 24px;
  font-weight: 500;
}
/* 
.sales-boxes .box .button {
  width: 100%;
  display: flex;
}

.sales-boxes .box .button a {
  color: #fff;
  background: #b74df0;
  padding: 4px 12px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sales-boxes .box .button a:hover {
  background: rgb(13, 48, 115);
}
*/
/* formulaire  */

.home-content .formulaire {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.home-content .formulaire form{
  max-width: 600px;
  width: calc(100% / 2);
  min-width: 300px;
  height: auto;
  
  background:#25da7c;
  border-radius: 10px;
  padding: 20px;
  margin: 5px;
  font-size: 15px;
}





/* Responsive Media Query */
@media (max-width: 1240px) {
  .sidebar {
    width: 60px;
  }
  .sidebar.active {
    width: 220px;
  }
  .home-section {
    width: calc(100% - 60px);
    left: 60px;
  }
  .sidebar.active ~ .home-section {
    width: calc(100% - 220px); 
    overflow: hidden;
    left: 220px;
  }
  .home-section nav {
    width: calc(100% - 60px);
    left: 60px;
  }
  .sidebar.active ~ .home-section nav {
    width: calc(100% - 220px);
    left: 220px;
  }
}

@media (max-width: 1150px) {
  .home-content .sales-boxes {
    flex-direction: column;
  }
  .home-content .sales-boxes .box {
    width: 100%;
    overflow-x: scroll;
    margin-bottom: 30px;
  }

  .home-content .sales-boxes .top-sales {
    margin: 0;
  }
}

@media (max-width: 1000px) {
  .overview-boxes .box {
    width: calc(100% / 2 - 15px);
    margin-bottom: 15px;
  }
}
@media (max-width: 700px) {


  nav .sidebar-button .dashboard,
  nav .profile-details .admin_name,
  nav .profile-details i {
    display: none;
  }
  .home-section nav .profile-details {
    height: 50px;
    min-width: 40px;
  }
  .home-content .sales-boxes .sales-details {
    width: 560px;
  }
  .formulaire{
    width: 100%;
  }
}


@media (max-width: 550px) {
  .overview-boxes .box {
    width: 100%;
    margin-bottom: 15px;
  }
  .sidebar.active ~ .home-section nav .profile-details {
    display: none;
  }

  .alert {
  position: static;
  }
  
/*}
 
@media (max-width: 400px) {*/
  .sidebar {
    width: 0;
  }
  .sidebar.active {
    width: 60px;
  }
  .home-section {
    width: 100%;
    left: 0;
  }
  .sidebar.active ~ .home-section {
    left: 60px;
    width: calc(100% - 60px);
  }
  .home-section nav {
    width: 100%;
    left: 0;
  }
  .sidebar.active ~ .home-section nav {
    left: 60px;
    width: calc(100% - 60px);
  }
}

/* INPUT*/
input,
textarea,
select {
  margin-bottom: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0;
  padding: 8px 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.radio {
  margin-bottom: 10px;
  width: 20px;
}

button {
  cursor: pointer;
  background-color:rgb(25 100 25);
  color:rgb(255, 255, 255);
  font-weight: bold;
  border: 1px solid #038b45;
  width: auto;
  height: auto;
  font-size: 20px;
  border-radius: 8px;
  margin: 5px;
  padding: 10px ; 
}







.inputsubmit{
  background: #2647ff;
}

/* Alert */
.alert {
  position:fixed;
  left:80%;
  margin: 10px;
  padding: 15px;
  color: white;
  border-radius: 10px;
}

.alert.danger {
  background-color: #f44336;
}

.alert.success {
  /*background-color: #25da7c;*/
  background: rgb(30, 70, 255)
}

.alert.warning {
  background-color: #c69e2b;
}

/* Style Table */

/* Table*/

table.mtable {
  color:rgb(5, 10, 100);
  width: 100%;
  table-layout: fixed;
  min-width: 1000px;
  border-collapse: collapse ;
  background: #2697ff;
  
 
}

table.mtable2 {
  
  width: 100%;
  /*table-layout: fixed;*/
  border-collapse: collapse ;
  /*background:white;*/
  
 
}




th {
  background: rgb(26, 142, 231); 
}

th,
td{
  border-bottom: 1px solid rgb(5, 10, 100);
  text-align: center;
  padding: 5px;
  
}
td img{
  height: 40px;
  border-radius:10px;
  object-fit: cover;
}
td button{
  background-color: rgb(255,255,255);
  border: 1px solid rgb(5, 10, 100);
  height: 40px;
  width: 40px;
  border-radius: 5px;
  font-size: 20px;
  
}

tr:hover td{
  color:rgb(5, 10, 100);
  background:#25da7c;
}



table.stable tr:nth-child(even){
  background: #b55959;
}
/*
table.mtable td {
  padding: 10px;
}
*/




.container {
  font-size : 20px ;
  max-width: 1200px;
  width: 100%;
  height: auto;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill,200px);
  justify-content: center ;
  grid-gap: 40px;
  border-radius: 10px;
  padding: 20px;

}
.container .boxproduit{
  background:rgb(37, 218, 124);
  font-size: 10px;
  color:rgb(5 10 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-align: center; 
  height: auto;
  overflow: hidden;
  transition: 0.5s;

}
.boxproduit:hover {
  transform: scale(1.1);
}

.boxproduit img{
  width: 100px;
  height: 100px;
}


.containervente {
  background: rgb(128, 128, 128);
  max-width: 1200px;
  width: 100%;
  height: auto;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill,300px);
  justify-content: center ;
  grid-gap: 40px;
  border-radius: 10px;
  padding: 20px;

}


.containervente .boxselect{
  background:rgb(37, 218, 125);
  font-size: 15px;
  color:rgb(5 10 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  text-align: center; 
  height: auto;
  overflow: hidden;
  transition: 0.5s;

}

.boxselect .button{

  font-size: 15px;
}
.boxselect img{
  width: 100px;
  height: 100px;
}





.flex{

  display:flex
}


.boxproduit input{
  color:white;
  width: 50px;
  font-size: 40 px;
  font-weight: bold;
  background: #333;
}

footer{ background: #000; color: white; text-align: center; padding: 7px 0;}



.boutonpanier {
  margin: 20px;
  width: fit-content;
  position: relative;
  text-decoration: 0;
  background-color: #37a6ff;
  color: #fff;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 14px;
}
spane {
  position: absolute;
  top: -9px;
  right: -9px;
  background-color: red;
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
}


/* Voici notre composition pour les champs invalides */
input:invalid {
  
  background-color: rgb(241, 160, 160);
}


