* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #222;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.crud {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
}

.head {
  text-align: center;
  text-transform: uppercase;
  color: white;
  margin: 15px 0;
}

.inputs input {
  width: 100%;
  height: 45px;
  outline: none;
  border: none;
  background-color: #111;
  color: #fff;
  border-radius: 15px;
  padding: 10px;
  margin: 5px 0;
  font-size: 16px;
}

.inputs input:focus {
  background-color: #000;
  transform: scale(1.03);
  transition: 0.3s;
}

.price {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.price input {
  flex: 1 1 calc(50% - 10px);
}

#total {
  display: inline-block;
  text-align: center;
  width: 100%;
  background-color: rgba(255, 0, 0, 0.308);
  padding: 8px;
  border-radius: 9px;
  color: #fff;
  font-weight: bold;
  margin-top: 5px;
}

#total::before {
  content: 'Total: ';
}

#supmit {
  width: 100%;
  height: 45px;
  background-color: #51025f73;
  border-radius: 30px;
  color: #fff;
  border: none;
  text-transform: uppercase;
  font-size: 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#supmit:hover {
  background-color: #6a0d7e;
  letter-spacing: 2px;
}

.seachrblck {
  margin-top: 20px;
}

.seachrblck input {
  width: 100%;
  height: 40px;
  border: none;
  background-color: #111;
  border-radius: 30px;
  text-transform: uppercase;
  color: #fff;
  padding: 0 15px;
}

.seachrblck input:focus {
  background-color: #000;
  transform: scale(1.03);
}

.ptn {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ptn button {
  flex: 1 1 45%;
  height: 45px;
  background-color: #51025fa6;
  border-radius: 20px;
  color: #fff;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.ptn button:hover {
  background-color: #6a0d7e;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 700px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #444;
}

th {
  text-transform: uppercase;
}

table button {
  width: 70px;
  height: 35px;
  background-color: #51025f9f;
  border-radius: 10px;
  text-transform: uppercase;
  color: #fff;
  border: none;
  cursor: pointer;
}

table button:hover {
  background-color: #6a0d7e;
}

#delete {
  width: 100%;
  height: 45px;
  background-color: #51025f73;
  color: #fff;
  text-transform: uppercase;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .crud {
    width: 95%;
  }

  .price input {
    flex: 1 1 100%;
  }

  .ptn button {
    flex: 1 1 100%;
  }

  table {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 22px;
  }

  p {
    font-size: 14px;
  }

  #supmit, .ptn button {
    font-size: 14px;
  }
}
