/* Reset */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Body */

body{
  background: #8dc2ff;
  color: rgba(212, 62, 2, 0.692);
  transition: 0.5s;

}

/* Layout */

.container{
  display: flex;
}

/* Sidebar */

.sidebar{
  width: 250px;
  min-height: 100vh;
  background: rgba(17,24,39,0.9);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.logo{
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #fff;
}

.sidebar ul{
  list-style: none;
}

.sidebar ul li{
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  color: #ddd;
}

.sidebar ul li:hover{
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
  color: white;
}

/* Main */

.main-content{
  flex: 1;
  padding: 30px;
}

.navbar h1{
  margin-bottom: 25px;
  font-size: 35px;
}

/* Dashboard Cards */

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}

.card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);

  padding: 25px;
  border-radius: 20px;

  transition: 0.3s;
  animation: fadeIn 0.6s ease;
}

.card:hover{
  transform: translateY(-5px);
}

.card h3{
  color: #ccc;
  margin-bottom: 10px;
  font-size: 18px;
}

.card p{
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

/* Product Form */

.product-form,
.products-table{
  background: rgba(255,255,255,0.06);

  border: 1px solid rgba(255,255,255,0.1);

  backdrop-filter: blur(10px);

  padding: 25px;
  border-radius: 20px;

  margin-top: 30px;

  animation: fadeIn 0.7s ease;
}

.product-form h2,
.products-table h2{
  margin-bottom: 20px;
}

/* Inputs */

.inputs{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 15px;
}

input{
  padding: 14px;
  border: none;
  outline: none;

  border-radius: 12px;

  background: #2a2a40;

  color: white;

  transition: 0.3s;
}

input::placeholder{
  color: #aaa;
}

input:focus{
  transform: scale(1.03);
  background: #35355a;
}

/* Buttons */

button{
  background: linear-gradient(45deg,#4f46e5,#7c3aed);

  color: white;

  border: none;

  padding: 12px;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;

  font-weight: bold;
}

button:hover{
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Total */

#total{
  background: #111827;

  color: #00ff88;

  padding: 12px;

  border-radius: 12px;

  text-align: center;

  font-weight: bold;
}

/* Search */

.search-box{
  margin: 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Table */

table{
  width: 100%;
  border-spacing: 0 10px;
}

th{
  color: #ccc;
  padding: 15px;
}

tr{
  background: #24243a;
  transition: 0.3s;
}

tr:hover{
  background: #2e2e48;
  transform: scale(1.01);
}

td{
  padding: 15px;
  text-align: center;
  color: white;
}

/* Theme Button */

#themeBtn{
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 999;

  padding: 10px 15px;
}

/* Dashboard Stats */

.dashboard{
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.dashboard .card{
  flex: 1;
}

/* Dark Mode */

.dark{
  background: #00003f;
}

/* Animation */

@keyframes fadeIn{

  from{
    opacity: 0;
    transform: translateY(20px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }

}

/* Responsive */

@media(max-width: 768px){

  .container{
    flex-direction: column;
  }

  .sidebar{
    width: 100%;
    min-height: auto;
  }

  .cards,
  .dashboard{
    grid-template-columns: 1fr;
  }

}
.pagination{
    display: flex;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.login-container{
  width: 100%;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box{

  width: 400px;

  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  padding: 40px;

  border-radius: 20px;

  display: flex;
  flex-direction: column;

  gap: 20px;
}

.login-box h1{
  text-align: center;
}
#toast{
  position: fixed;
  top: 20px;
  right: 20px;
  transform: translateX(100%);
  background: rgba(255,255,255,0.1);
  padding: 15px 25px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  opacity: 0;
  transition: .4s;
  z-index: 9999;
}
#toast.show{
  transform: translateX(0);
  opacity: 1;
}
#toast.error{
  background: rgba(255,0,0,0.8);
}
#toast.warning{
  background: rgba(255,255,0,0.8);
  color: black;
}
.modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content{
    background: #312e52;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    width: 350px;
}

.modal-content h2{
    margin-bottom: 10px;
}

.modal-content p{
    margin-bottom: 20px;
}

.modal-content button{
    margin: 5px;
}
.chart-container{
  width: 300px;
  max-width: 100%;
  margin: 30px auto;
  text-decoration: #ffffffe7;

}