 :root {
     --primary-dark: #131f35;
     --bg-light: #f4f7f6;
     --text-light: #ffffff;
     --accent-color: #3498db;
     --card-bg: #ffffff;
    --text-main: #333333;
    /* Dark Gray */
    --text-muted: #666666;
    /* Gray */
    --text-silver: #bdc3c7;
    --text-light: #ffffff;
    /* Silver */
    --text-dim: #888888;
    /* Dim Gray */

    --bg-dark-card: #2c3e50;
    /* Midnight Blue */
    --bg-toggle: #e0e0e0;
    /* Light Gray */
    --accent-color: #3498db;
    --card-bg: #ffffff;
    --border-light: #eeeeee;
    /* White Gray */
    --border-input: #dddddd;
    /* Silver Gray */

    --btn-positive: #2ecc71;
    /* Green */
    --btn-negative: #e74c3c;
    /* Red */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.3);
    --shadow-mobile: 0 10px 25px rgba(0, 0, 0, 0.3);
 }
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* Header Ayarları */
header {
    background-color: var(--primary-dark);
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    color: var(--text-light);
    box-shadow: var(--shadow-light);
}

.header-left h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: 600;
}
/* --- Tipografi Hiyerarşisi --- */

/* Başlıklar - Sadece Boyut ve Margin Odaklı */
h2 { font-size: 24px; margin-bottom: 15px; font-weight: 700; }
h3 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }

/* Evrensel Metin Classları */
.title-text { 
    font-size: 15px; 
    font-weight: 600; 
    line-height: 1.2;
}

.sub-title-text { 
    font-size: 13px; 
    color: var(--text-dim); 
    font-style: italic;
    line-height: 1.4;
    display: block; /* Alt satıra düşmesi için */
}

.content-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Kategori Ayırıcı Şerit */
.category-header {
    background-color: var(--text-main); /* #333333 */
    padding: 10px 15px;
    margin: 20px -15px 10px -15px; /* Container dışına taşması için */
    border-left: 5px solid var(--accent-color);
}
.header-right img {
    height: 75px;
    display: block;
}
/* --- Tipografi Hiyerarşisi --- */

/* Başlıklar - Sadece Boyut ve Margin Odaklı */
h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Fiyat için özel vurgu */
.price-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
}

/* Kategori Ayırıcı Şerit */
.category-header {
    background-color: var(--text-main);
    /* #333333 */
    padding: 10px 15px;
    margin: 20px -15px 10px -15px;
    /* Container dışına taşması için */
    border-left: 5px solid var(--accent-color);
}
/* Ana İçerik Alanı */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 10px;
}


/* Grid Yapısı */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}
.panel-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.column-title {
    grid-column: span 1;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}
/* Dil seçeneği gibi yan yana durması gereken gruplar */
.field-inline-align {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
/* Buton Tasarımları */
.admin-button {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.admin-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.admin-button i {
    font-size: 30px;
    margin-right: 20px;
    color: var(--accent-color);
    width: 200px;
    text-align: center;
}

.btn-text {
    font-size: 18px;
    font-weight: 600;
}
.qty-btn {

    font-size: 1.4rem;
    border-radius: 50%;
    border: 1px solid var(--dark-brown);
    background: none;
    color: var(--btn-positive);
    cursor: pointer;
    font-weight: bold;
}
.qty-btn:hover {
    background: var(--dark-brown);
    color: #fff;
}
.floating-container {
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 1111;
}
.action-main {
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.action-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* JS ile açılacak */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.action-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
}
.opt-btn {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: #e74c3c;
    color: white;
    margin-top: 10px;
}
/*----------------------------*/
/* SEÇMELİ TOGGLE SWITCH FORM */
/*---------------------------*/
.mobile-size {
    max-width: 450px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--bg-dark-card);
    border-radius: 15px;
    box-shadow: var(--shadow-mobile);
    color: var(--text-light);
    text-align: center;
}

.toggle-group {
    display: flex;
    background: var(--bg-toggle);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-muted);
}

.toggle-btn.active {
    background: var(--card-bg);
    color: var(--primary-dark);
    box-shadow: var(--shadow-card);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-silver);
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    /* Butonları ortalar */
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

/* Sil butonu için özel stil (opsiyonel) */
.btn-danger {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-positive {
    background: var(--btn-positive);
    color: var(--text-light);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.btn-negative {
    background: var(--btn-negative);
    color: var(--text-light);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
/* --- Kategori Gezinti Barı (Sticky Swipe) --- */
.category-nav {
    position: sticky;
    top: 0;
    display: flex;
    overflow-x: auto; 
    white-space: nowrap;
    overflow-x: auto;
    background-color: var(--text-main);
    /* #333333 */
    padding: 20px 15px;
    gap: 10px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: none;
    /* Firefox için scroll gizle */
}
.category-section {
    scroll-margin-top: 60px;
    /* Navigasyon bandının yüksekliğine göre ayarla */
}
.category-nav::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari için scroll gizle */

.nav-item {
    white-space: nowrap;
    color: var(--text-silver);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: var(--accent-color);
    color: var(--text-light);
}

/* --- Ürün Listeleme Düzeni --- */
.product-item {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.product-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-buttons {
    display: flex;
    gap: 5px;
}

.product-buttons button {
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

/* Kategori Başlığı İçin Küçük Düzeltme */
.category-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    margin: 25px -15px 10px -15px;
    border-left: 4px solid var(--accent-color);
}
/* Responsive Ayar */
@media (max-width: 768px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }

    header {
        height: auto;
        padding: 15px;
        flex-direction: column-reverse;
        gap: 10px;
    }

    .header-left h1 {
        font-size: 18px;
    }
}
/* --- MODAL EVRENSEL TASARIM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* JS ile açılacak */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-dark-card);
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: var(--shadow-mobile);
    padding: 25px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
/* Sadece modal içindeki grid'i 3'lü yap */
.modal-content .panel-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px;
    /* Kutular arası mesafeyi biraz daralttık */
}

/* Mobilde modal içindeki 3'lü yapıyı tek sütuna düşür (Sıkışmaması için) */
@media (max-width: 480px) {
    .modal-content .panel-grid {
        grid-template-columns: 1fr !important;
    }
}
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: var(--text-silver);
    font-size: 24px;
    cursor: pointer;
}

/* Modal içindeki başlıklar için beyaz renk zorlaması */
.modal-content h3 {
    color: var(--text-light);
    margin-top: 0;
}
.sticky-bar {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* Değişen kısımlar aşağıda */
    background-color: var(--text-main);
    /* Arka planın şeffaf kalmaması için net renk veriyoruz */
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
    /* Gölgeyi belirginleştirdik */
    z-index: 9999;
    /* Diğer her şeyin üstünde olması için yükselttik */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Hafif belirginlik katmak için */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-main);
    /* Arka planı karart */
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-buttons {
    display: flex;
    /* Yan yana diz */
    gap: 15px;
    /* Aradaki boşluk */
    margin-top: 20px;
    /* Üstteki inputlarla mesafe */
    justify-content: center;
    /* Buton grubunu ortala */
}

.modal-buttons button {
    flex: 1;
    padding: 12px 0;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    min-width: 120px;
}
.order-summary-card {
    width: 100%;
    max-width: 500px;
    /* Çok genişlemesin */
    max-height: 90vh;
    /* Ekrandan taşmasın */
    overflow-y: auto;
    /* İçerik çoksa kaydırılsın */
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--btn-positive);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
}

.modal-input {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
}
.footer-credit {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    }
.total-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px dashed #555;
}
/* Mutfak Ekranı Ana Taşıyıcı */
.kitchen-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Genel Kart Yapısı */
.kitchen-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 8px solid #1b80d4;
    /* Standart Sipariş Rengi */
    transition: transform 0.2s;
}

/* Garson Çağrısı (Sarı Alarm) */
.waiter-bg {
    border-top-color: #f1c40f;
    background: #fffdf0;
}

/* Kart Üst Bilgisi */
.card-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masa-no {
    font-weight: 800;
    color: #1b80d4;
    font-size: 1.1rem;
}

.cust-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    background: #1b80d4;
    padding: 2px 8px;
    border-radius: 4px;
}

/* İçerik Alanı */
.card-body {
    padding: 20px;
    flex-grow: 1;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-list li {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.product-list li strong {
    color: #c0392b;
    /* Adetleri vurgulayalım */
    margin-right: 5px;
}

/* Alt Kısım ve Butonlar */
.card-footer {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.time-text {
    font-size: 1.25rem;
    color: #999;
    font-weight: bold;
}

/* Global Butonlarımızı Buraya Giydir */
