/*============================================
  Modern Dinner Order System Styles
  Inspired by main website design
============================================*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root variables */
:root {
  --primary-green: #90c54b;
  --primary-blue: #52c5fd;
  --primary-orange: #f8b600;
  --accent-purple: #8e44ad;
  --accent-coral: #e67e22;
  --accent-teal: #16a085;
  --dark-bg: #04091e;
  --text-dark: #222222;
  --text-gray: #777777;
  --border-color: #eee;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base overrides */
body {
  font-family: 'Poppins', sans-serif !important;
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 50%, #2ecc71 100%);
  min-height: 100vh;
  margin: 0 auto !important;
  padding: 0;
}

/* Header styling - modern pill design */
.div-sans-scroll {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px 20px 20px 20px;
  padding: 20px 20px 15px 20px !important;
  position: relative;
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 400px;
  margin: 20px auto 0 auto;
}

/* Modern select inputs */
select.entete {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  transition: var(--transition) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

select.entete:hover {
  border-color: var(--primary-green) !important;
  box-shadow: 0 4px 12px rgba(144, 197, 75, 0.2) !important;
  transform: translateY(-1px);
}

select.entete:focus {
  outline: none !important;
  border-color: var(--primary-green) !important;
  box-shadow: 0 0 0 3px rgba(144, 197, 75, 0.15) !important;
}

/* Modern pill button */
input.entete {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a) !important;
  color: white !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 14px 30px !important;
  font-size: 14px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(144, 197, 75, 0.3);
  margin: 12px 0 !important;
}

input.entete:hover {
  background: linear-gradient(135deg, #7ba83a, var(--primary-green)) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(144, 197, 75, 0.4) !important;
}

input.entete:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Main menu container - unified design */
#beaumenu {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px !important;
  padding: 15px !important;
  box-shadow: 0 4px 20px rgba(144, 197, 75, 0.15) !important;
  margin: 25px 0 10px 0 !important;
  border: 1px solid rgba(144, 197, 75, 0.2) !important;
}

/* Modern tab navigation - integrated with menu container */
.w3-row.w3-center.w3-border {
  background: rgba(255, 255, 255, 0.8) !important; /* White background with transparency */
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  border: none !important;
  border-radius: 16px !important; /* Rounded edges */
  padding: 8px 8px 10px 8px !important; /* Adjusted padding */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  gap: 4px !important;
  overflow-x: visible;
  flex-wrap: wrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 12px !important;
}

/* Modern modal styling - SOLID WHITE to eliminate teal filter */
.modern-modal {
  background: #ffffff !important; /* Solid white - no transparency */
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(144, 197, 75, 0.2) !important;
  border: 1px solid rgba(144, 197, 75, 0.3) !important;
  overflow: hidden !important;
  backdrop-filter: none !important; /* Force remove backdrop filter */
  -webkit-backdrop-filter: none !important; /* Force remove backdrop filter */
}

.modern-modal-header {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-teal)) !important;
  color: white !important;
  border-radius: 20px 20px 0 0 !important;
  border-bottom: 2px solid rgba(144, 197, 75, 0.3) !important;
  position: relative;
  backdrop-filter: none !important; /* Force remove backdrop filter */
  -webkit-backdrop-filter: none !important; /* Force remove backdrop filter */
}

.modern-modal-header h4 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: white !important;
}

.modern-modal-section {
  background: #ffffff !important; /* Solid white */
  border-bottom: 1px solid rgba(144, 197, 75, 0.2) !important;
  backdrop-filter: none !important; /* Force remove backdrop filter */
  -webkit-backdrop-filter: none !important; /* Force remove backdrop filter */
}

.modern-modal-content {
  background: #ffffff !important; /* Solid white */
  backdrop-filter: none !important; /* Force remove backdrop filter */
  -webkit-backdrop-filter: none !important; /* Force remove backdrop filter */
}

.modern-modal-footer {
  background: #ffffff !important; /* Solid white */
  border-top: 1px solid rgba(144, 197, 75, 0.2) !important;
  border-radius: 0 0 20px 20px !important;
  backdrop-filter: none !important; /* Force remove backdrop filter */
  -webkit-backdrop-filter: none !important; /* Force remove backdrop filter */
}

/* Fix for close button - ensure it's always clickable */
.modern-modal-header .w3-button.w3-display-topright {
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition) !important;
  font-weight: 300 !important;
  font-size: 24px !important;
  padding: 0 !important;
  margin: 10px !important;
  color: white !important;
  border: none !important;
  z-index: 1001 !important;
  cursor: pointer !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
}

.modern-modal-header .w3-button.w3-display-topright:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: rotate(90deg) scale(1.1) !important;
  color: white !important;
}

/* Ensure all text in modal maintains proper color */
.modern-modal * {
  color: inherit !important;
}

.modern-instruction-text,
.modern-label-text,
.modern-info-text {
  color: var(--text-dark) !important;
}

/* Fix scrolling behavior - solid white background */
#ListOfOrderedItems {
  background: #ffffff !important;
  backdrop-filter: none !important; /* Force remove backdrop filter */
  -webkit-backdrop-filter: none !important; /* Force remove backdrop filter */
}

.modern-instruction-text {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  text-align: center !important;
}

/* Order status message styling */
#StatusMessage {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  text-align: center !important;
  line-height: 1.5 !important;
}

/* Status content styling */
#Status {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

#Status p {
  font-size: 16px !important;
  margin: 10px 0 !important;
}

.modern-label-text {
  color: var(--text-dark) !important;
  font-weight: 500 !important;
}

.modern-info-text {
  color: #666 !important;
}

.modern-textarea {
  font-size: 12px !important;
  width: 100% !important;
  margin: 8px 0 !important;
  border: 2px solid rgba(144, 197, 75, 0.3) !important;
  border-radius: 10px !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modern-textarea:focus {
  border-color: var(--primary-green) !important;
  outline: none !important;
  box-shadow: 0 0 10px rgba(144, 197, 75, 0.3) !important;
}

.modern-back-btn {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #666 !important;
  border: 2px solid rgba(144, 197, 75, 0.3) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modern-back-btn:hover {
  background-color: rgba(248, 250, 252, 0.9) !important;
  border-color: var(--primary-green) !important;
}

.modern-place-order-btn {
  background-color: #D5AE41 !important;
  color: #000000 !important;
  font-weight: bold !important;
  border: 2px solid #B8941F !important;
  box-shadow: 0 4px 15px rgba(213, 174, 65, 0.3) !important;
}

.modern-place-order-btn:hover {
  background-color: #F1EA7F !important;
  box-shadow: 0 6px 20px rgba(213, 174, 65, 0.4) !important;
  transform: translateY(-2px) !important;
}

.w3-row.w3-center.w3-border::-webkit-scrollbar {
  display: none;
}

.tablink {
  background: transparent !important;
  border: none !important;
  border-radius: 12px !important;
  color: var(--text-gray) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 8px 10px !important;
  transition: var(--transition) !important;
  cursor: pointer !important;
  white-space: nowrap;
  flex: 1;
  min-width: fit-content;
}

.tablink:hover {
  background: linear-gradient(135deg, rgba(144, 197, 75, 0.2), rgba(82, 197, 253, 0.2)) !important;
  color: var(--primary-green) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(144, 197, 75, 0.3);
}

.tablink.w3-red {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a) !important;
  color: white !important;
  box-shadow: 0 2px 10px rgba(144, 197, 75, 0.3);
}

/* Vegetarian message styling */
#VegMsg {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px !important;
  padding: 15px 18px !important;
  margin: 15px 0 !important;
  border: 3px solid rgba(46, 204, 113, 0.6) !important;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3) !important;
  color: #000000 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Menu items container */
.beaumenu {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px !important;
  padding: 15px !important;
  box-shadow: 0 4px 20px rgba(144, 197, 75, 0.15) !important;
  margin: 10px 0 !important;
  border: 1px solid rgba(144, 197, 75, 0.2) !important;
}

/* Section buttons (for menu sub-categories) */
.fmt_section_btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 15px !important;
  padding: 10px 15px !important;
  margin: 8px 0 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: var(--text-dark) !important;
  transition: var(--transition) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.fmt_section_btn:hover {
  background: white !important;
  border-color: var(--primary-green) !important;
  color: var(--primary-green) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 197, 75, 0.2) !important;
}

.fmt_section_btn.w3-red {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(144, 197, 75, 0.3) !important;
}

/* Menu items table */
#ZiMenu table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#ZiMenu tr {
  background: transparent;
  border-radius: 12px;
  transition: var(--transition);
}

#ZiMenu tr:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Quantity controls */
.w3-input.w3-border {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
}

.Menu {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 4px 0 !important;
  text-align: left !important;
}

/* Quantity buttons */
.w3-green {
  color: var(--primary-green) !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  user-select: none !important;
}

.w3-green:hover {
  color: #7ba83a !important;
  transform: scale(1.2);
}

/* Menu item container layout */
.menu-item-container {
  min-height: 52px !important; /* Increased from 48px */
  gap: 12px !important; /* Increased from 10px */
  padding: 16px 0 !important; /* Increased padding for better centering */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Subtle separator line */
  display: flex !important;
  align-items: center !important; /* Vertically center all content */
  justify-content: space-between !important; /* Space out price and controls */
}

.menu-item-name {
  flex: 1;
  min-width: 0; /* Allow text to wrap */
  display: flex;
  align-items: center;
}

.menu-item-name p {
  margin: 0 !important;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.3 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.menu-item-name p b {
  flex: 1;
  min-width: 0;
}

.menu-item-name p i {
  flex-shrink: 0;
  margin-left: 4px;
}

.menu-item-price {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

/* Price tags */
.w3-tag.w3-dark-grey {
  background: linear-gradient(135deg, #333, #555) !important;
  color: white !important;
  border-radius: 12px !important;
  padding: 4px 12px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

/* Pizza price box styling */
.pizza-price-box {
  text-align: center;
  margin: 8px 0;
}

.pizza-price-box .w3-tag.w3-dark-grey {
  background: linear-gradient(135deg, #333, #555) !important;
  color: white !important;
  border-radius: 12px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-block;
  line-height: 1.4;
  text-align: left;
}

/* Info icon */
.fa-info-circle {
  color: var(--text-dark) !important;
  cursor: pointer !important;
  margin-left: 5px !important;
  transition: var(--transition) !important;
}

.fa-info-circle:hover {
  color: #2faae6 !important;
  transform: scale(1.2);
}

/* Seedling icon (vegetarian) */
.fa-seedling {
  color: var(--primary-green) !important;
  font-size: 14px !important;
}

/* Modal styling */
.w3-modal {
  z-index: 1000 !important;
  background-color: #ffffff !important; /* Force solid white background for the backdrop */
  backdrop-filter: none !important; /* Ensure no backdrop filter on the modal itself */
  -webkit-backdrop-filter: none !important;
}

.w3-modal-content {
  background: #ffffff !important; /* Solid white */
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
  max-width: 90% !important;
  margin: 20px auto !important;
  backdrop-filter: none !important; /* Ensure no backdrop filter on content */
  -webkit-backdrop-filter: none !important; /* Ensure no backdrop filter on content */
}

/* Modal header */
.w3-container.w3-2018-sargasso-sea {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a) !important;
  color: white !important;
  padding: 20px !important;
}

.w3-container.w3-2018-martini-olive {
  background: rgba(248, 249, 250, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 15px !important;
  border-top: 1px solid var(--border-color);
}

/* Back and Place Order buttons in modal */
#Back, #PlaceOrder {
  background: linear-gradient(135deg, #f8b600, #e6a700) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 10px 25px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(144, 197, 75, 0.3) !important;
  margin: 5px !important;
}

#Back {
  background: linear-gradient(135deg, #6c757d, #5a6268) !important;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
}

#Back:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4) !important;
}

#PlaceOrder:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(248, 182, 0, 0.4) !important;
}

/* Order items table */
#ZiOrders {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

#ZiOrders tr {
  background: white;
  border-radius: 12px;
  transition: var(--transition);
}

#ZiOrders td {
  vertical-align: middle !important;
  padding: 8px 12px;
}

#ZiOrders td p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ZiOrders .Menu {
  font-size: 12px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ZiOrders .MenuDetail {
  font-size: 10px;
  margin: 0;
  display: flex;
  align-items: center;
}

#ZiOrders tr:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Order quantity tag */
.w3-tag.w3-black {
  background: var(--text-dark) !important;
  border-radius: 10px !important;
  padding: 4px 12px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* Total price tag */
.w3-tag.w3-red {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  border-radius: 12px !important;
  padding: 6px 15px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

/* Total row */
td.total {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
  border: 2px solid var(--primary-green) !important;
  border-radius: 15px !important;
  padding: 15px !important;
  box-shadow: 0 4px 15px rgba(144, 197, 75, 0.2) !important;
}

/* Pizza size selector */
#ZiOrders select {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 15px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

#ZiOrders select:hover {
  border-color: var(--primary-green) !important;
  box-shadow: 0 2px 8px rgba(144, 197, 75, 0.2) !important;
}

/* Message textarea */
#ordermessage {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 15px !important;
  padding: 12px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  color: var(--text-dark) !important;
  transition: var(--transition) !important;
  resize: vertical !important;
  width: 100% !important;
}

#ordermessage:focus {
  outline: none !important;
  border-color: var(--primary-green) !important;
  box-shadow: 0 0 0 3px rgba(144, 197, 75, 0.15) !important;
}

/* Status modal */
.w3-teal {
  background: linear-gradient(135deg, var(--primary-blue), #2faae6) !important;
}

/* Close button */
.w3-button.w3-display-topright {
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition) !important;
  font-weight: 300 !important;
  font-size: 24px !important;
  padding: 0 !important;
  margin: 10px !important;
}

.w3-button.w3-display-topright:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: rotate(90deg) scale(1.1) !important;
}

/* Closebtn for explanation modal */
.w3-closebtn {
  color: white !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  padding: 10px 15px !important;
  transition: var(--transition) !important;
}

.w3-closebtn:hover {
  color: #f8b600 !important;
  transform: scale(1.2) !important;
}

/* Responsive adjustments */
@media (max-width: 340px) {
  body {
    font-size: 12px !important;
  }
  
  .div-sans-scroll {
    padding: 15px 18px !important;
  }
  
  .tablink {
    font-size: 11px !important;
    padding: 8px 10px !important;
  }
  
  select.entete {
    font-size: 13px !important;
    padding: 10px 15px !important;
  }
  
  input.entete {
    font-size: 13px !important;
    padding: 12px 25px !important;
  }
  
  .unit-label {
    font-size: 11px !important;
    margin: 10px 0 5px 0 !important;
  }
  
  .w3-col.s6 .unit-label {
    margin: 14px 0 5px 0 !important;
  }
  
  #CheckOut {
    font-size: 13px !important;
    padding: 12px 22px !important;
  }
  
  select.entete.delivery-time {
    min-width: 90px;
    font-size: 12px !important;
    padding: 8px 10px !important;
  }
  
}

/* Animation classes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.beaumenu {
  animation: slideUp 0.4s ease-out;
}

.w3-animate-top {
  animation: slideUp 0.4s ease-out !important;
}

/* Hover effects for menu items */
.Menu b {
  color: var(--text-dark) !important;
  transition: var(--transition) !important;
}

#ZiMenu tr:hover .Menu b {
  color: var(--primary-green) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7ba83a, var(--primary-green));
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Add glass effect to white containers */
.w3-white {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .div-sans-scroll {
    border-radius: 20px 20px 20px 20px;
    margin: 15px auto 0 auto;
  }
  
  #beaumenu {
    margin-top: 20px !important;
  }
  
  .w3-modal-content {
    max-width: 95% !important;
    margin: 10px auto !important;
  }
  
  /* Ensure delivery time selectors work well on mobile */
  .w3-col.s6 {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  
  select.entete.delivery-time {
    min-width: 85px;
    font-size: 12px !important;
    padding: 8px 8px !important;
  }
  
  .unit-label {
    margin: 10px 0 5px 0 !important;
  }
  
  .w3-col.s6 .unit-label {
    margin: 12px 0 5px 0 !important;
  }
  
  .pizza-price-box .w3-tag.w3-dark-grey {
    font-size: 10px !important;
    padding: 6px 12px !important;
  }
  
  /* Mobile menu item layout adjustments */
  .menu-item-container {
    gap: 6px;
    min-height: 36px;
  }
  
  .menu-item-price {
    min-height: 24px;
  }
  
  .w3-tag.w3-dark-grey {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
}

/* Smooth transitions for all interactive elements */
button, select, input, a {
  transition: var(--transition) !important;
}

/* Focus states for accessibility */
button:focus, select:focus, input:focus {
  outline: 2px solid var(--primary-green) !important;
  outline-offset: 2px !important;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  .tablink, .w3-green, .fa-info-circle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--primary-green);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Card hover effects for menu sections */
.fmt_section {
  animation: slideUp 0.3s ease-out;
}

/* Pulse animation for new items */
@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(144, 197, 75, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(144, 197, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(144, 197, 75, 0);
  }
}

/* Success animation for completed order */
.success-check {
  animation: checkmark 0.8s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(45deg);
  }
  50% {
    transform: scale(1.2) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(45deg);
  }
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.error-shake {
  animation: shake 0.5s ease-in-out;
}

/* Badge notification style (for vegetarian items) */
.veg-badge {
  position: relative;
  display: inline-block;
}

.veg-badge::after {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Enhanced focus visibility for accessibility */
:focus-visible {
  outline: 3px solid var(--primary-green) !important;
  outline-offset: 3px !important;
  border-radius: 8px;
}

/* Dark mode support (optional - can be enabled later) */
@media (prefers-color-scheme: dark) {
  /* Commented out for now, but ready to use if needed
  body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
  */
}

/* Print styles */
@media print {
  .div-sans-scroll,
  .w3-button,
  input.entete,
  .w3-green {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .beaumenu {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  select.entete,
  input.entete,
  .fmt_section_btn {
    border-width: 3px !important;
  }
}

/* Disable hover effects on touch devices (mobile) */
@media (hover: none) and (pointer: coarse) {
  /* Disable all hover effects for touch devices */
  *:hover {
    transform: none !important;
    box-shadow: inherit !important;
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
  }
  
  /* Specific hover overrides for touch devices */
  select.entete:hover,
  input.entete:hover,
  .tablink:hover,
  .fmt_section_btn:hover,
  .w3-green:hover,
  .fa-info-circle:hover,
  .w3-button:hover,
  .w3-closebtn:hover,
  .fab:hover,
  #CheckOut:hover,
  #PlaceOrder:hover,
  #Back:hover {
    transform: none !important;
    box-shadow: inherit !important;
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
    scale: 1 !important;
  }
  
  /* Disable menu item hover effects */
  #ZiMenu tr:hover,
  #ZiOrders tr:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Disable pseudo-element hover effects */
  #ZiMenu tr:hover::before {
    transform: scaleY(0) !important;
  }
  
  /* Disable ripple effects */
  .ripple:active::after {
    width: 0 !important;
    height: 0 !important;
  }
  
  /* Fix scrolling artifacts on mobile */
  body {
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Disable backdrop-filter on mobile to prevent rendering issues */
  .div-sans-scroll,
  .w3-row.w3-center.w3-border,
  .beaumenu,
  .w3-white,
  #VegMsg,
  .modern-modal,
  .modern-modal-header,
  .modern-modal-section,
  .modern-modal-content,
  .modern-modal-footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }
  
  /* Fix modal transparency issues on mobile */
  .w3-modal-content {
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Fix order summary modal specifically */
  #TheList .w3-modal-content {
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  #TheList .modern-modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-teal)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  #TheList .modern-modal-section {
    background: rgba(248, 250, 252, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  #TheList .modern-modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  #TheList .modern-modal-footer {
    background: rgba(248, 250, 252, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Ensure smooth scrolling without artifacts */
  * {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  
  /* Fix table rendering issues during scroll */
  table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  
  /* Prevent table wireframe artifacts */
  #ZiMenu,
  #ZiOrders {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  
  #ZiMenu tr,
  #ZiOrders tr {
    background: transparent !important;
    border: none !important;
  }
  
  /* Fix touch scrolling issues in modals */
  .w3-modal {
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Prevent modal content from becoming transparent during scroll */
  #TheList,
  #TheStatus,
  #TheExpl {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Enhanced hover state for menu items */
#ZiMenu tr {
  position: relative;
  overflow: hidden;
}

#ZiMenu tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-green), #7ba83a);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

#ZiMenu tr:hover::before {
  transform: scaleY(1);
}

/* Tooltip styling for info icons */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background: rgba(34, 34, 34, 0.95);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  font-size: 11px;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tooltip .tooltiptext::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(34, 34, 34, 0.95) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Enhanced modal animations */
.w3-modal.show {
  animation: fadeIn 0.3s ease-out;
}

.w3-modal-content.show {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Skeleton loading for menu items */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced checkbox/radio for side orders */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a);
  border-color: var(--primary-green);
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Checkout button redesign - 2X BIGGER */
#CheckOut {
  background: linear-gradient(135deg, var(--primary-orange), #e6a700) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 36px !important; /* Increased from 28px to 36px */
  padding: 20px 40px !important; /* Increased from 14px/25px to 20px/40px */
  font-weight: 700 !important; /* Increased from 600 to 700 */
  font-size: 18px !important; /* Increased from 14px to 18px */
  letter-spacing: 0.5px !important; /* Increased from 0.3px */
  box-shadow: 0 10px 30px rgba(248, 182, 0, 0.4) !important; /* Enhanced shadow */
  min-height: 60px !important; /* Added minimum height */
  line-height: 1.2 !important; /* Better text vertical alignment */
}

#CheckOut:hover {
  transform: translateY(-3px) scale(1.05); /* Enhanced hover effect */
  box-shadow: 0 16px 35px rgba(248, 182, 0, 0.5) !important;
}

#CheckOut:active {
  transform: translateY(0) scale(0.98);
}

/* Center checkout button in its row */
#CheckOut {
  display: block !important;
  margin: 20px auto !important; /* Increased from 12px to 20px */
}

/* Delivery time summary styling */
#deliveryTimeSummary {
  font-size: 13px !important;
  margin: 10px 0 !important;
  font-weight: bold !important;
  color: white !important;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-teal)) !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  display: inline-block !important;
  box-shadow: 0 4px 15px rgba(144, 197, 75, 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Make checkout and place order buttons darker by default */
#CheckOut {
  background-color: var(--primary-orange) !important;
  color: white !important;
  opacity: 1 !important;
}

#PlaceOrder {
  background-color: #f8b600 !important;
  color: #fff !important;
  opacity: 1 !important;
}

#CheckOut:hover {
  background-color: var(--primary-orange) !important;
  color: white !important;
  opacity: 1 !important;
}

#PlaceOrder:hover {
  background-color: #f8b600 !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* Checkout modal improvements */
#TheList .w3-modal-content {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

#TheList .w3-container {
  border-radius: 0;
}

#TheList #ListOfOrderedItems {
  padding: 16px;
}

#TheList #ListOfOrderedItems table {
  width: 100%;
  border-collapse: collapse;
}

#TheList #ListOfOrderedItems tr {
  border-bottom: 1px solid #f0f0f0;
}

#TheList #ListOfOrderedItems tr:last-child {
  border-bottom: none;
}

#TheList #ListOfOrderedItems td {
  padding: 8px 0;
}

#TheList .w3-tag {
  border-radius: 12px;
  font-size: 11px;
  padding: 4px 8px;
}

#TheList .w3-tag.w3-black {
  background-color: var(--primary-green) !important;
  color: white !important;
}

#TheList .w3-tag.w3-red {
  background-color: #e74c3c !important;
  color: white !important;
}

#TheList .total {
  background: linear-gradient(135deg, #1abc9c, #16a085, #2ecc71) !important;
  border: none !important;
  border-radius: 15px !important;
  margin-top: 16px !important;
  box-shadow: 0 4px 15px rgba(22, 160, 133, 0.3) !important;
}

#TheList .total td {
  padding: 12px !important;
  font-weight: bold;
  font-size: 14px;
  color: white !important;
  text-align: center !important;
  vertical-align: middle !important;
  width: 100% !important;
}

#TheList .total td p {
  text-align: center !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#TheList .total .Menu {
  font-size: 24px !important;
  text-align: center !important;
  color: white !important;
}

#TheList .total .Menu b {
  color: white !important;
  font-size: 24px !important;
  font-weight: bold !important;
  margin-right: 15px !important;
}

#TheList .total .w3-tag.w3-red {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  font-size: 18px !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: bold !important;
  float: none !important;
  display: inline-block !important;
}

#TheList .total .w3-right {
  float: none !important;
  text-align: center !important;
  display: inline-block !important;
}

/* Floating action button style (could be used for quick order) */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-green), #7ba83a);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(144, 197, 75, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(144, 197, 75, 0.5);
}

.fab:active {
  transform: translateY(-2px) scale(0.95);
}

/* Ripple effect for buttons */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Enhanced quantity input */
input[type="number"].w3-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"].w3-input::-webkit-outer-spin-button,
input[type="number"].w3-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Gradient text effect for headings */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card stacking effect */
.card-stack {
  position: relative;
}

.card-stack::before,
.card-stack::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: inherit;
  z-index: -1;
}

.card-stack::before {
  top: 4px;
  transform: scale(0.98);
}

.card-stack::after {
  top: 8px;
  transform: scale(0.96);
}

/* Success message styling */
.success-message {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
  animation: slideUp 0.4s ease-out;
}

/* Error message styling */
.error-message {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
  animation: shake 0.5s ease-in-out;
}

/* Ensure header labels are visible */
.div-sans-scroll .petit { 
  color: var(--text-dark) !important;
}

/* Header column widths for better select space */
.div-sans-scroll .w3-left.w3-medium.petit { width: 20% !important; }
.div-sans-scroll .w3-left.w3-medium:not(.petit) { width: 60% !important; }
.div-sans-scroll .w3-right.w3-medium { width: 20% !important; }

/* Widen middle selectors column on small view */

/* Make selectors roomy and prevent cutoff */
select.entete {
  min-width: 160px;
  white-space: nowrap;
}

/* Delivery time selectors - shorter for side by side layout */
select.entete.delivery-time {
  min-width: 100px;
  font-size: 13px !important;
  padding: 10px 12px !important;
}

/* Extra spacing for delivery time labels */
.w3-col.s6 .unit-label {
  margin: 12px 0 6px 0;
}

/* Hours/Minutes and Room labels above selects */
.unit-label {
  display: block;
  margin: 8px 0 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  opacity: 0.8;
}

/* Center the menu area and tabs */
#beaumenu { 
  text-align: center !important; 
  margin: 25px auto 10px auto !important;
  max-width: 400px !important;
  width: 100% !important;
}
#beaumenu .w3-content { 
  margin: 0 auto !important; 
  max-width: 400px !important; 
  width: 100% !important;
}
.w3-row.w3-center.w3-border { justify-content: center !important; }
.tablink { flex: 0 0 auto; min-width: 88px !important; }

/* Replace up/down triangles with + / - via CSS (no backend change) */
#ZiMenu tr td:nth-child(2),
#ZiMenu tr td:nth-child(4) { font-size: 0 !important; }
/* Render minus as a shape to avoid text strike-through */
#ZiMenu tr td:nth-child(2) .w3-green { font-size: 0 !important; position: relative; width: 16px; height: 16px; display: inline-block; }
#ZiMenu tr td:nth-child(2) .w3-green::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--primary-green);
  transform: translate(-50%, -50%);
}
/* Render plus as two bars */
#ZiMenu tr td:nth-child(4) .w3-green { font-size: 0 !important; position: relative; width: 16px; height: 16px; display: inline-block; }
#ZiMenu tr td:nth-child(4) .w3-green::before,
#ZiMenu tr td:nth-child(4) .w3-green::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--primary-green);
}
#ZiMenu tr td:nth-child(4) .w3-green::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
#ZiMenu tr td:nth-child(4) .w3-green::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }

/* Stop rotating warning icon and modernize color */
.fa-warning.fa-spin { animation: none !important; }
.w3-text-deep-orange { color: #e67e22 !important; }

/* Hide warning icon in disclaimers */
.Menu .fa-warning,
.w3-text-deep-orange .fa-warning { 
  display: none !important; 
}

/* Remove italic from disclaimers */
.Menu.w3-text-deep-orange,
.Menu.w3-text-deep-orange i {
  font-style: normal !important;
}

/* Avoid strike-through on controls when item title is crossed out */
#ZiMenu tr[style*="line-through"] .w3-green,
#ZiMenu tr[style*="line-through"] .w3-input,
#ZiMenu tr[style*="line-through"] input.w3-input {
  text-decoration: none !important;
}

/* Modern info modal styling */
#TheExpl .w3-modal-content {
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
  max-width: 450px !important;
  margin: 20px auto !important;
  border: none !important;
}

#TheExpl .w3-container.w3-teal {
  background: linear-gradient(135deg, var(--primary-blue), #2faae6) !important;
  color: white !important;
  padding: 20px 25px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border: none !important;
  position: relative !important;
}

#TheExpl .info-header-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#TheExpl .info-icon {
  font-size: 20px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

#TheExpl .info-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: white !important;
}

/* Status modal styling */
#TheStatus .w3-modal-content {
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
  max-width: 90% !important;
  margin: 20px auto !important;
}

#TheStatus .w3-container {
  border-radius: 0;
}

#TheStatus button {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a) !important;
  color: white !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 12px 30px !important;
  font-size: 14px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(144, 197, 75, 0.3) !important;
}

#TheStatus button:hover {
  background: linear-gradient(135deg, #7ba83a, var(--primary-green)) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(144, 197, 75, 0.4) !important;
}

#TheStatus button:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Okey button styling for info modal */
#TheExpl button {
  background: linear-gradient(135deg, var(--primary-green), #7ba83a) !important;
  color: white !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 12px 30px !important;
  font-size: 14px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(144, 197, 75, 0.3) !important;
}

#TheExpl button:hover {
  background: linear-gradient(135deg, #7ba83a, var(--primary-green)) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(144, 197, 75, 0.4) !important;
}

#TheExpl button:active {
  transform: translateY(0) scale(0.98) !important;
}

#TheExpl .modern-info-content {
  background: white !important;
  padding: 25px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--text-dark) !important;
  border: none !important;
}

#TheExpl .modern-info-content p {
  margin: 0 0 15px 0 !important;
}

#TheExpl .modern-info-content p:last-child {
  margin-bottom: 0 !important;
}

/* Modern info icon styling */
.fa-info-circle {
  color: var(--primary-blue) !important;
  cursor: pointer !important;
  margin-left: 5px !important;
  transition: var(--transition) !important;
  background: rgba(82, 197, 253, 0.1) !important;
  border-radius: 50% !important;
  padding: 4px !important;
  width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
}

.fa-info-circle:hover {
  color: white !important;
  background: var(--primary-blue) !important;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(82, 197, 253, 0.3);
}

/* Mobile-specific selector enhancements */
@media (max-width: 768px) {
  /* Make the middle container wider to accommodate larger selectors */
  .div-sans-scroll .w3-left.w3-medium:not(.petit) {
    width: 80% !important;
    margin: 0 auto !important;
    float: none !important;
    background: transparent !important; /* Match parent container background */
  }
  
  /* Hide the empty left and right containers on mobile */
  .div-sans-scroll .w3-left.w3-medium.petit,
  .div-sans-scroll .w3-right.w3-medium {
    display: none !important;
  }
  
  /* Make selectors much larger for mobile touch */
  select.entete {
    min-width: 200px !important;
    font-size: 16px !important;
    padding: 16px 20px !important;
    height: 54px !important;
    margin: 4px 0 !important; /* Further reduced from 6px to 4px */
    background: white !important; /* Ensure consistent white background */
    border: 2px solid var(--border-color) !important;
    border-radius: 20px !important;
    text-align: center !important; /* Center text in selectors */
    text-align-last: center !important; /* Center the selected option */
  }
  
  /* Specific styling for delivery time selectors */
  select.entete.delivery-time {
    min-width: 130px !important; /* Increased from 120px to prevent text cutoff */
    font-size: 16px !important;
    padding: 14px 16px !important;
    height: 50px !important;
    background: white !important; /* Consistent white background */
    border: 2px solid var(--border-color) !important;
    border-radius: 20px !important;
    text-align: center !important; /* Center text in selectors */
    text-align-last: center !important; /* Center the selected option */
  }
  
  /* Make labels larger and more prominent - BIGGER TITLES */
  .unit-label {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 10px 0 4px 0 !important; /* Further reduced from 12px/6px to 10px/4px */
    color: var(--text-dark) !important;
    opacity: 1 !important;
    background: transparent !important; /* Transparent to match container */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    text-align: center !important;
  }
  
  /* Adjust the delivery time summary for mobile */
  #deliveryTimeSummary {
    font-size: 16px !important;
    padding: 10px 16px !important; /* Further reduced padding from 12px/18px */
    margin: 10px 0 6px 0 !important; /* Further reduced from 12px/8px to 10px/6px */
    width: 100% !important;
    text-align: center !important;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-teal)) !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
  }
  
  /* Stack the hour/minute selectors vertically on very small screens */
  @media (max-width: 400px) {
    .w3-col.s6 {
      width: 100% !important;
      padding: 0 !important;
      margin: 4px 0 !important; /* Further reduced from 6px to 4px */
    }
    
    select.entete.delivery-time {
      min-width: 160px !important; /* Increased for very small screens */
      width: 100% !important;
    }
    
    /* Even larger titles on very small screens */
    .unit-label {
      font-size: 17px !important;
      margin: 12px 0 6px 0 !important; /* Further reduced from 14px/8px to 12px/6px */
    }
  }
  
  /* Ensure the main container is properly centered */
  .div-sans-scroll {
    padding: 18px 20px 16px 20px !important; /* Further reduced from 22px/18px to 18px/16px */
    text-align: center !important;
    background: rgba(255, 255, 255, 0.95) !important; /* Maintain glass effect */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  
  /* Adjust the row layout for better mobile flow */
  .w3-row {
    margin: 6px 0 !important; /* Further reduced from 8px to 6px */
    background: transparent !important; /* Transparent to match container */
  }
  
  /* Disable all hover effects on mobile */
  #ZiMenu tr:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  #ZiMenu tr:hover::before {
    transform: scaleY(0) !important;
  }
  
  #ZiMenu tr:hover .Menu b {
    color: inherit !important;
  }
  
  /* Disable other interactive element hover effects */
  .tablink:hover,
  .fmt_section_btn:hover,
  .w3-green:hover,
  .fa-info-circle:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
  }
  
  /* Ensure no box-shadow on menu items on touch/active states on mobile */
  #ZiMenu tr {
    box-shadow: none !important; /* Remove any default or inherited box-shadow */
  }
  
  #ZiMenu tr:active {
    box-shadow: none !important; /* Remove box-shadow on active/tap state */
  }
  
  /* Globally disable box-shadow with a green tint on touch devices */
  @media (hover: none) and (pointer: coarse) {
    /* For any element that might get a green box-shadow */
    * {
      box-shadow: none !important;
    }
    /* Specifically target elements that had green box-shadows */
    .div-sans-scroll,
    select.entete,
    input.entete,
    #beaumenu,
    .w3-row.w3-center.w3-border,
    .modern-modal,
    .modern-modal-header,
    .modern-modal-section,
    .modern-modal-content,
    .modern-modal-footer,
    #VegMsg,
    .fmt_section_btn,
    #TheExpl .w3-modal-content,
    #TheStatus .w3-modal-content,
    #TheList .w3-modal-content,
    #CheckOut,
    #PlaceOrder,
    #Back {
      box-shadow: none !important;
    }
  }
}

/* Ensure info modal stays at reduced width */
#TheExpl .w3-modal-content {
  max-width: 350px !important;
  width: 350px !important;
  margin-top: 80px !important; /* Position modal lower on the screen */
}

/* Mobile menu item size enhancements */
@media (max-width: 768px) {
  /* Make menu items larger */
  .Menu {
    font-size: 15px !important; /* Increased from 13px */
    font-weight: 600 !important; /* Increased from 500 */
    line-height: 1.6 !important; /* Improved spacing */
    padding: 6px 0 !important; /* Increased from 4px */
  }
  
  /* Make menu item names more prominent */
  .menu-item-name p b {
    font-size: 14px !important; /* Larger font for dish names */
  }
  
  /* Increase price tag size */
  .w3-tag.w3-dark-grey {
    font-size: 13px !important; /* Increased from 12px */
    padding: 5px 14px !important; /* Increased padding */
  }
  
  /* Make quantity controls larger */
  .w3-input.w3-border {
    font-size: 15px !important; /* Increased from default */
    height: 36px !important; /* Taller input */
    min-width: 40px !important; /* Wider input */
  }
  
  /* Make quantity buttons larger */
  .w3-green {
    font-size: 18px !important; /* Increased from 16px */
    min-width: 30px !important; /* Larger touch target */
    min-height: 30px !important; /* Larger touch target */
  }
  
  /* Increase menu item container spacing */
  .menu-item-container {
    min-height: 52px !important; /* Increased from 48px */
    gap: 12px !important; /* Increased from 10px */
    padding: 16px 0 !important; /* Increased padding for better centering */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Subtle separator line */
    display: flex !important;
    align-items: center !important; /* Vertically center all content */
    justify-content: space-between !important; /* Space out price and controls */
  }
  
  /* Remove border from last item */
  .menu-item-container:last-child {
    border-bottom: none !important;
  }
  
  /* Increase table row spacing */
  #ZiMenu tr {
    margin: 0 !important; /* Remove margin to rely on container padding */
  }
  
  /* Disable all hover effects on mobile */
  #ZiMenu tr:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  #ZiMenu tr:hover::before {
    transform: scaleY(0) !important;
  }
  
  #ZiMenu tr:hover .Menu b {
    color: inherit !important;
  }
  
  /* Disable other interactive element hover effects */
  .tablink:hover,
  .fmt_section_btn:hover,
  .w3-green:hover,
  .fa-info-circle:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
  }
}
