/* ─── Temel ─────────────────────────────────────────── */
:root {
  --renk-ana: #e85d04;
  --renk-ana-koyu: #c44d00;
  --renk-acik: #2dc653;
  --renk-birlesik: #f4a261;
  --renk-odendi: #6c757d;
  --renk-bg: #f8f9fa;
  --renk-kart: #ffffff;
  --renk-navbar: #1a1a2e;
}

* { box-sizing: border-box; }

html, body {
  max-width: 430px;
  margin: 0 auto;
  background: var(--renk-bg);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
  background: var(--renk-navbar) !important;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 56px;
}

.main-content {
  min-height: calc(100vh - 56px);
  padding-bottom: 80px;
}

/* ─── Login ─────────────────────────────────────────── */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-icon {
  font-size: 48px;
  color: var(--renk-ana);
}

/* ─── Dashboard ─────────────────────────────────────── */
.btn-masa-ekle {
  min-height: 44px;
  font-weight: 600;
  border-radius: 12px;
}

.genel-toplam-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
}

.genel-toplam-tutar {
  font-size: 18px;
  color: var(--renk-ana);
}

.masa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 100px;
}

.masa-kart {
  background: var(--renk-kart);
  border-radius: 16px;
  padding: 16px 14px;
  cursor: pointer;
  border: 2px solid transparent;
  border-left: 5px solid var(--renk-acik);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.masa-kart:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.masa-kart.masa-birlesik {
  border-left-color: var(--renk-birlesik);
}

.masa-no {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.masa-grup-badge {
  font-size: 11px;
  color: var(--renk-birlesik);
  font-weight: 600;
}

.masa-tutar {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin: 4px 0;
}

.masa-musteri-sayisi {
  font-size: 13px;
  color: #888;
}

.bos-durum {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 40px;
}

.bos-durum p {
  font-size: 16px;
  margin: 8px 0 4px;
}

/* ─── Bottom Sheet Panel ─────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.overlay.aktif {
  opacity: 1;
  pointer-events: all;
}

.bottom-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  background: white;
  border-radius: 20px 20px 0 0;
  z-index: 201;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.bottom-panel.aktif {
  transform: translateX(-50%) translateY(0);
}

.panel-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 4px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.panel-tutar {
  font-size: 24px;
  font-weight: 800;
  color: var(--renk-ana);
}

.panel-grup-info {
  font-size: 12px;
  color: var(--renk-birlesik);
  font-weight: 600;
}

.musteri-listesi {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.musteri-kart {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
}

.musteri-kart:active {
  background: #e9ecef;
}

.musteri-kart.odendi {
  opacity: 0.5;
  background: #f0f0f0;
}

.musteri-isim {
  font-weight: 600;
  font-size: 15px;
}

.musteri-tutar {
  font-size: 17px;
  font-weight: 700;
  color: var(--renk-ana);
}

.musteri-tutar.odendi-text {
  color: var(--renk-odendi);
  text-decoration: line-through;
}

.panel-butonlar {
  display: flex;
  gap: 8px;
  padding: 12px 16px 20px;
  border-top: 1px solid #f0f0f0;
}

/* ─── Sipariş Modal ─────────────────────────────────── */
.siparis-list {
  max-height: 200px;
  overflow-y: auto;
  border-bottom: 1px solid #f0f0f0;
}

.siparis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f5f5f5;
}

.siparis-item:last-child { border-bottom: none; }

.siparis-adi {
  font-weight: 500;
  font-size: 14px;
}

.siparis-detay {
  font-size: 12px;
  color: #888;
}

.siparis-fiyat {
  font-weight: 700;
  font-size: 15px;
  color: var(--renk-ana);
}

.siparis-duzenle {
  background: none;
  border: none;
  color: #bbb;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
}

.siparis-duzenle:active { color: #0d6efd; }

.siparis-sil {
  background: none;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.siparis-sil:active { color: #dc3545; }

.siparis-item.duzenle-aktif {
  background: #fff8e1;
  border-left: 3px solid #ffc107;
  padding-left: 13px;
}

.bos-siparis {
  text-align: center;
  padding: 16px;
  color: #aaa;
  font-size: 14px;
}

/* ─── Ürün Listesi (Sipariş) ─────────────────────────── */
.kategori-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.kategori-tabs::-webkit-scrollbar { display: none; }

.kategori-btn {
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}

.kategori-btn.aktif {
  background: var(--renk-ana);
  color: white;
  border-color: var(--renk-ana);
}

.urun-listesi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.urun-btn {
  background: white;
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.1s;
}

.urun-btn:active, .urun-btn.secili {
  border-color: var(--renk-ana);
  background: #fff5f0;
}

.urun-btn-isim {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.urun-btn-fiyat {
  font-size: 13px;
  color: var(--renk-ana);
  font-weight: 700;
  margin-top: 4px;
}

/* ─── Miktar Kontrol ─────────────────────────────────── */
.miktar-kontrol {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.miktar-kontrol .btn {
  border-radius: 0;
  border: none;
  font-size: 20px;
  line-height: 1;
  padding: 6px 14px;
}

.miktar-deger {
  font-size: 18px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

/* ─── Ayarlar ────────────────────────────────────────── */
.kategori-grup { }
.kategori-baslik {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  background: #f8f9fa;
  border-bottom: 1px solid #f0f0f0;
}

.btn-xs {
  font-size: 11px;
  padding: 2px 6px;
  line-height: 1.5;
  border-radius: 6px;
}

.urun-satir {
  border-bottom: 1px solid #f5f5f5;
}

.urun-satir:last-child { border-bottom: none; }

/* ─── Rapor ──────────────────────────────────────────── */
.ozet-kart {
  background: white;
  border-radius: 14px;
  padding: 14px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ozet-ikon {
  font-size: 22px;
  color: #888;
  margin-bottom: 4px;
}

.ozet-rakam {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.ozet-etiket {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* ─── Genel ──────────────────────────────────────────── */
.card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-header {
  border-radius: 14px 14px 0 0 !important;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.btn-primary { background: var(--renk-ana); border-color: var(--renk-ana); }
.btn-primary:hover { background: var(--renk-ana-koyu); border-color: var(--renk-ana-koyu); }

#btnAyir { border-width: 2px; font-weight: 700; }
