﻿/* =========================================================
   WAROENG GECOK - THEME & STYLING
   Bright, Fresh, Appetizing Nusantara POS & Table Ordering
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --primary: #E65100;
  --primary-light: #FF9800;
  --primary-dark: #BF360C;
  --primary-gradient: linear-gradient(135deg, #FF6B00 0%, #EA580C 100%);
  --secondary: #10B981;
  --accent: #F59E0B;
  --bg-main: #FFFDF9;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #F1F5F9;
  --border-strong: #E2E8F0;
  --shadow-lg: 0 10px 15px -3px rgba(234, 88, 12, 0.12), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-md: 14px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F1F5F9; border-radius: 9999px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Header */
.top-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.2s ease;
}

/* Mode Pills */
.mode-pill { transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.mode-pill.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(234,88,12,0.35);
  transform: translateY(-1px);
}
.mode-pill:not(.active):hover { background: #FFF7ED; color: #EA580C; }

/* App Container */
.app-container { min-height: calc(100vh - 72px); }

/* Mobile Simulator */
.mobile-simulator-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem 3rem;
  min-height: calc(100vh - 72px);
  background: linear-gradient(160deg, #f8f8ff 0%, #fff8f0 100%);
}

.mobile-phone-frame {
  width: 100%;
  max-width: 390px;
  background: #FFFFFF;
  border-radius: 44px;
  box-shadow:
    0 30px 60px -12px rgba(0,0,0,0.22),
    0 0 0 10px #1E293B,
    0 0 0 12px #475569,
    0 0 0 14px #1E293B;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 860px;
  min-height: 700px;
}

/* POS Layout */
.pos-grid-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
  height: calc(100vh - 78px);
  padding: 1rem 1.25rem;
  overflow: hidden;
  background: var(--bg-main);
}

@media (max-width: 1023px) {
  .pos-grid-container {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding-bottom: 2rem;
  }
}

/* Category Pills */
.category-pill {
  transition: all 0.2s ease;
  white-space: nowrap;
  background: #FFFFFF;
  color: #64748B;
  border: 1px solid #E2E8F0;
}
.category-pill.active {
  background: #FFEDD5;
  color: #C2410C;
  border-color: #FDBA74;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(234,88,12,0.14);
}
.category-pill:hover:not(.active) { background: #FFF7ED; border-color: #FED7AA; color: #EA580C; }

/* Menu Cards */
.menu-card {
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  background: #FFFFFF;
  border: 1.5px solid #F1F5F9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(234,88,12,0.18), 0 4px 8px rgba(0,0,0,0.06);
  border-color: #FED7AA;
}
.menu-card:active { transform: scale(0.99) translateY(-2px); }

.menu-card-img-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF7ED, #FFF3E0);
  flex-shrink: 0;
}
.menu-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}
.menu-card:hover .menu-card-img-wrap img { transform: scale(1.07); }

/* Table Node */
.table-node {
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.table-node:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }

/* Thermal Receipt */
.receipt-paper {
  font-family: var(--font-mono);
  background: #FEFFFE;
  color: #1E293B;
  padding: 20px 16px;
  border-radius: 12px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
}

/* Modal Animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-in { animation: fadeInScale 0.22s cubic-bezier(0.34,1.56,0.64,1) both; }

/* Print Styles */
@media print {
  body * { visibility: hidden; }
  .receipt-paper, .receipt-paper *,
  .acrylic-standee, .acrylic-standee * { visibility: visible; }
  .receipt-paper, .acrylic-standee {
    position: absolute; left: 0; top: 0;
    width: 80mm; margin: 0; padding: 8px;
    box-shadow: none; background: white !important; font-size: 10px;
  }
  .no-print { display: none !important; }
  header, nav { display: none !important; }
}

/* Responsive */
@media (max-width: 640px) {
  .pos-grid-container { padding: 0.75rem; gap: 0.75rem; }
  .mobile-phone-frame {
    border-radius: 32px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.18), 0 0 0 8px #1E293B, 0 0 0 10px #475569;
  }
}
