/* hidden özelliği her zaman gizler: bileşenlerin display kuralı (flex, grid, inline-flex) onu ezmesin */
[hidden] { display:none !important; }
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #F0F0F2;
  --accent: #0071E3;
  --success: #248A3D;
  --warning: #B8860B;
  --text: #1D1D1F;
  --subtext: #86868B;
  --border: rgba(0,0,0,0.08);
  --line: rgba(0,0,0,0.08);        /* --border ile aynı; mevcut kullanımlar korunur */
  --sidebar-bg: #0A0A0C;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body {
  width: 100vw; height: 100vh; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
}
.app {
  display: flex; width: 100vw; height: 100vh; position: relative;
  background: var(--bg);
}

/* ===== SOL SIDEBAR ===== */
.sidebar {
  width: 260px; flex-shrink: 0; position: relative;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column; padding: 24px 16px;
  border-right: none;
  color: rgba(255,255,255,0.85);
}
/* zone içindeyken biz kartını en alta it */
.nav { flex: 0 0 auto; }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand .logo { width: 34px; height: 34px; object-fit: contain; filter: invert(1) brightness(2); }
.brand .titles .t1 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; color: #fff; }
.brand .titles .t2 { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 1px; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.72);
  cursor: pointer; transition: background .15s, color .15s; user-select: none; white-space: nowrap;
}
.nav-item .ic { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-item .ic svg { width: 20px; height: 20px; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: #FFFFFF; color: #0A0A0C; font-weight: 700; border-radius: 10px; }







.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(48,209,88,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.5);} 70%{box-shadow:0 0 0 6px rgba(48,209,88,0);} 100%{box-shadow:0 0 0 0 rgba(48,209,88,0);} }

/* ===== ANA PANEL ===== */
.main { flex: 1; padding: 24px 26px; display: flex; flex-direction: column; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.main-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.head-right { display: flex; align-items: center; gap: 14px; }
.clock { font-size: 15px; font-weight: 600; color: var(--subtext); font-variant-numeric: tabular-nums; }
.badge-active {
  background: rgba(0,113,227,.16); color: #0071E3; font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 20px;
}





/* ===== LIQUID GLASS (Apple tarzı) ===== */
.table {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 26px; padding: 16px;
  border: 1px solid rgba(255,255,255,0.55); display: flex; flex-direction: column;
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.9),
    inset 0 -10px 24px rgba(255,255,255,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 10px 30px rgba(0,0,0,0.12);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1),
    background .4s ease, backdrop-filter .4s ease, border-color .3s;
}
/* tepe specular parlaması (cam üzerindeki ışık) */
.table::before {
  content:""; position:absolute; left:7%; right:7%; top:5px; height:42%; z-index:0;
  border-radius:50%; pointer-events:none; filter: blur(3px);
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.65), rgba(255,255,255,0.0) 72%);
}
.table > * { position: relative; z-index: 1; }
.table:hover {
  transform: translateY(-6px) scale(1.012);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(22px) saturate(200%); -webkit-backdrop-filter: blur(22px) saturate(200%);
  border-color: rgba(255,255,255,0.85);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,1),
    inset 0 -14px 30px rgba(255,255,255,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.45),
    0 22px 50px rgba(0,0,0,0.18);
}
.table:hover::before { opacity: .9; }
.table .th { font-size: 15px; font-weight: 700; margin-bottom: 2px; }






/* kişi adımlayıcı */






.table.active { border-color: var(--accent); animation: pulseGlow 2.2s infinite; }
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,113,227,0.0); border-color: rgba(0,113,227,.7); }
  50% { box-shadow: 0 0 14px 1px rgba(0,113,227,0.35); border-color: rgba(0,113,227,1); }
}
.table.done { border-color: var(--success); animation: none; }
.table.selected { outline: 2px solid var(--accent); outline-offset: -1px; }

.table .row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.table .pool { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.table .pct { font-size: 12px; font-weight: 600; color: var(--subtext); }



.meta { font-size: 12px; color: var(--subtext); }
.meta.ok { color: var(--success); font-weight: 600; }

.timer { font-size: 12px; color: var(--subtext); font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 8px; }


/* ===== SAĞ PANEL ===== */
.right {
  width: 320px; flex-shrink: 0; position: relative;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-left: 1px solid rgba(255,255,255,0.6); padding: 22px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 1px 0 12px rgba(255,255,255,0.4);
}
.right::-webkit-scrollbar { width: 0; }
.right-empty { color: var(--subtext); font-size: 14px; text-align: center; margin: auto; line-height: 1.6; }

.recog-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--subtext); text-transform: uppercase; }

.cust-card {
  background: linear-gradient(0deg,#000,#000); position: relative; overflow: hidden;
  border-radius: 16px; padding: 18px; border: 1px solid #2c2c2c;
}
.cust-card::after {
  content:""; position:absolute; top:0; left:-60%; width: 50%; height:100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.13), transparent);
  animation: shimmer 3.2s infinite;
}
@keyframes shimmer { 0%{left:-60%;} 60%,100%{left:120%;} }
.cust-card.plain { background: var(--surface-2); border-color: var(--line); }
.cust-card.plain::after { display: none; }
.cust-card .cname { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.cust-card .crow { display:flex; align-items:center; justify-content: space-between; margin-top: 10px; }
.black-badge { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color:#fff;
  border: 1px solid #555; padding: 4px 10px; border-radius: 14px; background: rgba(255,255,255,.04); }
.visit { font-size: 12.5px; color: var(--subtext); }

.stats { display: flex; flex-direction: column; gap: 10px; }


.stat-line { font-size: 13px; color: var(--subtext); }
.stat-line b { color: var(--text); font-weight: 600; }

.divider { height: 1px; background: var(--line); }




.rbar { height: 8px; background: var(--surface-2); border-radius: 5px; margin: 12px 0; overflow:hidden; }
.rbar > span { display:block; height:100%; background: var(--accent); border-radius:5px; transition: width .8s ease; }



.a.paid { background: rgba(48,209,88,.15); border-color: var(--success); color: var(--success); }
.a.wait { background: rgba(0,113,227,.15); border-color: var(--accent); color: #0071E3; }



.add-btn { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; padding: 12px; border-radius: 11px; cursor: pointer; }
.add-btn:hover { background:#333; }
.menu { margin-top: 12px; display: none; flex-direction: column; gap: 8px; }
.menu.open { display: flex; }
.menu-item { display:flex; align-items:center; gap:10px;
  background: var(--surface-2); padding: 11px 13px; border-radius: 10px; }
.mi-thumb { width:40px; height:40px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.mi-info { display:flex; flex-direction:column; min-width:0; flex:1; }
.menu-item .mp { margin-left:auto; }
.menu-item .mn { font-size: 14px; font-weight: 500; }
.menu-item .mp { font-size: 13px; color: var(--subtext); margin-left:auto; margin-right: 10px; }
.plus { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color:#fff; border:none;
  font-size: 18px; font-weight: 600; cursor: pointer; display:flex; align-items:center; justify-content:center; }
.send-cta { margin-top: 12px; width: 100%; background: var(--accent); color:#fff; border:none;
  font-size: 14px; font-weight: 700; padding: 13px; border-radius: 11px; cursor: pointer; }

/* Sipariş listesi (mevcut adisyon) */
.order-list { display:flex; flex-direction:column; gap:7px; margin-bottom: 4px; }
.order-row { display:flex; align-items:center; gap:10px; font-size:13.5px; }
.order-row .oq { font-size:12px; font-weight:700; color:var(--accent); min-width:26px; }
.order-row .on { flex:1; }
.dt-edit { border:1px solid var(--line); background:transparent; border-radius:999px; font:inherit; font-size:11.5px; font-weight:600; color:var(--subtext); padding:3px 9px; cursor:pointer; }
.dt-edit:hover { color:var(--text); border-color:var(--text); }
.ol-h { font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#8E909A; }
.ol-mods { display:flex; flex-direction:column; gap:6px; }
.ol-mod { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1.5px solid #ECEDF1; border-radius:14px; cursor:pointer; font-size:14px; transition:border-color .2s,background .2s; }
.ol-mod input { display:none; } .ol-mod span { flex:1; } .ol-mod small { color:#8E909A; } .ol-mod.on { border-color:#6C5CE7; background:#F4F3FE; }
.ol-note { height:42px; border:1px solid #E3E5EA; border-radius:12px; padding:0 12px; font:inherit; font-size:14px; }
.ol-chips { display:flex; flex-wrap:wrap; gap:6px; } .ol-chip { border:1px solid #E3E5EA; background:#fff; border-radius:999px; padding:7px 12px; font:inherit; font-size:13px; cursor:pointer; }
.ol-chip.on { background:#F5A23B; border-color:#F5A23B; color:#fff; }
.ol-qty { display:flex; align-items:center; gap:10px; font-size:14px; } .ol-qty span { flex:1; color:#6B6E76; } .ol-qty button { width:32px; height:32px; border-radius:50%; border:1px solid #E3E5EA; background:#fff; font-size:16px; cursor:pointer; }
.ol-ik { background:#F5A23B !important; color:#fff !important; border-color:#F5A23B !important; } .ol-ik:disabled { opacity:.45; }
.order-row .op { color:var(--subtext); font-variant-numeric:tabular-nums; }
.order-empty { font-size:13px; color:var(--subtext); }

/* Kategorili menü */


.menu-item .mdesc { display:block; font-size:11px; color:var(--subtext); font-weight:400; margin-top:2px; }
.plus:active { transform:scale(.9); }
.add-flash { animation: addPop .4s ease; }
@keyframes addPop { 0%{background:var(--surface-2);} 35%{background:rgba(0,113,227,.25);} 100%{background:var(--surface-2);} }

/* TOAST */
.toast-wrap { position: fixed; top: 92px; right: 22px; display:flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast {
  background: var(--success); color:#04210D; font-weight: 700; font-size: 14px;
  padding: 14px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(48,209,88,.3);
  display:flex; align-items:center; gap: 10px; transform: translateX(120%); transition: transform .45s cubic-bezier(.2,.9,.3,1.4);
}
.toast.show { transform: translateX(0); }


@keyframes greenFlash { 0%{background: rgba(28,28,30,0);} 30%{background: rgba(48,209,88,.16);} 100%{background: rgba(28,28,30,0);} }

/* ===== GİRİŞ ANİMASYONLARI ===== */
@keyframes cardIn { from { opacity:0; transform: translateY(14px) scale(.97); } to { opacity:1; transform:none; } }







/* Görünüm açıldıktan sonra yerleşir: yeniden çizimde (filtre, yoklama, düzenleme) giriş animasyonları tekrar oynamaz */
.view.settled .order-row, .view.settled .table, .view.settled.view-page.active > *, #rightContent:not(.fresh) > * { animation:none !important; }
@keyframes panelIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }
#rightContent > * { animation: panelIn .5s cubic-bezier(.22,1,.36,1) backwards; }
#rightContent > *:nth-child(2){animation-delay:.05s}#rightContent > *:nth-child(3){animation-delay:.1s}
#rightContent > *:nth-child(4){animation-delay:.15s}#rightContent > *:nth-child(5){animation-delay:.2s}
#rightContent > *:nth-child(6){animation-delay:.25s}#rightContent > *:nth-child(7){animation-delay:.3s}

/* nav cam-hap (liquid pill) */
.nav-item { transition: background .25s, color .2s, transform .2s; }
.nav-item.active { background: #FFFFFF; color: #0A0A0C; box-shadow: none; }
.nav-item:active { transform: scale(.97); }

/* sipariş satırı belirme */
@keyframes rowIn { from{opacity:0; transform:translateX(-6px);} to{opacity:1; transform:none;} }
.order-row { animation: rowIn .35s ease backwards; }

/* toast cam yüzey */
.toast {
  background: linear-gradient(135deg, rgba(48,209,88,.92), rgba(36,170,72,.92));
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 34px rgba(48,209,88,.35), inset 0 1px 0 rgba(255,255,255,.3);
}

/* ===== GÖRÜNÜM ÇERÇEVESİ ===== */
.views { flex: 1; display: flex; min-width: 0; height: 100%; }
.view { display: none; flex: 1; min-width: 0; }
.view.active { display: flex; animation: viewIn .42s cubic-bezier(.22,1,.36,1); }

@keyframes viewIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }
/* görünüm içindeki bloklar kademeli belirsin */
.view-page.active > * { animation: viewStagger .5s cubic-bezier(.22,1,.36,1) backwards; }
.view-page.active > *:nth-child(1){animation-delay:.04s}
.view-page.active > *:nth-child(2){animation-delay:.10s}
.view-page.active > *:nth-child(3){animation-delay:.16s}
.view-page.active > *:nth-child(4){animation-delay:.22s}
@keyframes viewStagger { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }
.view-page { flex-direction: column; padding: 28px 32px; overflow-y: auto; gap: 0; }
.view-page::-webkit-scrollbar { width: 8px; }
.view-page::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
.view-title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 20px; }

/* Genel Bakış */
















/* Menü placeholder */




/* Raporlar */






/* Ayarlar */







/* ===== KARTLAR DA CAM (varsayılan) ===== */
.menu-item {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.08); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 6px 20px rgba(0,0,0,0.06);
}

/* ===== GENEL CAM HOVER'LAR ===== */
/* tüm tıklanabilir yüzeyler hover'da gerçek buzlu cama dönüşür */
.nav-item, .add-btn, .send-cta, .plus, .menu-item {
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease,
    border-color .25s ease, transform .2s cubic-bezier(.22,1,.36,1), color .2s ease;
}

/* nötr yüzeyler → şeffaf buzlu cam */
.menu-item:hover, .add-btn:hover {
  background: linear-gradient(155deg, rgba(255,255,255,0.55), rgba(255,255,255,0.28)) !important;
  backdrop-filter: blur(24px) saturate(200%); -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 0 0 1px rgba(255,255,255,0.35), 0 10px 26px rgba(0,0,0,0.12);
  color: var(--text);
}
/* not: nav-item hover'da YER DEĞİŞTİRMEZ (translateY tek tıkı bozuyordu) */
.menu-item:hover { transform: translateY(-3px); }
.nav-item:hover .ic { color: #fff; }

/* mavi vurgulu yüzeyler → şeffaf mavi cam */
.send-cta:hover, .plus:hover {
  background: linear-gradient(155deg, rgba(0,113,227,0.55), rgba(0,113,227,0.30)) !important;
  backdrop-filter: blur(22px) saturate(200%); -webkit-backdrop-filter: blur(22px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 26px rgba(0,113,227,0.30);
  color: #fff;
  transform: translateY(-2px);
}

/* aktif nav öğesi hover'da bile mavi cam kalsın */
.nav-item.active:hover { background: #FFFFFF !important; color: #0A0A0C; }
.nav-item.active:hover .ic { color: #0A0A0C; }

/* ===== KAYAN AKTİF CAM HAP (nav indicator) ===== */
.nav { position: relative; }
.nav-item { position: relative; z-index: 1; }
.nav-indicator {
  position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0;
  border-radius: 10px; opacity: 0; pointer-events: none;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  transition: transform .45s cubic-bezier(.34,1.32,.46,1), height .45s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
/* aktif öğenin kendi arka planını kaldır — beyaz hap görünsün */
.nav-item.active, .nav-item.active:hover {
  background: transparent !important; box-shadow: none !important; color: #0A0A0C !important; font-weight: 700;
}
.nav-item.active .ic, .nav-item.active:hover .ic { color: #0A0A0C !important; }
