* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1600891964599-f61ba0e24092?auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #333;
  position: relative;

}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
}

.title {
  text-align: center;
  font-size: 2.5rem;
  color: #d35400;
  margin-bottom: 30px;
}

.form-card {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.form-card input {
  flex: 1 1 220px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}

.form-card input:focus {
  border-color: #e67e22;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

#add_dish_btn {
  background: #e67e22;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

#add_dish_btn:hover {
  background: #cf711f;
}

.table-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #d35400;
  text-align: center;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

th, td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

th {
  background: #fdf2e9;
  color: #d35400;
  font-weight: 600;
}

td img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

td button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  margin: 0 5px;
  color: #e67e22;
  transition: 0.3s;
}

td button:hover {
  color: #ba5314;
}

.counter_and_delete_all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px;
  background-color: #fff3e0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  margin-bottom: 20px;
}

.dish-counter {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  margin: 0;
}

.dish-counter span {
  font-weight: bold;
  color: #d35400;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.delete-btn:hover {
  background-color: #c0392b;
  transform: scale(1.05);
}

.none {
  display: none;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #f0f0f0;
}

body::-webkit-scrollbar-thumb {
  background-color: red;
  border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: yellow;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin: 20px 10px;
    padding: 20px 15px;
    border-radius: 12px;
  }

  .title, .table-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .form-card {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .form-card input {
    flex: 1 1 100%;
    padding: 10px;
    font-size: 0.95rem;
  }

  #add_dish_btn {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .table-wrapper {
    padding: 0;
    overflow-x: auto;
  }

  th, td {
    padding: 10px 5px;
    font-size: 0.9rem;
  }

  td img {
    width: 50px;
    height: 50px;
  }

  .counter_and_delete_all {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 500px) {
  body {
    background-position: top center;
    background-size: cover;
  }
}
#Warning{
  padding: 0;
margin-bottom: 10px;
  font-size: 16px;
  color: red;
  font-weight: 300;
  text-align: center;
}

/* زرار Edit */
button.edit {
  background-color: #f39c12; 
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button.edit:hover {
  background-color: #d68910; 
  transform: scale(1.05);
}

button.delete {
  background-color: #e74c3c; 
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button.delete:hover {
  background-color: #c0392b; /* أغمق */
  transform: scale(1.05);
}
