/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Splash Screen Styles (index.html) */
.splash-body {
  justify-content: center;
  align-items: center;
  background-color: white;
}

.splash-container {
  width: calc(100% - 2rem);
  max-width: 600px;
  aspect-ratio: 16 / 9;
  margin: 1rem;
  background-color: #00bcd4;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.splash-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.splash-container:active {
  transform: translateY(0);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Welcome Screen Styles (main.html) */
.welcome-body {
  background-color: #f5f5f5;
  position: relative;
}

/* Update the top section height and padding */
.top-section {
  background-color: transparent; /* Remove background as it's handled by body::before */
  height: 35vh; /* Match the card container top position */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem; /* Increased padding-top */
  position: relative;
  z-index: 1;
}

/* Adjust the logo text size and spacing */
.logo-text {
  color: white;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem; /* Add bottom margin for extra spacing */
}

/* Update the card container positioning */
.card-container {
  position: absolute;
  top: 35vh; /* Changed from 30vh to 35vh to move it lower */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  min-height: 400px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 1.5rem;
}

.sun-icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: #ffb300;
}

.messages-panel {
  flex: 1;
  margin: 2rem 0;
}

/* Login/GetTable Shared Styles */
.input-screen-body {
  background: #f5f5f5;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Add a pseudo-element for the top gradient */
.input-screen-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background-color: #00bcd4;
  z-index: 0;
}

/* Ensure the content stays above the background */
.top-section,
.card-container {
  position: relative;
  z-index: 1;
}

.password-input,
.table-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.25rem;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.keypad-button {
  background-color: #fafafa;
  border: none;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.keypad-button:hover {
  background-color: #f5f5f5;
}

.keypad-button:active {
  background-color: #eeeeee;
}

.action-button {
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.action-button:hover {
  background-color: #00acc1;
}

.action-button:active {
  background-color: #0097a7;
}

.back-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.backspace-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: white;
}

/* Mesas Styles */
.header {
  background-color: #00bcd4;
  padding: 0.67rem;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
  padding: 0.5rem 0;
}

.back-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.33rem;
  display: flex;
  align-items: center;
}

.back-arrow {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}

.title {
  color: white; /* Changed from #666666 to white */
  font-size: 2.4rem; /* Doubled from 1.2rem */
  text-align: center;
  margin-bottom: 1.5rem;
  white-space: nowrap; /* Ensures text stays in one line */
}

.user-icon {
  width: 60px;
  height: 60px;
}

.header-bottom {
  display: flex;
  justify-content: flex-end;
  font-size: 1.1rem; /* Reduced from 1.3rem */
  line-height: 1.3;
  height: 1.3rem;
  margin-top: 0.2rem;
}

.username {
  margin-right: 0.25rem;
}

/* Options and Filters Bar Styles */
.scrollable-bar {
  background-color: #f5f5f5;
  padding: 0.75rem 0.75rem;
  margin: 0.375rem 0.375rem;
  border-radius: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #9e9e9e #e0e0e0;
}

.scrollable-bar::-webkit-scrollbar {
  height: 4px;
  display: block;
}

.scrollable-bar::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 2px;
}

.scrollable-bar::-webkit-scrollbar-thumb {
  background: #9e9e9e;
  border-radius: 2px;
}

.scrollable-bar::-webkit-scrollbar-thumb:hover {
  background: #757575;
}

.option-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 4.8rem;
  color: #616161;
  position: relative; /* Added for the active indicator */
  padding-bottom: 8px; /* Added to make room for the indicator */
  transition: color 0.2s ease; /* Smooth transition for color change */
}

/* Add these new styles for the active option button state */
.option-button.active {
  color: #00bcd4; /* Use the app's primary color for active state */
  font-weight: 500;
}

.option-button.active svg {
  fill: #00bcd4;
}

/* Add a subtle indicator at the bottom of active buttons */
.option-button.active::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: #00bcd4;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1.5px;
}

.option-button:hover {
  color: #424242;
}

.option-button svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
}

.option-button span {
  font-size: 1.05rem;
  white-space: nowrap;
}

.options-container {
  display: flex;
  gap: 1.8rem;
  min-width: min-content;
}

.filters-container {
  display: flex;
  gap: 1.5rem;
  min-width: min-content;
  align-items: center;
}

/* Toggle Switch Styles */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.toggle-label {
  color: #616161;
  font-size: 1rem;
  user-select: none;
}

.toggle-switch {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  background-color: #9e9e9e;
  border-radius: 1rem;
  transition: background-color 0.2s;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-container input {
  display: none;
}

.toggle-container input:checked + .toggle-switch {
  background-color: #4caf50;
}

.toggle-container input:checked + .toggle-switch::after {
  transform: translateX(1.5rem);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  padding: 0; /* Changed from padding: 0 1rem */
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.grid-container {
  flex: 1;
  padding: 0.67rem; /* Changed from padding: 1rem to match header */
  overflow-y: auto;
  margin-bottom: 6.7rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Table Record Styles */
.table-record {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 1rem;
}

.record-header {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  padding: 0.75rem;
  background: #f5f5f5;
  gap: 1.5rem;
}

.collapse-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #616161;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.collapse-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.table-number {
  font-weight: bold;
  font-size: 1.1rem;
}

.header-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #616161;
}

.header-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer Styles */
.footer {
  background-color: #00bcd4;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-button {
  background-color: #f5f5f5;
  border: none;
  width: 3.76rem;
  height: 3.76rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-button.add {
  width: 4.32rem;
  height: 4.32rem;
}

.footer-button svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: #424242;
}

.footer-button.add svg {
  width: 1.84rem;
  height: 1.84rem;
}

/* Record Actions Styles */
.record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2px;
}

.action-btn {
  border: none;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}

.action-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.action-btn.order {
  background: #ffe0b2;
}

.action-btn.menu {
  background: #c8e6c9;
}

.amount {
  background: #ffcdd2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
}

.error-message {
  color: #f44336;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Order Details Styles */
.order-details {
  display: none;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.order-details.visible {
  display: block;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #ffffff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.no-orders {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 1.1rem;
}

.order-details-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 0.75rem;
}

.order-item {
  padding: 0.5rem;
  background: #f5f5f5;
}

.order-sub-item {
  padding: 0.5rem;
  padding-left: 1rem;
}

.order-quantity {
  font-weight: 500;
  text-align: center;
  min-width: 2rem;
}

.order-description {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-description svg {
  width: 1rem;
  height: 1rem;
  color: #616161;
}

.order-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 5rem;
}

/* Add this new class for the main page */
.main-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  min-height: 300px;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #666;
  font-size: 1.5rem;
  padding: 1rem 0;
}

.sun-icon {
  width: 2rem;
  height: 2rem;
  fill: #ffb300;
}

/* Update the enter button styles */
.enter-button {
  background-color: #00bcd4;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: auto;
}

.enter-button:hover {
  background-color: #00acc1;
}

/* Add this new class for the enter button */
/*.enter-button {
background-color: #00bcd4;
color: white;
border: none;
border-radius: 0.5rem; /* Reduced from 2rem to 0.5rem for less rounded corners */
/*padding: 1rem 3rem;
font-size: 1.2rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease;
text-decoration: none;
text-align: center;
width: 140%; /* Increased from 100% to 140% to make it 40% wider */
/*max-width: 280px; /* Added max-width for larger screens */
/*margin: 0 auto;
display: inline-block;
}*/

/*.enter-button:hover {
background-color: #00acc1;
}

/*.enter-button:active {
background-color: #0097a7;
}*/

/* Responsive Styles */
@media (max-width: 480px) {
  .splash-container {
    width: calc(100% - 2rem);
    margin: 1rem;
    border-radius: 1rem;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .logo-text {
    font-size: 2.5rem;
  }

  .card-container {
    width: 95%;
    padding: 1.5rem;
  }

  .greeting {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 1rem 1.33rem;
  }

  .title {
    font-size: 3.2rem;
  }

  .user-icon {
    width: 72px;
    height: 72px;
  }

  .back-arrow {
    width: 24px;
    height: 24px;
  }
}

/* Add a media query to ensure title fits on smaller screens */
@media (max-width: 360px) {
  .title {
    font-size: 1.1rem;
  }
}

/* Update/Add these styles to your existing styles.css */

/* Update the login-body background to create the split effect */
.login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, #00bcd4 0%, #00bcd4 45%, #f5f5f5 45%, #f5f5f5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Adjust the login container padding to better position the card */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

/* Ensure the login card has proper shadow for contrast against both backgrounds */
.login-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: auto;
  margin-bottom: auto;
}

.login-logo {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.login-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-title {
  color: #666;
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
  background: white;
}

.login-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.keypad-btn {
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
}

.keypad-btn.number {
  background-color: #f5f5f5;
  color: #333;
}

.keypad-btn.action {
  background-color: #00bcd4;
  color: white;
  font-size: 1.2rem;
}

.keypad-btn.action svg {
  width: 1.5rem;
  height: 1.5rem;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.action-btn {
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
}

.action-btn.back svg {
  width: 2rem; /* Increased from 1.5rem */
  height: 2rem; /* Increased from 1.5rem */
  stroke: currentColor;
  fill: none;
}

.action-btn:hover {
  background-color: #00acc1;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .login-logo {
    font-size: 3rem;
    margin-bottom: 3rem;
  }

  .login-card {
    padding: 2.5rem;
  }
}

@media (max-width: 360px) {
  .login-card {
    padding: 1.5rem;
  }

  .keypad-btn {
    min-height: 3rem;
  }
}

/* GetTable Page Styles */
.get-table-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, #00bcd4 0%, #00bcd4 45%, #f5f5f5 45%, #f5f5f5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.get-table-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.get-table-logo {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.get-table-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: auto;
  margin-bottom: auto;
}

.get-table-title {
  color: #666;
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
  margin-bottom: 1.5rem;
}

.get-table-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
  background: white;
}

.get-table-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.get-table-btn {
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  transition: background-color 0.2s;
}

.get-table-btn.number {
  background-color: #f5f5f5;
  color: #333;
}

.get-table-btn.number:hover {
  background-color: #e0e0e0;
}

.get-table-btn.action {
  background-color: #00bcd4;
  color: white;
  font-size: 1.2rem;
}

.get-table-btn.action:hover {
  background-color: #00acc1;
}

.get-table-btn.action svg {
  width: 1.5rem;
  height: 1.5rem;
}

.get-table-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.get-table-action-btn {
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  transition: background-color 0.2s;
}

.get-table-action-btn:hover {
  background-color: #00acc1;
}

.get-table-action-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Responsive adjustments for getTable page */
@media (min-width: 768px) {
  .get-table-logo {
    font-size: 3rem;
    margin-bottom: 3rem;
  }

  .get-table-card {
    padding: 2.5rem;
  }
}

@media (max-width: 360px) {
  .get-table-card {
    padding: 1.5rem;
  }

  .get-table-btn {
    min-height: 3rem;
  }
}

/* Add these styles at the end of the file */

/* Products Menu Page Styles */
.products-menu-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}

.products-menu-header {
  background-color: #00bcd4;
  padding: 1rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 72px; /* Explicitly set height */
}

.products-menu-back-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.products-menu-back-arrow {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

.products-menu-title {
  color: white;
  font-size: 2.4rem;
  text-align: center;
  margin: 0;
  flex-grow: 1;
}

.products-menu-spacer {
  width: 24px; /* Same width as back button for balance */
}

/* Categories Bar Styles for Products Menu */
.products-categories-bar {
  background-color: #f5f5f5;
  padding: 0.75rem 0.75rem;
  margin: 0;
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #9e9e9e #e0e0e0;
  position: fixed;
  top: 72px; /* Position below header */
  left: 0;
  right: 0;
  z-index: 25;
  border-bottom: 1px solid #e0e0e0;
  height: 60px; /* Explicitly set height */
}

.products-categories-bar::-webkit-scrollbar {
  height: 4px;
  display: block;
}

.products-categories-bar::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 2px;
}

.products-categories-bar::-webkit-scrollbar-thumb {
  background: #9e9e9e;
  border-radius: 2px;
}

.products-categories-bar::-webkit-scrollbar-thumb:hover {
  background: #757575;
}

.products-categories-container {
  display: flex;
  gap: 1.5rem;
  min-width: min-content;
}

.category-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 4.8rem;
  color: #616161;
  position: relative;
  padding: 0.5rem 0.75rem;
  padding-bottom: 8px;
  transition: color 0.2s ease;
  text-align: center;
}

.category-button.active {
  color: #00bcd4;
  font-weight: 500;
}

.category-button.active::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: #00bcd4;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1.5px;
}

.category-button:hover {
  color: #424242;
}

.category-button span {
  font-size: 1rem;
  /* Allow text to wrap for multi-word categories */
  white-space: normal;
  max-width: 100px;
  line-height: 1.2;
}

/* Search Bar Styles */
.products-search-container {
  background-color: #f5f5f5;
  padding: 0.75rem;
  position: fixed;
  top: 132px; /* Position below categories bar (72px header + 60px categories) */
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 60px; /* Explicitly set height */
}

.products-search-form {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.products-search-input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  height: 100%;
}

.products-search-button {
  background: none;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #616161;
  height: 100%;
}

.products-search-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.products-search-clear {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: none; /* Hidden by default, shown when search has input */
  color: #9e9e9e;
  height: 100%;
}

.products-search-clear.visible {
  display: flex;
}

.products-search-clear svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Main Content Area */
.products-menu-content {
  flex: 1;
  overflow-y: auto;
  padding-top: 192px; /* Add padding to account for fixed header (72px) + categories (60px) + search (60px) */
  padding-bottom: 5.5rem;
  position: relative;
  z-index: 10;
}

.products-menu-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.products-menu-category {
  margin-bottom: 2rem;
}

.products-menu-category-header {
  background-color: #e0e0e0;
  padding: 0.75rem 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: #424242;
  border-radius: 0.5rem 0.5rem 0 0;
  margin-bottom: 0.5rem;
}

.products-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.products-menu-item {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.products-menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.products-menu-item-content {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.products-menu-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.products-menu-item-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

.products-menu-item-price {
  font-size: 1rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.products-menu-item-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.products-menu-action-button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-menu-action-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.products-menu-action-button.modify svg {
  fill: #f44336;
}

.products-menu-action-button.cart svg {
  fill: #00bcd4;
}

.products-menu-action-button.next svg {
  stroke: #00bcd4;
  fill: none;
  stroke-width: 2;
}

.products-menu-no-items {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .products-menu-header {
    padding: 1.25rem;
    height: 90px; /* Larger height for bigger screens */
  }

  .products-menu-back-arrow {
    width: 28px;
    height: 28px;
  }

  .products-menu-title {
    font-size: 3rem;
  }

  .products-categories-bar {
    top: 90px; /* Adjust for larger header on bigger screens */
    height: 70px; /* Larger height for bigger screens */
  }

  .products-search-container {
    top: 160px; /* Adjust for larger header (90px) and categories bar (70px) on bigger screens */
    height: 70px; /* Larger height for bigger screens */
  }

  .products-menu-content {
    padding-top: 230px; /* Adjust padding for larger header (90px) + categories (70px) + search (70px) */
  }

  .products-menu-item-content {
    padding: 1.25rem;
  }

  .products-menu-item-name {
    font-size: 1.25rem;
  }

  .category-button span {
    font-size: 1.1rem;
    max-width: 120px;
  }

  .products-menu-item-price {
    font-size: 1.1rem;
  }

  .products-menu-action-button svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .products-search-input {
    font-size: 1.1rem;
  }

  .products-search-button svg,
  .products-search-clear svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 480px) {
  .products-menu-container {
    padding: 0.75rem;
  }

  .products-menu-category-header {
    font-size: 1.1rem;
    padding: 0.6rem 0.75rem;
  }

  .products-menu-item-content {
    padding: 0.75rem;
  }

  .category-button {
    min-width: 4rem;
    padding: 0.4rem 0.5rem;
  }

  .category-button span {
    font-size: 0.9rem;
    max-width: 80px;
  }
}

/* Subcategories Bar Styles */
.products-subcategories-bar {
  background-color: #f5f5f5;
  padding: 0.75rem 0.75rem;
  margin: 0;
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #9e9e9e #e0e0e0;
  position: fixed;
  top: 132px; /* Position below categories bar */
  left: 0;
  right: 0;
  z-index: 24;
  border-bottom: 1px solid #e0e0e0;
  height: 60px;
}

.products-subcategories-bar::-webkit-scrollbar {
  height: 4px;
  display: block;
}

.products-subcategories-bar::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 2px;
}

.products-subcategories-bar::-webkit-scrollbar-thumb {
  background: #9e9e9e;
  border-radius: 2px;
}

.products-subcategories-bar::-webkit-scrollbar-thumb:hover {
  background: #757575;
}

.products-subcategories-container {
  display: flex;
  gap: 1.5rem;
  min-width: min-content;
}

/* Update search container position to account for subcategories bar */
.products-search-container {
  top: 192px; /* Update to account for subcategories bar (72px header + 60px categories + 60px subcategories) */
}

/* Update main content padding */
.products-menu-content {
  padding-top: 252px; /* Update padding (72px header + 60px categories + 60px subcategories + 60px search) */
  padding-bottom: 5.5rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .products-subcategories-bar {
    top: 160px; /* Adjust for larger header */
    height: 70px;
  }

  .products-search-container {
    top: 230px; /* Adjust for larger components */
  }

  .products-menu-content {
    padding-top: 300px; /* Adjust padding for larger components */
  }
}

/* Products Menu Footer Styles */
.products-menu-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #00bcd4;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-buttons-container {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  gap: 0.75rem; /* Consistent gap between all buttons */
  position: relative; /* Add position relative for absolute positioning of confirm button */
  padding-top: 0.5rem; /* Add padding to make room for the larger confirm button */
  padding-bottom: 0.5rem;
}

/* Add specific margin to the configuration button (second button) */
.footer-buttons-container button:nth-child(2) {
  margin-left: 0.75rem; /* Additional margin to increase gap with share button */
}

/* Center the confirm button absolutely in the footer */
.footer-buttons-container button:nth-child(3) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Push the refresh button to the right */
.footer-buttons-container button:nth-child(4) {
  justify-self: end;
}

.footer-button {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-button:hover {
  transform: translateY(-2px);
  background-color: #f5f5f5;
}

.footer-button:active {
  transform: translateY(0);
}

.footer-button svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #333; /* Changed to black color */
  fill: currentColor;
}

.footer-button.confirm-button {
  width: 4.5rem; /* Increased from 3.5rem */
  height: 4.5rem; /* Increased from 3.5rem */
  z-index: 1001; /* Ensure it appears above other elements */
}

.footer-button.confirm-button svg {
  color: #4caf50;
  width: 2.25rem; /* Increased from 1.75rem */
  height: 2.25rem; /* Increased from 1.75rem */
}

