
/* General Body and Typography */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Headers */
header {
  font-family: Arial, sans-serif;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* ظل الهيدر لتحسين التناسق */
  transition: all 0.9s ease-in-out;
  /* انتقال سلس */
}

/* First Header */
.top-header {
  background-color: #d8d4d4;
  border-bottom: 2px solid #6a745c;
  text-align: center;
  padding: 20px;
}

.top-header.hidden {
  display: none;
}

.top-header img {
  width: 100px;
  height: auto;
}

.top-header nav {
  margin-top: 10px;
}

.top-header a {
  color: #62553a;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
}

.top-header a:hover {
  color: #6a745c;
}

/* Second Header (Scroll Header) */
.scroll-header {
  background-color: #d8d4d4;
  padding: 10px 0;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* نفس ظل الهيدر الأول لتعزيز التناسق */
  display: none;
  /* مخفي بشكل افتراضي */
  transition: all 0.9s ease-in-out;
  /* انتقال سلس عند الظهور */
}

.scroll-header.show {
  display: block;
}

.scroll-header h2 {
  font-size: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0 10px;
  font-size: small;
  white-space: nowrap;
  overflow-x: auto;
}

.scroll-header a {
  color: #6a745c;
  text-decoration: none;
  padding: 10px;
  flex: 0 0 auto;
}

.scroll-header a:hover,
.scroll-header a.active {
  color: #62553a;
  font-weight: bold;
  border-bottom: 2px solid #62553a;
}

.scroll-header h2::-webkit-scrollbar {
  display: none;
}

/* Main Content Layout */
main {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu,
.order {
  background-color: #d8d4d4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Headings */
h1,
h2,
h3 {
  color: #62553a;
}

h2 {
  border-bottom: 2px solid #6a745c;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Menu Items */
.menu-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-right: 15px;
}

.menu-item h3 {
  margin: 0;
  font-size: 20px;
}

.menu-item p {
  margin: 5px 0;
  color: #666;
}

.menu-item span {
  font-weight: bold;
  font-size: 18px;
}

.menu-item button {
  padding: 8px 12px;
  background-color: #6a745c;
  color: #d8d4d4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-item button:hover {
  background-color: #62553a;
}

/* Order Summary */
.order-summary {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 20px;
}

.order-summary span {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.checkout-btn,
.nav-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #6a745c;
  color: #d8d4d4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.checkout-btn:hover,
.nav-btn:hover {
  background-color: #62553a;
}

/* Call Waiter Button */
.call-waiter-btn {
  position: fixed;
  top: 50px;
  right: 20px;
  padding: 10px 15px;
  background-color: #6a745c;
  color: #fff;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.call-waiter-btn:hover {
  background-color: #62553a;
}


/* Animation Ball */
#animation-ball {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #6a745c;
  border-radius: 50%;
  z-index: 1001;
  pointer-events: none;
  transition: transform 0.5s ease, top 0.5s ease, left 0.5s ease;
}

/* Footer */
footer {
  background-color: #6a745c;
  color: #d8d4d4;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}

footer a {
  color: #d8d4d4;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Order Items */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item button {
  background-color: #911919;
  color: #d8d4d4;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  width: auto;
  height: 10%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.order-item button:hover {
  background-color: #bd0000;
}

/* Quantity Container */
.quantity-container {
  display: flex;
  align-items: center;
}

.quantity-btn {
  background-color: #6a745c;
  color: #d8d4d4;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.quantity-btn:hover {
  background-color: #62553a;
}

.quantity-input {
  width: 50px;
  text-align: center;
  background-color: #ffffff;
  color: #6a745c;
  margin: 0 10px;
  border: 1px solid #62553a;
  border-radius: 4px;
  padding: 5px;
  font-size: 16px;
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

form input[type="text"],
form input[type="number"],
form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

form textarea {
  height: 100px;
  resize: vertical;
}

form select {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

form input[type="submit"] {
  background-color: #007BFF;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: #0056b3;
}



/* Comment Box Styling */
.comment-box {
  background-color: rgba(106, 116, 92, 0.75); /* Matches #6a745c75 */
  color: #62553a;
  border: none;
  border-radius: 5px;
  padding: 10px;
  width: 20%;
  height: 20px;
  resize: both; /* Allow manual resizing */
  outline: none;
}

.comment-box::placeholder {
  color: #62553a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .comment-box {
    height: 20px;
    font-size: 14px;
    width: 10%;
  }
}

@media (max-width: 480px) {
  .comment-box {
    height: 20px;
    font-size: 12px;
    width: 30%;
  }
}


/* Responsive Design */
/* Tablet and Desktop */
@media (min-width: 600px) {

  .menu,
  .order {
    flex: 1 1 48%;
    margin-right: 20px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  main {
    flex-wrap: nowrap;
  }

  .menu,
  .order {
    flex: 2 1 60%;
    margin: 0;
  }
}

.nav-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
  padding: 12px;
  background-color: #6a745c;
  color: #d8d4d4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  z-index: 1000;
}

.nav-btn:hover {
  background-color: #62553a;
}

/* Back Button */
.Back-btn {
  background-color: #6a745c;
  color: #d8d4d4;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.Back-btn:hover {
  background-color: #62553a;
}

.Back-btn:disabled {
  background-color: #62553a;
  cursor: not-allowed;
}




/* Notifications Section */
#notifications-section {
  margin-bottom: 20px;
}

#notifications {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
  max-height: 200px;
  overflow-y: auto;
}

#notifications p {
  background-color: #e9ecef;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 16px;
}

#notifications p:last-child {
  margin-bottom: 0;
}