* {
  margin: 0;
  padding: 0;
}

body {
  /* background: #222; */
  /* background: linear-gradient(135deg, #17ead9 0%,#6078ea 100%); */
  background: linear-gradient(135deg, #65799b 0%,#5e2563 100%);
  color: #fff;
  font-family: system-ui;
}
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar track {
  background-color: white;
}
::-webkit-scrollbar-thumb {
  background-color: #65799b;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #819ac6;
}

.crud {
  width: 80%;
  margin: auto;
}

.head {
  text-align: center;
  text-transform: uppercase;
  margin: 10px 0px;
  color: #ffffffd1;
  font-size: 20px;
}
input {
  width: 100%;
  height: 50px;
  outline: none;
  border: none;
  /* background: #111; */
  background: #00000085;
  /* background:linear-gradient(135deg, #E3E3E3 0%,#5D6874 100%); */
  /* background:linear-gradient(135deg, #65799b 0%,#5e2563 100%); */
  margin: 4px 0;
  border-radius: 4px;
  padding: 4px;
  color: #fff;
  /* font-weight: bold; */
  font-size: 20px;
}

input:focus {
  /* background: #000; */
  background:linear-gradient(135deg, #E3E3E3 0%,#5D6874 100%);
  transform: scale(1.1);
  margin: 10px;
  color: #000;
  font-weight: bold;
}

.price input {
  width: 20%;
}

#total {
  background: #A1051D;
  padding: 6px 2px;
  border-radius: 4px;
  font-size: 20px;
}

#total::before {
  content: 'Total : ';
  font-weight: bold;
}

button {
  width: 100%;
height: 30px;
border: none;
cursor: pointer;
/* background: #470053; */
background: linear-gradient(135deg, #7117ea 0%,#ea6060 100%);
color: #fff;
border-radius: 20px;
transition: 0.5s;
font-size: 20px;
}

button:hover {
  /* background: #51025f; */
  background: linear-gradient(135deg, #6927be 0%,#ae6262 100%);
  letter-spacing: 1px;
}

.btnSearch {
  display: flex;
  justify-content: space-between;
}
.btnSearch button {
  width: 45%;
}

#deleteAll {
  margin: 20px 0;
}

table {
  width: 100%;
  text-align: center;
  margin: 10px 0;
  border-collapse: collapse;
  /* overflow: hidden; */
  /* overflow-x:auto; */
  /* width: 100%; */
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  overflow: hidden;
  /* box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); */
}

table th {
  text-transform: uppercase;
  /* background-color: #a537af; */
  background: linear-gradient(135deg, #590dc1 0%,#a77f7f 100%);
  font-weight: 900;
  font-size: 22px;
}

th,td {
  padding: 5px;
  font-size: 20px;
  font-weight: bolder;
  padding: 15px;
  /* background-color: rgba(255, 255, 255, 0.2); */
  color: #fff;
  text-align: center;
  border: 1px solid #000000;
}

tbody tr:hover {
  /* background-color: #ddd; */
  background:linear-gradient(135deg, #E3E3E3 0%,#5D6874 100%);
  cursor: pointer; 
}
/*  */
tr {
  border-color: inherit;
  border-style: solid;
  border-width: 4px;
}


.projects tbody td {
  border-bottom: 2px solid #808080;
  border-left: 2px solid #808080;
  transition: 0.3s;
  font-weight: 900;
}
.projects .responsive-table {
  overflow-x: auto;
}
.projects table {
  min-width: 1000px;
  border-spacing: 0;
}
.projects thead td {
  background-color: #eee;
  font-weight: bold;
}
.projects table td {
  padding: 15px;
}

#error-message {
  background-color: #f44336; /* Red background color */
  color: white; /* White text color */
  padding: 10px; /* Add padding */
  border-radius: 5px; /* Rounded corners */
  display: none; /* Hide the element by default */
  font-weight: 600;
  font-size: 20px;
}





/* Responsive Styles */

@media (max-width: 768px) {
  .crud {
    width: 90%;
  }

  .inputs input,
  .inputs button {
    width: 100%;
  }

  .price input {
    width: 100%;
  }

  .btnSearch {
    flex-wrap: wrap;
  }

  .btnSearch button {
    width: 100%;
    margin-bottom: 10px;
  }
  #total {
    padding: 3px;
  }
}

@media (max-width: 480px) {
  .crud {
    width: 100%;
  }

  .inputs input,
  .inputs button {
    font-size: 14px;
  }
  #total {
    padding: 3px;
  }
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
  .crud {
    width: 90%;
  }
}

/* أنماط الاستجابة للشاشات الأكبر */
@media (min-width: 1024px) {
  .crud {
    width: 70%;
  }
}

/* أنماط الاستجابة للشاشات الكبيرة */
@media (min-width: 1200px) {
  .crud {
    width: 60%;
  }
}

