/* 1M One Million Caffe Custom Styling */

/* Ensure smooth native-feel typography and crisp rendering */
body {
  font-family: 'Tajawal', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars in Luxury Gold & Dark */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #0d0d11;
}
::-webkit-scrollbar-thumb {
  background: #2a2824;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d7a34f;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Tab Navigation State */
.nav-tab {
  color: #8e8b82;
  transition: all 0.18s ease;
}
.nav-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}
.nav-tab.active {
  color: #0a0a0c;
  background: linear-gradient(135deg, #d7a34f 0%, #f5c97a 100%);
  box-shadow: 0 4px 12px rgba(215, 163, 79, 0.25);
}

/* Category Filter Chips */
.cat-chip {
  background-color: #18181f;
  border: 1px solid #2a2824;
  color: #a09d94;
  transition: all 0.15s ease;
}
.cat-chip:hover {
  border-color: #d7a34f;
  color: #ffffff;
}
.cat-chip.active {
  background: #23201a;
  border-color: #d7a34f;
  color: #f5c97a;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(215, 163, 79, 0.15);
}

/* Order Type Toggle (Takeaway vs Dine-in) */
.order-type-btn {
  color: #8e8b82;
}
.order-type-btn.active {
  background-color: #d7a34f;
  color: #0a0a0c;
}

/* Payment Method Selection */
.pay-method-btn {
  background-color: #121216;
  color: #8e8b82;
}
.pay-method-btn.active {
  background: linear-gradient(to bottom, #1d1b16, #161512);
  border-color: #d7a34f;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(215, 163, 79, 0.2);
}

/* Option Buttons in Item Modal */
.opt-btn {
  background-color: #18181f;
  color: #a09d94;
}
.opt-btn.active {
  background: #262117;
  border-color: #d7a34f;
  color: #f5c97a;
  font-weight: bold;
}

/* Tab Content Visibility */
.tab-content {
  display: none;
  flex-direction: column;
}
.tab-content.active {
  display: flex;
}

/* Responsive Cart Panel on Mobile */
@media (max-width: 1023px) {
  #pos-cart-panel {
    position: fixed;
    inset: 0;
    z-index: 45;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #pos-cart-panel.open {
    transform: translateY(0);
  }
}

/* Animation keyframes */
@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scaleUp {
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 80mm Print Media Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #thermal-receipt, #thermal-receipt * {
    visibility: visible;
  }
  #thermal-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm !important;
    margin: 0;
    padding: 8px !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
}