/* Reset and universal styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Welcome container */
.welcome-container {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.welcome-box h1 {
  color: #d84315;
  margin-bottom: 15px;
}

.welcome-box p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #333;
}

.button-group button {
  padding: 12px 24px;
  margin: 10px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button-group button:first-child {
  background-color: #d84315;
  color: white;
}

.button-group button:last-child {
  background-color: #ff7043;
  color: white;
}

.button-group button:hover {
  transform: scale(1.05);
}

/* Form container */
.form-container {
  max-width: 400px;
  margin: 60px auto;
  background-color: #fff;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.form-container h2 {
  color: #d84315;
  margin-bottom: 25px;
}

form input,
form button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

form button {
  background-color: #d84315;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #bf360c;
}

.form-container p {
  margin-top: 20px;
}

/* Category Bar */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background-color: #fff8f2;
  justify-content: center;
}

.category-btn {
  padding: 10px 20px;
  border: none;
  background-color: #ffab91;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.category-btn:hover {
  background-color: #e64a19;
}

/* Dynamic Food Display */
#foodDisplay {
  padding: 20px;
}

.food-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.food-item {
  display: flex;
  align-items: center;
  background: #ffe0b2;
  padding: 10px;
  border-radius: 10px;
  font-weight: bold;
  width: 100%;
  max-width: 300px;
  gap: 10px;
}

.food-item img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
}

.food-item button {
  margin-left: auto;
  padding: 6px 12px;
  background-color: #d84315;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.food-item button:hover {
  background-color: #bf360c;
}

/* Cart Page */
.cart-page {
  padding: 20px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  background: #fff3e0;
  padding: 10px;
  border-radius: 10px;
  gap: 10px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item span {
  flex: 1;
  font-weight: bold;
}

.cart-item button {
  padding: 5px 10px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cart-summary {
  text-align: center;
}

.cart-summary h3 {
  margin-bottom: 15px;
}

.checkout-btn {
  padding: 10px 20px;
  background-color: #d84315;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* Checkout Page */
.checkout-page {
  padding: 20px;
}

.checkout-page h2 {
  font-size: 22px;
  color: #2e7d32;
  margin-bottom: 20px;
}

.checkout-page h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 18px;
  color: #d84315;
}

.checkout-page input[type="text"],
.checkout-page input[type="month"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.payment-fields label {
  display: block;
}

.checkout-btn:hover {
  background-color: #bf360c;
}

/* Order History */
.order-history-page {
  padding: 20px;
}

.order-card {
  background-color: #fff3e0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  color: #d84315;
}

.order-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.order-item span.price {
  margin-left: auto;
  font-weight: bold;
  color: #2e7d32;
}

.order-footer p {
  margin: 4px 0;
  font-size: 14px;
}

.print-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.print-btn:hover {
  background-color: #1b5e20;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -260px;
  top: 0;
  height: 100%;
  width: 250px;
  background: #fff3e0;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidebar.show {
  left: 0;
}

.sidebar .user-info {
  margin-bottom: 30px;
  font-size: 16px;
}

.sidebar .user-info h3 {
  margin-bottom: 8px;
  color: #d84315;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 12px 0;
  border-bottom: 1px solid #ffe0b2;
  font-size: 15px;
  cursor: pointer;
}

.logout {
  margin-top: 30px;
  padding: 10px;
  background: #f44336;
  color: white;
  border: none;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: #d84315;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 10px;
}

.bottom-nav .nav-item:hover {
  background-color: #fff3e0;
  transform: scale(1.05);
}

.bottom-nav .nav-item small {
  margin-top: 4px;
  font-size: 12px;
}

/* Loader */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #d84315;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Media queries */
@media (min-width: 600px) {
  .food-item,
  .cart-item,
  .order-item {
    flex: 1 1 45%;
  }
}

@media (min-width: 900px) {
  .form-container {
    max-width: 600px;
  }

  .food-item,
  .cart-item,
  .order-item {
    flex: 1 1 30%;
  }
}

/* Base styles */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

.main-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px;
}

.sidebar {
  min-width: 150px;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Food items */
.food-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffe5b4;
  border-radius: 10px;
  padding: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive Design for Small Screens */
@media screen and (max-width: 768px) {
  .main-container {
    flex-direction: column;
    align-items: center;
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .food-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .food-item img {
    max-width: 120px;
    height: auto;
  }

  .content {
    width: 100%;
    padding: 0 10px;
  }
}

.food-item img {
  width: 80px;
  height: auto;
  border-radius: 8px;
}

.food-item button {
  background-color: #f4511e;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}

.food-item button:hover {
  background-color: #d84315;
}


 {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      max-width: 100vw;
      overflow-x: hidden;
    }

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #d84315;
      color: white;
      padding: 10px 15px;
    }

    .sidebar {
      background: #fff3e0;
      padding: 15px;
      width: 250px;
      position: fixed;
      top: 0;
      left: -260px;
      height: 100%;
      transition: left 0.3s ease;
      z-index: 1000;
    }

    .sidebar.active {
      left: 0;
    }

    .category-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      padding: 10px;
      background: #fffaf0;
    }

    .category-btn {
      flex: 1 1 40%;
      padding: 12px;
      background: #ffa726;
      border: none;
      color: white;
      font-weight: bold;
      border-radius: 8px;
      text-align: center;
    }

    main#foodDisplay {
      padding: 20px;
    }

    .bottom-nav {
      position: fixed;
      bottom: 0;
      width: 100%;
      background: #ffe0b2;
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 8px 0;
      border-top: 1px solid #ccc;
      z-index: 999;
    }

    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: #d84315;
      font-size: 18px;
    }

    .nav-item small {
      font-size: 12px;
    }

    @media screen and (min-width: 768px) {
      .category-btn {
        flex: 0 1 auto;
      }

      .sidebar {
        left: 0;
        position: relative;
        height: auto;
        width: 220px;
      }

      .bottom-nav {
        position: static;
      }
    }
