body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #222;
  color: #fff;
  text-align: center;
}

.background-shapes {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      pointer-events: none;
    }

    .background-shapes span {
      position: absolute;
      display: block;
      background: rgba(0, 255, 0, 0.25);
      opacity: 0.4;
    }

    .circle {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      animation: pulse 6s infinite ease-in-out;
    }

    .square {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      animation: rotate 12s infinite linear;
    }

    .star {
      width: 50px;
      height: 50px;
      clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
                        50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
      animation: moveSide 8s infinite ease-in-out;
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
        opacity: 0.4;
      }
      50% {
        transform: scale(1.2);
        opacity: 0.6;
      }
    }

    @keyframes rotate {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    @keyframes moveSide {
      0%, 100% {
        transform: translateX(0);
      }
      50% {
        transform: translateX(20px);
      }
    }

.intro-container {
  padding: 30px 20px;
  margin-bottom: 5px;
}

.intro-container h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.intro-container p {
  font-size: 1.2em;
  margin-bottom: 50px;
}

.main-btn {
  background-color: rgb(2, 135, 2);
  color: white;
  padding: 15px 30px;
  font-size: 1em;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
  font-size: 16px;
  font-weight: bold;
}

.main-btn:hover {
  background-color: limegreen;
}
.crud-info {
  background-color: #111;
  padding: 40px 20px;
  margin: 20px auto;
  width: 85%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,255,0,0.1);
  text-align: left;
  margin-top: 5px;
}

.crud-info h2 {
  font-size: 28px;
  color: #0f0;
  margin-bottom: 20px;
  border-bottom: 2px solid #0f0;
  padding-bottom: 10px;
}

.crud-info p {
  font-size: 18px;
  line-height: 1.6;
}

.crud-info ul {
  margin: 20px 0;
  padding-left: 20px;
}

.crud-info li {
  font-size: 17px;
  margin-bottom: 10px;
}

/* ================================================ */

.container {
  padding: 20px;
  max-width: 1200px;
  margin: -5px auto;
}

h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

h2 span {
  font-size: 1em;
  color: gray;
}

.input-box input,
.search-box input {
  display: block;
  width: 80%;
  margin: 10px auto;
  padding: 10px;
  border: none;
  border-radius: 7px;
  height: 30px;
  color: #fff;
  background-color: #111;
}
.input-box input:focus{
    background-color: rgb(30, 30, 30);
}
.price-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin: 3px;

}

.price-row input {
  width: 195px;
  margin: 3px 10px;
  margin-left: 0px;
}
small{
    margin-top: 19px;
    background-color: red;
    border-radius: 10px;
    padding-top: 10px;
    width: 80px;

}
small::before{
    content: 'Total : ';
}
.search-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  background-color: rgb(1, 101, 1);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.7s ease;
  font-weight: bold;
  font-size: 16px;
}

.create{
    width: 82%;
    margin: 10px;
    height: 40px;
}
.search-buttons button{
    width: 40.5%;
    height: 40px;
    margin-bottom: 12px;
}
button:hover {
  background-color: #12a012;
}
.delete-all{
    height: 40px;
}
.table-box {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table, th, td {
  border: 1px solid #333;
}

th, td {
  padding: 10px;
  text-align: center;
}

.total-label {
  color: lime;
  font-weight: bold;
}

footer {
  margin-top: auto;
  padding: 20px;
  background-color: #000;
  color: green;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  bottom: 0px;
}

.social-icons{
  margin-top: 10px;
}

.social-icons a{
  color: white;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s;
}

.linked:hover{
    color: rgb(47, 132, 250);
}
.face:hover{
    color: rgb(0, 61, 160);
}


@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    padding: 0;
  }

  .container,
  .intro-container,
  .crud-info {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
  }

  .input-box,
  .search-box,
  .table-box {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .input-box input,
  .search-box input,
  .create,
  .delete-all button,
  .search-buttons button {
    width: 100% !important;
    margin: 10px 0;
    height: 45px;
    font-size: 16px;
  }

  .price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .price-row input {
    width: 100% !important;
  }

  small#total {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: red;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
  }

  .search-buttons {
    flex-direction: column;
    gap: 10px;
  }

  table {
    font-size: 13px;
    width: 100%;
  }

  th, td {
    padding: 6px;
  }

  footer {
    padding: 15px 10px;
    font-size: 14px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .social-icons a {
    font-size: 20px;
    color: white;
  }

  .background-shapes span {
    width: 25px !important;
    height: 25px !important;
    opacity: 0.1;
  }
}
