@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dark Theme Palette */
  --bg-app: #050505;
  --bg-sidebar: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #151515;
  
  --border-light: rgba(255, 255, 255, 0.05);
  --border-active: rgba(226, 181, 88, 0.3);
  
  --text-main: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #555555;
  
  --accent: #E2B558; /* Amber/Gold */
  --accent-hover: #f1c363;
  --danger: #ff4d4d;
  --danger-bg: rgba(255, 77, 77, 0.1);
  --success: #4cd137;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow: hidden;
}

/* =========================================
   APP LAYOUT
========================================= */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* =========================================
   SIDEBAR NAVIGATION
========================================= */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
  gap: 10px;
}

.sidebar-brand h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
}

.sidebar-brand .version {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-item:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.nav-item:hover i {
  color: var(--accent);
}

.nav-item.active {
  background: rgba(226, 181, 88, 0.05);
  color: var(--accent);
  border: 1px solid var(--border-active);
}

.nav-item.active i {
  color: var(--accent);
}

/* Specific highlight for Inventory */
.nav-item.core-module {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 1px dashed rgba(226, 181, 88, 0.3);
}

/* =========================================
   MAIN CONTENT AREA
========================================= */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

/* TOP BAR */
.top-bar {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background-color: var(--bg-app);
  border-bottom: 1px solid var(--border-light);
}

.page-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.shift-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.status-dot.green {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(76, 209, 55, 0.5);
}

.clock {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--accent);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 1rem;
  border-left: 1px solid var(--border-light);
}

.avatar {
  width: 35px;
  height: 35px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.btn-lock {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-lock:hover {
  color: var(--danger);
}

/* =========================================
   DASHBOARD CONTENT
========================================= */
.dashboard-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.1);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-muted {
  color: var(--text-muted);
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.metric-value .val-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
}

.text-medium {
  font-size: 1.6rem;
}

.metric-trend {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.metric-trend.positive {
  color: var(--success);
}

.metric-trend.neutral {
  color: var(--text-secondary);
}

.metric-trend.warning {
  color: var(--accent);
}

.metric-trend.danger {
  color: var(--danger);
}

.danger-card {
  border-color: rgba(255, 77, 77, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--danger-bg) 100%);
}

.danger-card .metric-header i {
  color: var(--danger);
}

/* WIDGETS SECTION */
.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

.widget-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.widget-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-sm {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-active);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm:hover {
  background: rgba(226, 181, 88, 0.1);
}

.widget-body {
  flex: 1;
  padding: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.muted {
  color: var(--text-muted);
  font-style: italic;
}

/* =========================================
   SPA VIEWS & MODULES
========================================= */
.hidden {
  display: none !important;
}

.view-section {
  animation: fadeIn 0.3s ease-in-out;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

/* DATA TABLES (INVENTORY) */
.data-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: rgba(255,255,255,0.02);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-badge.ok { background: rgba(76, 209, 55, 0.1); color: var(--success); }
.status-badge.low { background: var(--danger-bg); color: var(--danger); }

/* POS SYSTEM */
.pos-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  height: calc(100vh - 120px);
}

.pos-menu, .pos-bill {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-menu h3, .bill-header h3 {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.1rem;
  margin: 0;
}

.pos-grid {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  overflow-y: auto;
}

.pos-item-card {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pos-item-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.pos-item-card h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.pos-item-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.pos-item-price {
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  display: block;
}

.pos-bill {
  background: #0d0d0d;
}

.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1.5rem;
}

.table-badge {
  background: var(--accent);
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.bill-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.bill-item-info span { display: block; }
.bill-item-name { font-weight: 600; font-size: 0.95rem; }
.bill-item-qty { color: var(--text-secondary); font-size: 0.8rem; margin-top: 2px;}

.bill-item-price { font-weight: 600; color: var(--accent); }

.bill-summary {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 1rem;
}

.btn-checkout {
  width: 100%;
  background: var(--success);
  color: #000;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-checkout:hover {
  background: #3eb529;
}

/* =========================================
   TABLES MANAGEMENT
========================================= */
.table-legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.box.avail { background: var(--bg-card); border: 1px solid var(--border-light); }
.box.occ { background: rgba(226, 181, 88, 0.2); border: 1px solid var(--accent); }

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}







.table-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.2);
}


.table-card.occupied span {
  color: var(--accent);
}

/* POS BUTTONS UPDATE */
.pos-actions {
  display: flex;
  gap: 10px;
}
.btn-secondary {
  flex: 1;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-active);
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: rgba(226, 181, 88, 0.1);
}

/* =========================================
   THERMAL RECEIPT MODAL
========================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
  overflow-y: auto;
  z-index: 1000;
}

.thermal-receipt {
  background: #fdfbf7;
  color: #111;
  width: 340px;
  padding: 2rem 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.receipt-header {
  text-align: center;
  margin-bottom: 1rem;
}
.receipt-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.receipt-header p {
  font-size: 0.85rem;
  margin-top: 3px;
}
.divider {
  margin: 10px 0;
  text-align: center;
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
}

.receipt-table {
  width: 100%;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border-collapse: collapse;
}
.receipt-table th {
  padding-bottom: 5px;
  border-bottom: 1px dashed #333;
}
.receipt-table td {
  padding: 3px 0;
  vertical-align: top;
}
.item-qty-name {
  max-width: 200px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 10px 0;
}

.thx {
  text-align: center;
  font-size: 0.85rem;
  margin: 15px 0;
}

.btn-confirm-pay {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 12px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 8px;
}
.btn-confirm-pay:hover { background: #333; }

.btn-close-receipt {
  width: 100%;
  background: transparent;
  color: #555;
  border: 1px dashed #555;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  cursor: pointer;
}
.btn-close-receipt:hover { background: rgba(0,0,0,0.05); color: #111; }

.receipt-jagged {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: linear-gradient(135deg, #fdfbf7 50%, transparent 50%), linear-gradient(-135deg, #fdfbf7 50%, transparent 50%);
  background-size: 10px 10px;
}

/* =========================================
   INVENTORY COMMAND CENTER
========================================= */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.control-group {
  display: flex;
  gap: 1rem;
}

.input-modern {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}
.input-modern:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(226, 181, 88, 0.2);
}

.danger-row {
  background: rgba(255, 77, 77, 0.05) !important;
}
.danger-row td {
  border-bottom: 1px solid rgba(255, 77, 77, 0.2) !important;
}

.action-btns {
  display: flex;
  gap: 8px;
}

.btn-action {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-action.add:hover { background: var(--success); border-color: var(--success); }
.btn-action.sub:hover { background: var(--danger); border-color: var(--danger); }

/* =========================================
   EDIT ITEM MODAL
========================================= */
.edit-modal-content {
  background: rgba(25, 25, 25, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 181, 88, 0.3);
  border-radius: 12px;
  width: 550px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  animation: slideUp 0.3s ease-out;
  color: #fff;
  z-index: 1001;
}
.edit-modal-content .modal-header h3 { 
  font-size: 1.5rem; 
  margin-bottom: 1.5rem; 
  color: var(--accent); 
}
.edit-modal-content .form-group label { 
  display: block; 
  font-size: 0.85rem; 
  color: var(--text-secondary); 
  margin-bottom: 5px; 
}
.edit-modal-content .modal-footer {
  margin-top: 1.5rem; 
  display: flex; 
  gap: 10px;
}
.edit-modal-content .modal-footer button {
  flex: 1;
}

/* =========================================
   LIVE LOGO COMPONENT
========================================= */
.live-logo {
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  letter-spacing: -1px;
}
.live-logo .text-base {
  color: rgba(255, 255, 255, 0.05);
  -webkit-text-stroke: 1px rgba(226, 181, 88, 0.2);
}
.live-logo .text-liquid {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  animation: waveHighlight 3s infinite linear;
}
@keyframes waveHighlight {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.live-logo .liq-amber {
  color: transparent;
  background: linear-gradient(180deg, #F3C465 0%, #C89535 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transform: translateY(10px);
  animation: liquidFillLogo 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.live-logo .space { width: 0.3em; }

@keyframes liquidFillLogo {
  0% { opacity: 0; transform: translateY(10px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* =========================================
   LIVE LOGO (Liquid Text Component)
========================================= */
.live-logo {
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3em;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}
.live-logo .word {
  display: flex;
  flex-wrap: nowrap;
}

.live-logo.login-size {
  font-size: 2.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.live-logo.dash-sidebar-size {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.live-logo.dash-topbar-size {
  font-size: 1.2rem;
  margin-right: 1.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-light);
  align-items: center;
}

.live-logo .char-wrapper {
  position: relative;
  display: inline-block;
}

.live-logo .char-bg {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.live-logo .char-fg {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  overflow: hidden;
  clip-path: url(#wave-mask);
  animation: liquidFill 4s ease-in-out infinite alternate;
  animation-delay: calc(var(--char-index) * 0.2s);
}

@keyframes liquidFill {
  0% { transform: translateY(10%); }
  100% { transform: translateY(-5%); }
}

.btn-export {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: inherit;
  font-size: 0.9rem;
}
.btn-export:hover {
  background: rgba(226, 181, 88, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}


/* Status Visual System */
.table-card.available {
  border-left: 4px solid var(--success);
}
.table-card.available .table-status-text { color: var(--success); }

.table-card.occupied {
  border-left: 4px solid var(--accent);
  background: rgba(226, 181, 88, 0.03);
}
.table-card.occupied .table-status-text { color: var(--accent); }
.table-card.occupied .table-bill { color: var(--accent); }

.table-card.billing {
  border-left: 4px solid var(--danger);
  background: rgba(255, 77, 77, 0.03);
  animation: pulseBilling 2s infinite;
}
.table-card.billing .table-status-text { color: var(--danger); }
.table-card.billing .table-bill { color: var(--danger); }

.table-card.cleaning {
  border-left: 4px solid #888;
  opacity: 0.6;
}
.table-card.cleaning .table-status-text { color: #888; }

.table-card.reserved {
  border-left: 4px solid #4a90e2;
  background: rgba(74, 144, 226, 0.03);
}
.table-card.reserved .table-status-text { color: #4a90e2; }

@keyframes pulseBilling {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* Hover Overlay */
.table-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.table-card:hover .table-overlay {
  opacity: 1;
  pointer-events: auto;
}

.table-overlay button {
  width: 80%;
  padding: 0.6rem;
  font-size: 0.9rem;
}


/* =========================================================
   INTERACTIVE TABLE CARDS (MODERN FLAT UI)
========================================================= */
.interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.table-card {
  position: relative;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

/* Header Area */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.table-name-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-name {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: none;
}

.table-section {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status Badge */
.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.available { background: rgba(76, 175, 80, 0.15); color: #4CAF50; border: 1px solid rgba(76, 175, 80, 0.3); }
.status-badge.occupied, .status-badge.billing { background: rgba(244, 67, 54, 0.15); color: #F44336; border: 1px solid rgba(244, 67, 54, 0.3); }
.status-badge.reserved { background: rgba(255, 193, 7, 0.15); color: #FFC107; border: 1px solid rgba(255, 193, 7, 0.3); }
.status-badge.cleaning { background: rgba(158, 158, 158, 0.15); color: #9E9E9E; border: 1px solid rgba(158, 158, 158, 0.3); }

/* Data Body */
.table-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem;
}

.table-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.data-label {
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-value {
  color: #eee;
  font-weight: 500;
  font-family: monospace;
  font-size: 0.95rem;
}

/* Overriding states to add top-border indicator */
.table-card.available { border-top: 4px solid #4CAF50; }
.table-card.occupied { border-top: 4px solid #F44336; }
.table-card.billing { border-top: 4px solid #F44336; }
.table-card.reserved { border-top: 4px solid #FFC107; }
.table-card.cleaning { border-top: 4px solid #9E9E9E; opacity: 0.7; }

/* Edit Layout Mode Overrides */
.edit-layout-active .table-card {
  border: 1px dashed rgba(255,255,255,0.4);
  cursor: grab;
}
.edit-layout-active .table-card:hover { transform: none; box-shadow: none; }

/* Table Gear & Dropdown */
.table-actions-wrapper {
  position: absolute;
  top: 45px;
  right: 15px;
  z-index: 25;
}

.table-gear {
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}

.table-card:hover .table-gear {
  opacity: 1;
}

.table-gear:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,0,0,0.8);
}

.table-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  min-width: 130px;
  transform: translateY(-5px);
}

.table-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.table-dropdown button {
  padding: 6px 10px;
  font-size: 0.8rem;
  width: 100%;
  text-align: left;
  border-radius: 4px;
}


/* Edit Layout Mode */
.edit-layout-active .table-card {
  border: 1px dashed rgba(255, 255, 255, 0.3) !important;
  cursor: grab;
  animation: subtleShake 3s infinite;
  opacity: 1 !important;
}
.edit-layout-active .table-card:active {
  cursor: grabbing;
}
.edit-layout-active .table-overlay {
  display: none !important;
}
.edit-layout-active .table-card::after {
  content: "☰";
  position: absolute;
  top: 10px;
  right: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}
.edit-layout-active .table-card:hover {
  transform: none;
  box-shadow: none;
}

@keyframes subtleShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-0.5deg); }
  75% { transform: rotate(0.5deg); }
}



/* =========================================================
   INTERACTIVE TABLE CARDS (MODERN FLAT UI)
========================================================= */
.interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.table-card {
  position: relative;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

/* Header Area */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.table-name-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-name {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: none;
}

.table-section {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status Badge */
.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.available { background: rgba(76, 175, 80, 0.15); color: #4CAF50; border: 1px solid rgba(76, 175, 80, 0.3); }
.status-badge.occupied, .status-badge.billing { background: rgba(244, 67, 54, 0.15); color: #F44336; border: 1px solid rgba(244, 67, 54, 0.3); }
.status-badge.reserved { background: rgba(255, 193, 7, 0.15); color: #FFC107; border: 1px solid rgba(255, 193, 7, 0.3); }
.status-badge.cleaning { background: rgba(158, 158, 158, 0.15); color: #9E9E9E; border: 1px solid rgba(158, 158, 158, 0.3); }

/* Data Body */
.table-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem;
}

.table-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.data-label {
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-value {
  color: #eee;
  font-weight: 500;
  font-family: monospace;
  font-size: 0.95rem;
}

/* Overriding states to add top-border indicator */
.table-card.available { border-top: 4px solid #4CAF50; }
.table-card.occupied { border-top: 4px solid #F44336; }
.table-card.billing { border-top: 4px solid #F44336; }
.table-card.reserved { border-top: 4px solid #FFC107; }
.table-card.cleaning { border-top: 4px solid #9E9E9E; opacity: 0.7; }

/* Edit Layout Mode Overrides */
.edit-layout-active .table-card {
  border: 1px dashed rgba(255,255,255,0.4);
  cursor: grab;
}
.edit-layout-active .table-card:hover { transform: none; box-shadow: none; }

/* Table Gear & Dropdown */
.table-actions-wrapper {
  position: absolute;
  top: 45px;
  right: 15px;
  z-index: 25;
}

.table-gear {
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}

.table-card:hover .table-gear {
  opacity: 1;
}

.table-gear:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,0,0,0.8);
}

.table-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  min-width: 130px;
  transform: translateY(-5px);
}

.table-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.table-dropdown button {
  padding: 6px 10px;
  font-size: 0.8rem;
  width: 100%;
  text-align: left;
  border-radius: 4px;
}


/* Edit Layout Mode */
.edit-layout-active .table-card {
  cursor: grab;
  animation: subtleShake 3s infinite;
}
.edit-layout-active .table-surface {
  border: 1px dashed rgba(255, 255, 255, 0.4);
}
.edit-layout-active .table-card:active {
  cursor: grabbing;
}
.edit-layout-active .table-overlay {
  display: none !important;
}
.edit-layout-active .table-card::after {
  content: "☰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  z-index: 30;
  pointer-events: none;
  opacity: 0.5;
}
.edit-layout-active .table-card:hover {
  transform: none;
}

@keyframes subtleShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1deg); }
  75% { transform: rotate(1deg); }
}

/* =========================================
   PEG SELECTOR MODAL
========================================= */
.peg-selector-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}
.peg-selector-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  animation: scaleIn 0.15s ease-out;
}
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.peg-selector-content h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--accent);
}
.peg-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.btn-peg {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.btn-peg:hover {
  background: rgba(226, 181, 88, 0.2);
  border-color: var(--accent);
}
.btn-peg:active {
  transform: scale(0.95);
}
.peg-vol {
  font-size: 1.2rem;
  font-weight: 700;
}
.peg-prc {
  color: var(--accent);
  font-size: 0.9rem;
}

/* POS Quick Controls & Badges */
.pos-categories::-webkit-scrollbar {
  height: 4px;
}
.pos-categories::-webkit-scrollbar-thumb {
  background: var(--border-active);
  border-radius: 4px;
}
.pos-categories .btn-sm.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}
.bill-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.qty-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.2); }
.qty-val { font-weight: 600; font-size: 1rem; width: 20px; text-align: center; }
.btn-remove {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: auto;
}
.btn-remove:hover { text-decoration: underline; }

.stock-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(76, 209, 55, 0.1);
  color: var(--success);
  margin-top: 5px;
  display: inline-block;
}
.stock-badge.low {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
}
.stock-badge.out {
  background: rgba(255, 77, 77, 0.1);
  color: var(--danger);
}
.pos-item-card.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* PRINT MEDIA QUERY */
@media print {
  body * {
    visibility: hidden;
  }
  .modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    background: transparent !important;
  }
  .thermal-receipt, .thermal-receipt * {
    visibility: visible;
  }
  .thermal-receipt {
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: none;
    margin: 0;
    padding: 10px;
    width: 300px;
  }
  .no-print {
    display: none !important;
  }
}

/* FIX FOR POS CATEGORY BUTTONS ALIGNMENT */
.pos-categories .btn-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  white-space: nowrap !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

/* UPDATE THERMAL RECEIPT RULES */
.thermal-receipt {
  width: 240px !important; padding: 10px !important;
  color: #000 !important;
  line-height: 1 !important;
  font-family: 'Courier New', Courier, monospace !important;
}
.thermal-receipt .divider {
  letter-spacing: -1px;
}
.thermal-receipt * {
  color: #000;
}

/* ARTISTIC RECEIPT BUTTONS */
.receipt-btn-pay {
  background: linear-gradient(135deg, #e6b980 0%, #e2b558 100%) !important;
  color: #111 !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  padding: 15px !important;
  border: 2px solid #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(226, 181, 88, 0.4), 0 0 10px rgba(226, 181, 88, 0.2) inset !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
}
.receipt-btn-pay:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(226, 181, 88, 0.6), 0 0 15px rgba(226, 181, 88, 0.4) inset !important;
}
.receipt-btn-print {
  background: rgba(20, 20, 20, 0.8) !important;
  color: #e2b558 !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 12px !important;
  border: 1px solid rgba(226, 181, 88, 0.5) !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
}
.receipt-btn-print:hover {
  background: rgba(226, 181, 88, 0.1) !important;
  border-color: #e2b558 !important;
}
.receipt-btn-close {
  background: transparent !important;
  color: #888 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  padding: 10px !important;
  border: 1px dashed rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  transition: all 0.3s ease !important;
}
.receipt-btn-close:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================================= */
/* PREMIUM PAYMENT MODAL CSS */
/* ========================================================= */

.premium-modal-wrapper {
  background: #111;
  border-radius: 16px;
  border: 1px solid rgba(226, 181, 88, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(226, 181, 88, 0.1);
  display: flex;
  flex-direction: column;
  width: 340px;
  max-width: 95vw;
  overflow: hidden;
}

/* Hide scrollbar for internal thermal container */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Thermal Receipt Realism */
.premium-thermal {
  background: #fdfdfb;
  color: #111;
  font-family: 'Courier New', Courier, monospace;
  padding: 25px 20px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

/* Subtle noise texture */
.premium-thermal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: 1;
}

.premium-thermal * { position: relative; z-index: 2; }

.receipt-header { text-align: center; margin-bottom: 15px; }
.receipt-header h2 { font-size: 1.5rem; font-weight: 900; margin: 0; letter-spacing: 1px; }
.receipt-header p { font-size: 0.8rem; margin: 5px 0 0; line-height: 1.2; }

.receipt-meta { font-size: 0.85rem; margin-bottom: 10px; }
.r-row { display: flex; justify-content: space-between; margin-bottom: 3px; }

.receipt-divider { border-top: 1px dashed #555; margin: 10px 0; }

.receipt-items { font-size: 0.85rem; }
.receipt-items .item-row { margin-bottom: 6px; }
.receipt-items .item-name { font-weight: 600; line-height: 1.2; }
.receipt-items .item-calc { display: flex; justify-content: space-between; color: #444; margin-top: 2px; }

.receipt-summary { font-size: 0.9rem; }
.receipt-summary .s-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.receipt-summary .s-total { font-size: 1.1rem; font-weight: bold; margin-top: 5px; border-top: 1px solid #111; padding-top: 5px; }

.receipt-footer { text-align: center; font-size: 0.8rem; margin-top: 15px; font-weight: bold; }

/* Jagged Bottom */
.receipt-jagged {
  position: absolute;
  bottom: -10px; left: 0; width: 100%; height: 10px;
  background: linear-gradient(-45deg, transparent 75%, #fdfdfb 75%) 0 50%, linear-gradient(45deg, transparent 75%, #fdfdfb 75%) 0 50%;
  background-repeat: repeat-x;
  background-size: 10px 10px;
  z-index: 3;
}

/* Payment Section UI */
.premium-payment-section {
  background: #1a1a1a;
  padding: 20px;
  border-top: 1px solid rgba(226, 181, 88, 0.1);
  display: flex; flex-direction: column; gap: 15px;
}

.payment-label {
  color: #aaa; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pm-btn {
  background: #252525;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #888;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pm-btn i { font-size: 1.4rem; }
.pm-btn span { font-size: 0.8rem; font-weight: 600; }

.pm-btn:hover { background: #2a2a2a; color: #bbb; transform: translateY(-2px); }

.pm-btn.active {
  background: rgba(226, 181, 88, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(226, 181, 88, 0.2);
  transform: translateY(-2px);
}

/* Auto-Print Toggle */
.auto-print-toggle {
  display: flex; align-items: center; gap: 10px;
  background: #111; padding: 10px 15px; border-radius: 10px;
  border: 1px solid #222;
}
.auto-print-toggle span { color: #ccc; font-size: 0.85rem; font-weight: 500; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: #aaa; transition: .4s; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(18px); background-color: #111; }
.slider.round { border-radius: 22px; }
.slider.round:before { border-radius: 50%; }

/* CTA Group */
.premium-cta-group { display: flex; flex-direction: column; gap: 10px; margin-top: 5px; }

.btn-premium-pay {
  background: linear-gradient(135deg, #e6b980 0%, #e2b558 100%);
  color: #111;
  font-family: 'Cinzel', serif;
  font-weight: 800; font-size: 1.1rem;
  padding: 16px; border: none; border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(226, 181, 88, 0.4);
  text-transform: uppercase; letter-spacing: 1.5px;
  cursor: pointer; transition: all 0.3s ease;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-premium-pay:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(226, 181, 88, 0.6);
}

.btn-premium-print {
  background: transparent;
  color: var(--accent);
  font-family: 'Cinzel', serif;
  font-weight: 700; font-size: 0.95rem;
  padding: 14px; border: 1px solid var(--accent); border-radius: 2rem;
  text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: all 0.3s ease;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-premium-print:hover { background: rgba(226, 181, 88, 0.1); }

.btn-premium-close {
  background: transparent; color: #888;
  font-weight: 600; font-size: 0.9rem;
  padding: 12px; border: none;
  cursor: pointer; transition: all 0.3s ease;
  display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-premium-close:hover { color: #fff; }

/* Success Animation Keyframes */
.success-checkmark { width: 80px; height: 80px; margin: 0 auto; position: relative; }
.check-icon { width: 80px; height: 80px; position: relative; border-radius: 50%; box-sizing: content-box; border: 4px solid var(--accent); }
.check-icon::before { top: 3px; left: -2px; width: 30px; transform-origin: 100% 50%; border-radius: 100px 0 0 100px; }
.check-icon::after { top: 0; left: 30px; width: 60px; transform-origin: 0 50%; border-radius: 0 100px 100px 0; animation: rotate-circle 4.25s ease-in; }
.check-icon::before, .check-icon::after { content: ''; height: 100px; position: absolute; background: transparent; transform: rotate(-45deg); }
.icon-line { height: 5px; background-color: var(--accent); display: block; border-radius: 2px; position: absolute; z-index: 10; }
.icon-line.line-tip { top: 46px; left: 14px; width: 25px; transform: rotate(45deg); animation: icon-line-tip 0.75s; }
.icon-line.line-long { top: 38px; right: 8px; width: 47px; transform: rotate(-45deg); animation: icon-line-long 0.75s; }
.icon-circle { top: -4px; left: -4px; z-index: 10; width: 80px; height: 80px; border-radius: 50%; position: absolute; box-sizing: content-box; border: 4px solid rgba(226,181,88,.5); }
.icon-fix { top: 8px; width: 5px; left: 26px; z-index: 1; height: 85px; position: absolute; transform: rotate(-45deg); background-color: transparent; }
@keyframes icon-line-tip { 0% { width: 0; left: 1px; top: 19px; } 54% { width: 0; left: 1px; top: 19px; } 70% { width: 50px; left: -8px; top: 37px; } 84% { width: 17px; left: 21px; top: 48px; } 100% { width: 25px; left: 14px; top: 46px; } }
@keyframes icon-line-long { 0% { width: 0; right: 46px; top: 54px; } 65% { width: 0; right: 46px; top: 54px; } 84% { width: 55px; right: 0px; top: 35px; } 100% { width: 47px; right: 8px; top: 38px; } }

/* Print Media Query Override */
@media print {
  @page { margin: 0; }
  
  /* 1. Destroy giant containers to prevent blank pages */
  .sidebar, .dashboard-grid, .tables-grid, .inventory-container, .reports-container, .settings-container, .premium-payment-section, #payment-success-overlay {
    display: none !important;
  }
  
  /* 2. Hide everything else but preserve DOM structure */
  body * {
    visibility: hidden;
  }
  
  /* 3. Strip positioning from ALL parents so absolute positioning sticks to the top-left of the page */
  html, body, .app-container, .main-content, .modal-overlay, .premium-modal-wrapper, .premium-modal-wrapper > div {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  
  /* 4. Show ONLY the receipt */
  #printable-thermal, #printable-thermal * {
    visibility: visible !important;
  }
  
  /* 5. Pin it to the absolute top left of the paper */
  #printable-thermal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 58mm !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 12px !important;
  }
  
  .receipt-jagged { display: none !important; }
}


/* --- Dashboard Updates --- */
.clickable-card {
   cursor: pointer;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clickable-card:hover {
   transform: translateY(-4px);
   box-shadow: 0 10px 20px -5px rgba(0,0,0,0.5), 0 0 15px rgba(226, 181, 88, 0.15);
   border-color: rgba(226, 181, 88, 0.4);
}
.empty-val {
    font-size: 1.1rem;
    color: #aaa;
    font-style: italic;
    font-weight: 400;
}
.dashboard-activity-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem;
   margin-top: 2rem;
}
.activity-section {
   background: var(--surface-light);
   border: 1px solid var(--border-light);
   border-radius: 12px;
   padding: 1.5rem;
}
.section-header-small h3 {
   color: var(--accent);
   font-size: 1.1rem;
   margin: 0 0 1rem 0;
   font-family: 'Cinzel', serif;
}
.activity-list {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}
.empty-state-text {
   color: #666;
   font-style: italic;
   font-size: 0.95rem;
   text-align: center;
   padding: 2rem 0;
}

.activity-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding-bottom: 0.8rem;
   border-bottom: 1px solid rgba(255,255,255,0.05);
}
.activity-item:last-child {
   border-bottom: none;
   padding-bottom: 0;
}
.activity-item-title {
   color: #fff;
   font-size: 0.9rem;
   font-weight: 500;
}
.activity-item-meta {
   color: #888;
   font-size: 0.8rem;
   margin-top: 0.2rem;
}
.activity-item-value {
   color: var(--accent);
   font-weight: bold;
   font-size: 0.95rem;
}
.progress-bar-container {
   width: 100%;
   height: 6px;
   background: rgba(255,255,255,0.05);
   border-radius: 3px;
   margin-top: 8px;
   overflow: hidden;
}
.progress-bar-fill {
   height: 100%;
   background: var(--accent);
   border-radius: 3px;
}
.top-item-row {
   display: flex;
   flex-direction: column;
   padding-bottom: 1rem;
}


/* --- Reports Analytics Updates --- */
.report-filters {
   display: flex;
   gap: 10px;
   background: var(--surface-light);
   padding: 10px;
   border-radius: 8px;
   border: 1px solid var(--border-light);
   overflow-x: auto;
}
.filter-btn {
   background: transparent;
   border: 1px solid rgba(255,255,255,0.1);
   color: #aaa;
   padding: 6px 16px;
   border-radius: 20px;
   cursor: pointer;
   font-size: 0.9rem;
   transition: 0.2s;
   white-space: nowrap;
}
.filter-btn:hover {
   background: rgba(255,255,255,0.05);
   color: #fff;
}
.filter-btn.active {
   background: rgba(226, 181, 88, 0.15);
   border-color: var(--accent);
   color: var(--accent);
   font-weight: bold;
}

.reports-charts-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem;
   margin-bottom: 2rem;
}
.chart-card {
   background: var(--surface-light);
   border: 1px solid var(--border-light);
   border-radius: 12px;
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
}
.chart-card h3 {
   margin: 0 0 1rem 0;
   color: var(--accent);
   font-family: 'Cinzel', serif;
   font-size: 1.1rem;
   text-align: center;
}
.chart-container {
   position: relative;
   flex: 1;
   min-height: 250px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.reports-tables-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 2rem;
}


/* =========================================
   PAYMENT BADGE STYLES (Sales & Reports)
========================================= */
.pay-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pay-badge.pay-cash {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}
.pay-badge.pay-card {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.4);
}
.pay-badge.pay-upi {
  background: rgba(226, 181, 88, 0.2);
  color: #e2b558;
  border: 1px solid rgba(226, 181, 88, 0.4);
}

/* Advanced Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.insight-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}
.insight-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.insight-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.insight-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profit Analysis Styling */
.profit-analysis-card {
  transition: all 0.3s ease;
}
.profit-analysis-card:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(226, 181, 88, 0.3) !important;
}
.p-item.highlight strong {
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Empty State Styling */
.empty-state {
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar for Wide Filter Bar */
.report-filters::-webkit-scrollbar {
  height: 4px;
}
.report-filters::-webkit-scrollbar-thumb {
  background: rgba(226, 181, 88, 0.3);
  border-radius: 4px;
}

/* =========================================
   TOP-DOWN FLOOR MAP UI
========================================= */
#tables-grid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px 20px 10px;
}

.floor-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  padding: 3rem 4rem; /* extra horizontal padding for stools */
  background: #050505; /* Black background */
  min-height: 70vh;
  min-width: 900px;
  border-radius: 16px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

.floor-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  margin: 0 auto;
}

.floor-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}

.floor-item:hover {
  transform: translateY(-4px) scale(1.05);
  z-index: 10;
}

.floor-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  z-index: 5;
  text-align: center;
  font-family: 'Inter', sans-serif;
  position: absolute;
  top: 15px;
  pointer-events: none;
}

/* Cabins */
.floor-cabin {
  width: 160px;
  height: 110px;
  border-radius: 12px;
  background: #0f0f0f;
  border: 2px solid #E2B558;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

/* Tables */
.floor-table {
  width: 120px;
  height: 180px;
  border-radius: 16px;
  /* Premium dark wood / texture approximation */
  background: linear-gradient(135deg, #1f1510 0%, #110a05 100%);
  border: 1px solid rgba(226, 181, 88, 0.5);
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  margin: 0 1.5rem; /* Space for chairs */
}

/* Chairs */
.f-chair {
  position: absolute;
  width: 26px;
  height: 34px;
  border-radius: 6px;
  background: #111;
  border: 1px solid #E2B558;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.c-left-1 { left: -16px; top: 25%; transform: translateY(-50%); }
.c-left-2 { left: -16px; bottom: 25%; transform: translateY(50%); }
.c-right-1 { right: -16px; top: 25%; transform: translateY(-50%); }
.c-right-2 { right: -16px; bottom: 25%; transform: translateY(50%); }

/* Bar Section */
.bar-row {
  margin-top: 3rem;
}

.bar-counter-wrapper {
  position: relative;
  display: inline-block;
}

/* The outer boundary of the counter */
.bar-counter-outer {
  width: 650px;
  height: 220px;
  background: #151515; /* The counter texture */
  border: 2px solid #E2B558;
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  padding: 60px 60px 0 60px; /* This padding IS the thickness of the bar */
  box-sizing: border-box;
  box-shadow: 0 -5px 25px rgba(226, 181, 88, 0.15), inset 0 2px 10px rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
}

/* The inner empty area (bartender area) */
.bar-counter-inner {
  width: 100%;
  height: 100%;
  background: #050505; /* Matches floor map background */
  border: 2px solid #E2B558;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #E2B558;
  font-weight: bold;
  letter-spacing: 4px;
  font-size: 1.2rem;
  box-shadow: inset 0 5px 15px rgba(0,0,0,0.8);
}

/* Stools Container */
.floor-stool {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #E2B558;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.bar-stools-top {
  position: absolute;
  top: -30px; /* Half stool width */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  z-index: 3;
}

.bar-stools-left {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 3;
}

.bar-stools-right {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 3;
}

/* Status Colors & Glows */
.floor-item.occupied {
  border-color: #FF6B6B;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.05);
}
.floor-item.occupied .floor-label { color: #FF6B6B; }
.floor-item.occupied .f-chair { border-color: #FF6B6B; background: rgba(255, 107, 107, 0.1); }

.floor-item.billing {
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
  animation: pulseFloorRed 2s infinite;
  background: rgba(255, 77, 77, 0.05);
}
.floor-item.billing .floor-label { color: var(--danger); }
.floor-item.billing .f-chair { border-color: var(--danger); background: rgba(255, 77, 77, 0.2); }

.floor-item.cleaning {
  opacity: 0.5;
  border-style: dashed;
}

.floor-item.reserved {
  border-color: #4a90e2;
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

@keyframes pulseFloorRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* Meta overlay (time, gear) */
.floor-meta {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-family: monospace;
}

.floor-item .table-actions-wrapper {
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0;
  transition: opacity 0.2s;
}

.floor-item:hover .table-actions-wrapper {
  opacity: 1;
}

.table-gear {
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
}
.table-gear:hover {
  background: var(--accent);
  color: #000;
}

/* Data Overlays */
.floor-data {
  position: absolute;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  width: 100%;
}
.fd-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.8;
}
.fd-bill {
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.floor-stool-data {
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.floor-stool-data .fd-bill {
  font-size: 0.8rem;
  color: #e2b558;
}
.f-chair {
  pointer-events: none;
}

/* =========================================
   IDLE LOCK SCREEN
========================================= */
/* Lock Screen styles consolidated below */



/* =========================================
   REIMAGINED PREMIUM FLOOR LAYOUT (IMAGE 4 MATCH)
========================================= */

.new-premium-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 80px 40px;
  background: radial-gradient(circle at center, #0d0d0d 0%, #050505 100%);
  position: relative;
}

/* Row Spacing */
.cabins-top-row { display: flex; gap: 30px; justify-content: center; margin-bottom: 20px; }
.tables-upper-row { display: flex; gap: 100px; justify-content: center; margin-bottom: 20px; }
.bar-island-row { display: flex; align-items: center; justify-content: center; gap: 40px; position: relative; }
.bottom-split-row { 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  gap: 120px; 
  margin-top: 150px; 
  padding-right: 40px;
}

/* CABINS: Horizontal clean rectangles with golden border */
.floor-cabin {
  width: 180px;
  height: 90px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 2px solid #E2B558;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(226, 181, 88, 0.05);
}

/* VERTICAL TABLES: Realistic Wood Grain with CSS */
.floor-table-vertical {
  width: 140px;
  height: 200px;
  border-radius: 8px;
  /* CSS-Native Wood Grain */
  background: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 4px),
    linear-gradient(180deg, #2d1e15 0%, #1a110b 100%);
  border: 1.5px solid #E2B558;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.8), 
    inset 0 0 20px rgba(0,0,0,0.6),
    0 0 10px rgba(226, 181, 88, 0.2);
  position: relative;
}

/* Premium Chairs for Tables */
.floor-table-vertical .f-chair {
  width: 36px;
  height: 40px;
  background: #0d0d0d;
  border: 1.5px solid #E2B558;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
  position: absolute;
  z-index: -1;
}

/* Chairs "Wrap-around" effect from Image 4 */
.floor-table-vertical .f-chair::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(226, 181, 88, 0.3);
  border-radius: 6px;
  margin: 3px;
}

.c-v-left-1 { top: 25%; left: -40px; transform: translateY(-50%); }
.c-v-left-2 { bottom: 25%; left: -40px; transform: translateY(50%); }
.c-v-right-1 { top: 25%; right: -40px; transform: translateY(-50%); }
.c-v-right-2 { bottom: 25%; right: -40px; transform: translateY(50%); }

/* BAR COUNTER: High-end Textured Surface */
.bar-counter-square {
  width: 420px;
  height: 420px;
  background: 
    repeating-radial-gradient(circle at center, transparent, transparent 10px, rgba(255,255,255,0.01) 10px, rgba(255,255,255,0.01) 20px),
    linear-gradient(135deg, #1c1c1c 0%, #0f0f0f 100%);
  border: 2px solid #E2B558;
  border-radius: 24px;
  padding: 70px;
  box-shadow: 
    0 30px 70px rgba(0,0,0,0.9), 
    inset 0 0 40px rgba(0,0,0,0.8),
    0 0 20px rgba(226, 181, 88, 0.1);
  position: relative;
  overflow: visible;
}

.bar-counter-inner-hole {
  width: 100%;
  height: 100%;
  background: #050505;
  border: 1.5px solid rgba(226, 181, 88, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #E2B558;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 5px;
  text-align: center;
  line-height: 1.6;
  box-shadow: inset 0 0 50px rgba(0,0,0,1);
}

/* BAR STOOLS: Elegant Circular Design */
.floor-stool {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 30% 30%, #1a1a1a 0%, #0a0a0a 100%);
  border: 2px solid #E2B558;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Stool Inner Cushion Ring */
.floor-stool::after {
  content: "";
  position: absolute;
  width: 75%; height: 75%;
  border: 1px solid rgba(226, 181, 88, 0.4);
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
}

.bar-stools-left { display: flex; flex-direction: column; gap: 20px; }
.bar-stools-right { display: flex; flex-direction: column; gap: 20px; }
.bar-stools-bottom { 
  position: absolute; 
  bottom: -80px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 30px; 
}

/* LOUNGE AREA: Vertical Luxury Sofa + Table */
.floor-lounge {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lounge-sofa {
  width: 65px;
  height: 190px;
  background: #0a0a0a;
  border: 2px solid #E2B558;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.lounge-sofa .cushion {
  flex: 1;
  background: linear-gradient(90deg, #121212 0%, #070707 100%);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 6px;
  margin: 3px 0;
  box-shadow: 
    inset 0 4px 10px rgba(0,0,0,0.8),
    0 0 5px rgba(0,0,0,0.5);
  position: relative;
}

/* Sofa "Padded" look */
.lounge-sofa .cushion::before {
  content: "";
  position: absolute;
  top: 20%; left: 10%; right: 10%; bottom: 20%;
  border: 1px solid rgba(226, 181, 88, 0.1);
  border-radius: 4px;
}

.lounge-table {
  width: 85px;
  height: 130px;
  border-radius: 8px;
  background: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 4px),
    linear-gradient(180deg, #2d1e15 0%, #1a110b 100%);
  border: 1.5px solid #E2B558;
  box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}

/* Rotated Lounge Table Logic */
.rotated-lounge {
  flex-direction: column-reverse !important;
  align-items: center !important;
  gap: 15px !important;
}
.rotated-lounge .lounge-sofa {
  width: 190px !important;
  height: 60px !important;
  flex-direction: row !important;
  padding: 4px !important;
}
.rotated-lounge .lounge-sofa .cushion {
  margin: 0 3px !important;
}
.rotated-lounge .lounge-table {
  width: 130px !important;
  height: 85px !important;
}

/* BOTTOM CABINS STACK: Professional Clean Layout */
.cabins-bottom-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cabins-bottom-stack .floor-cabin {
  width: 260px; /* Centered emphasis as per image 4 */
  height: 75px;
}

/* Label Refinement */
.floor-label {
  top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.floor-stool .floor-label {
  top: auto;
  font-size: 0.75rem;
  color: var(--accent);
}

/* Interaction & Status High-Density Glows */
.floor-item.occupied { 
  border-color: #ff4d4d; 
  background: rgba(255,77,77,0.03); 
  box-shadow: 0 0 25px rgba(255,77,77,0.2), 0 10px 20px rgba(0,0,0,0.5);
}
.floor-item.occupied .floor-label { color: #ff4d4d; text-shadow: 0 0 10px rgba(255,77,77,0.3); }
.floor-item.occupied .f-chair { border-color: #ff4d4d; }

/* RESTORED PREMIUM FLOOR STYLES */
#tables-grid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px 20px 10px;
}



/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  /* Sidebar becomes a horizontal scrollable menu at the top */
  .sidebar {
    width: 100%;
    height: 70px;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .sidebar-brand {
    display: none; /* Hide logo to save space */
  }
  .sidebar-nav {
    flex-direction: row;
    padding: 0 10px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
  }
  .nav-item {
    padding: 8px 15px;
    margin: 0;
    font-size: 0.9rem;
  }

  /* Main content adjustments */
  .main-content {
    flex: 1;
    overflow-y: auto;
  }

  .topbar {
    padding: 10px;
  }
  .topbar .search-bar {
    width: 100px; /* shrink search */
  }

  /* Floor Map Container - Enable panning/scrolling instead of squishing */
  .tables-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }
  .floor-map {
    min-width: 850px; /* Force it to stay large so user can scroll around */
    align-items: flex-start; /* Prevent left-side cutoff when overflowing */
    padding-left: 20px;
    padding-right: 20px;
  }

  /* POS View Grid */
  .pos-container {
    flex-direction: column;
  }
  .pos-main {
    height: 40vh;
  }
  .pos-bill {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
}

/* =========================================
   IDLE LOCK SCREEN OVERLAY
========================================= */
.lock-screen-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(5, 5, 5, 0.98) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  z-index: 100000 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lock-screen-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.lock-content {
  background: rgba(15, 10, 5, 0.4);
  border: 1px solid rgba(226, 181, 88, 0.2);
  padding: 4rem 3rem;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 30px rgba(226, 181, 88, 0.05);
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lock-screen-overlay.active .lock-content {
  transform: translateY(0);
}

.lock-content .live-logo.login-size {
  transform: scale(1.2);
  margin-bottom: 2rem;
}

.lock-screen-overlay .particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lock-screen-overlay .particle {
  position: absolute;
  background: rgba(226, 181, 88, 0.3);
  border-radius: 50%;
  animation: float-up-lock linear infinite;
}

@keyframes float-up-lock {
  0% { transform: translateY(110vh); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-10vh); opacity: 0; }
}
