/* =============================================
   Restoran POS - Ana Stil
   ============================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', -apple-system, sans-serif; background: #f0f2f5; }

/* ===== Ust Bar ===== */
.pos-topbar { background: #1a1a2e; color: #fff; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.pos-logo { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.pos-user { display: flex; align-items: center; gap: 15px; font-size: 13px; }
.btn-cihaz { background: #c0392b; color: #fff; padding: 7px 15px; border-radius: 6px; text-decoration: none; font-size: 13px; }
.btn-cihaz:hover { background: #e74c3c; }

/* ===== POS Yerlesim ===== */
.pos-layout { display: flex; height: calc(100vh - 130px); }
.pos-menu { flex: 1; background: #fff; padding: 15px; display: flex; overflow: hidden; }
.pos-kategoriler { width: 150px; display: flex; flex-direction: column; gap: 8px; padding-right: 12px; border-right: 1px solid #eee; overflow-y: auto; }
.pos-kat-btn { padding: 12px; border: none; border-radius: 8px; background: #eee; cursor: pointer; font-weight: 600; font-size: 14px; transition: .2s; }
.pos-kat-btn:hover { background: #d5d5d5; }
.pos-urunler { flex: 1; padding-left: 15px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; overflow-y: auto; align-content: start; }
.pos-urun-btn { padding: 20px 10px; border: none; border-radius: 10px; color: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 85px; transition: .2s; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.pos-urun-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,.2); }
.pos-urun-ad { font-size: 13px; font-weight: 600; }
.pos-urun-fiyat { font-size: 15px; font-weight: 800; }

/* ===== Sepet ===== */
.pos-sepet { width: 340px; background: #fff; border-left: 1px solid #eee; display: flex; flex-direction: column; }
.pos-sepet-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid #eee; }
.pos-sepet-header h3 { font-size: 15px; }
.btn-temiz { background: none; border: none; color: #c0392b; font-size: 16px; cursor: pointer; }
.pos-sepet-icerik { flex: 1; overflow-y: auto; padding: 10px 15px; }
.sepet-kalem { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.sepet-kalem-ad { flex: 1; font-size: 13px; }
.sepet-kalem-kontrol { display: flex; align-items: center; gap: 6px; }
.sepet-kalem-kontrol button { width: 26px; height: 26px; border: 1px solid #ddd; border-radius: 5px; background: #fff; cursor: pointer; font-weight: 700; }
.sepet-kalem-fiyat { font-size: 13px; font-weight: 700; min-width: 65px; text-align: right; }
.pos-sepet-alt { padding: 15px; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 10px; }
.pos-toplam { font-size: 18px; font-weight: 800; text-align: center; }
.masa-sec { padding: 12px; border: 2px solid #eee; border-radius: 8px; font-size: 15px; width: 100%; }
.btn-siparis { padding: 14px; background: #27ae60; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-siparis:hover { background: #2ecc71; }

/* ===== Aktif Siparisler ===== */
.pos-siparisler { background: #fff; margin: 15px; padding: 15px; border-radius: 12px; }
.pos-siparisler h3 { font-size: 15px; margin-bottom: 12px; }
.aktif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.aktif-kart { border: 1px solid #eee; border-radius: 10px; padding: 12px; }
.aktif-kart-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.aktif-kart-ust .durum-acik { color: #27ae60; font-size: 11px; font-weight: 700; }
.aktif-kart-ust .durum-mutfakta { color: #f39c12; font-size: 11px; font-weight: 700; }
.aktif-kart-toplam { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.aktif-kart-alt { display: flex; gap: 6px; }
.btn-ode { flex: 1; padding: 8px; border: none; border-radius: 6px; background: #27ae60; color: #fff; font-size: 12px; cursor: pointer; }
.btn-ptl { padding: 8px 10px; border: none; border-radius: 6px; background: #eee; cursor: pointer; }

/* ===== Admin tablolar ===== */
.admin-wrap { padding: 25px; }
.admin-wrap h1 { margin-bottom: 20px; font-size: 22px; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 20px; overflow: hidden; }
.card-head { padding: 14px 18px; border-bottom: 1px solid #eee; font-weight: 700; }
.card-body { padding: 18px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 12px; font-size: 12px; color: #888; text-transform: uppercase; border-bottom: 2px solid #eee; }
td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
tr:hover td { background: #fafafa; }
input[type=text], input[type=number], input[type=password], select { padding: 10px 12px; border: 2px solid #e8e8e8; border-radius: 8px; font-size: 14px; width: 100%; }
input:focus, select:focus { border-color: #4a90d9; outline: none; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.form-grup { margin-bottom: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: #1a1a2e; color: #fff; }
.btn-primary:hover { background: #16213e; }
.btn-basari { background: #27ae60; color: #fff; }
.btn-tehlike { background: #e74c3c; color: #fff; padding: 6px 12px; font-size: 12px; }
.btn-kucuk { padding: 6px 12px; font-size: 12px; background: #eee; color: #333; }
.btn-kucuk:hover { background: #ddd; }
.tab { display: inline-block; padding: 10px 22px; margin-right: 5px; border-radius: 8px 8px 0 0; background: #eee; color: #666; text-decoration: none; font-size: 14px; font-weight: 600; }
.tab.aktif { background: #1a1a2e; color: #fff; }
.uyari { background: #fdf3e3; color: #9a6700; padding: 12px 16px; border-radius: 8px; margin-bottom: 15px; font-size: 13px; }
.basarili { background: #e8f8ef; color: #1e7d40; padding: 12px 16px; border-radius: 8px; margin-bottom: 15px; font-size: 13px; }

@media(max-width:768px) {
    .pos-layout { flex-direction: column; height: auto; }
    .pos-sepet { width: 100%; border-left: none; border-top: 1px solid #eee; min-height: 300px; }
    .pos-kategoriler { width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid #eee; padding-bottom: 10px; overflow-x: auto; }
    .form-row { grid-template-columns: 1fr; }
}