@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

#header {
  position: relative;
  z-index: 10;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  background-color: cornflowerblue;
  color: black;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  min-height: 100vh;
  overflow: visible;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: auto;
  height: auto;
}

.container {
  background: #bb9df6;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.image-container {
  position: relative;
  flex: 1;
  min-height: 100vh;
}

.image-container img {
  object-fit: cover;
  width: 100%;
  height: 100vh;
  border-radius: 150px;
}

.form-container {
  flex: 1;
  padding: 10px;
  margin-left: 20px;
  min-height: 100vh;
  overflow-y: auto;
}

.price-banner {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #c9fb01;
  color: rgb(253, 1, 135);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  font-weight: 600;
}

h1 {
  text-align: center;
  margin-top: 40px;
  margin-left: 40px;
  font-size: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h2 {
  font-weight: bold;
  font-size: 60px;
  letter-spacing: 5px;
}

h3 {
  margin-top: 15px;
}

input[type="checkbox"] {
  margin-right: 5px;
}

#customerName {
  padding: 8px;
  margin-top: 10px;
  width: 20vw;
}

#type {
  padding: 5px;
  width: 20vw;
}
.custom-button {
  appearance: button;
  background-color: #000;
  background-image: none;
  border: 1px solid #000;
  border-radius: 8px;
  box-shadow: #fff 4px 4px 0 0, #000 4px 4px 0 1px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: ITCAvantGardeStd-Bk, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0 5px 10px 0;
  overflow: visible;
  padding: 12px 40px;
  text-align: center;
  text-transform: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
}

.custom-button:focus {
  text-decoration: none;
}

.custom-button:hover {
  text-decoration: none;
  background-color: #6c5ce7;
  transform: scale(1.05);
}

.custom-button:active {
  box-shadow: rgba(0, 0, 0, 0.125) 0 3px 5px inset;
  outline: 0;
}

.custom-button:not([disabled]):active {
  box-shadow: #fff 2px 2px 0 0, #000 2px 2px 0 1px;
  transform: translate(2px, 2px);
}

@media (min-width: 768px) {
  button {
    padding: 12px 50px;
  }
}

select,
label {
  display: block;
  margin-top: 10px;
  font-size: 18.72px;
}

#searchInput {
  padding: 10px;
  font-size: 16px;
  margin-top: 40px;
  margin-left: 80px;
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.orders-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-right: 40px;
  width: 100%;
}

.orders-container {
  padding-top: 20px;
}

.order-card {
  padding: 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
  margin: 10px 0;
}

.order-card.waiting {
  background-color: lightyellow;
  border-color: orange;
}

.order-card.ready {
  background-color: lightblue;
  border-color: blue;
}

.order-card.delivered {
  background-color: lightgreen;
  border-color: green;
}

.order-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.order-card p {
  margin: 5px 0;
}

.order-card:hover {
  transform: scale(1.03);
  transition: 0.2s ease-in-out;
}

.status-dropdown {
  width: 100px;
  padding: 5px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

#ordersContainer {
  width: 100%;
  padding-top: 20px;
  margin-top: 0;
  overflow: auto;
}

#allOrdersButton {
  background-color: #4caf50;
  color: white;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  z-index: 10;
}

#allOrdersButton:hover {
  background-color: #45a049;
}

.remove-button {
  background-color: red;
  color: white;
  padding: 5px 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.remove-button:hover {
  background-color: darkred;
}

@media (max-width: 375px) {
  .all-orders-page {
    padding: 10px;
  }

  .orders-grid {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .order-card {
    width: 90%;
    max-width: 280px;
    font-size: 14px;
    padding: 12px;
    margin: 5px auto;
  }

  #searchInput {
    width: 90%;
    max-width: 250px;
  }

  #allOrdersButton {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}
