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

body {
  font-family: "Segoe UI", sans-serif;
  background: url("pancake.avif") no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  color: white;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.085);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.price-banner {
  position: fixed;
  top: 15px;
  right: 15px;
  background-color: #ffb703;
  padding: 20px 25px;
  border-radius: 50%;
  font-weight: bold;
  color: white;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-container {
  max-width: 500px;
  width: 90%;
  height: 120vh;
  background-color: rgba(12, 11, 10, 0.17);
  border: rgb(163, 155, 155);
  padding: 30px 40px;
  box-shadow: 0 10px 30px rgba(11, 11, 11, 0.15);
}

.form-container h2 {
  text-align: center;
  color: rgb(248, 146, 2);
  margin-bottom: 20px;
}

label {
  display: block;
  margin: 12px 0 5px;
  font-weight: bold;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 6px;
}

h3 {
  margin-top: 20px;
  color: #eeab1b;
}

#totalPriceDisplay {
  font-size: 20px;
  color: #f9f9f8;
  font-weight: bold;
}

#summaryText {
  color: white;
  margin-top: 20px;
}

#seeOrder {
  width: 30%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #f86808;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#seeOrder:hover {
  background-color: #b45309;
}

#confirmOrderButton {
  background-color: #1ae82b;
  width: 30%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  color: white;
}

#confirmOrderButton:hover {
  background-color: #47c905;
}

#allOrdersButton {
  background-color: blue;
  color: white;
  width: 10%;
  height: 5%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  position: fixed;
  top: 30px;
  right: 120px;
  z-index: 1000;
}

#allOrdersButton:hover {
  background-color: rgb(78, 78, 235);
}

/* All orders Page  */

h1 {
  text-align: center;
  color: white;
  margin-top: 20px;
  margin-bottom: 20px;
}

#searchInput,
.search-input {
  display: block;
  margin: 0 auto 20px auto;
  padding: 10px 15px;
  width: 90%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

#ordersContainer,
.orders-container {
  color: black;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.order-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #ddd;
  position: relative;
  transition: transform 0.2s ease;
}

.order-card:hover {
  transform: scale(1.01);
}

.status-text {
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-left: 5px;
  text-transform: capitalize;
}

.order-card.waiting {
  border-left-color: #ffcc00;
}

.order-card.ready {
  border-left-color: #3399ff;
}

.order-card.delivered {
  border-left-color: #33cc66;
}

.status-text.waiting {
  color: #856404;
  background-color: #fff3cd;
}

.status-text.ready {
  color: #004085;
  background-color: #cce5ff;
}

.status-text.delivered {
  color: #155724;
  background-color: #d4edda;
}

select {
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.remove-button {
  margin-top: 15px;
  padding: 8px 14px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  float: right;
}

.remove-button:hover {
  background-color: #c82333;
}

@media (max-width: 430px) and (max-height: 932px) {
  .form-container {
    width: 100%;
    height: 100vh;
    padding: 20px 15px;
    border-radius: 0;
    box-shadow: none;
  }

  input,
  select,
  button {
    font-size: 1rem;
    padding: 12px;
  }

  h2 {
    font-size: 1.2rem;
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .form-container {
    width: 80%;
    height: 95vh;
  }
}
