/* assets/style.css - V28.0 (TIGHT SPACING FIX) */

:root {
    /* 🌙 KOYU TEMA — Sıcak antrasit tonları */
    --bg-body: #1E1B18;
    --bg-sidebar: #1A1714;
    --bg-header: #252220;
    --bg-card: #2C2825;
    --bg-input: #353130;
    --text-main: #E8E0DB;
    --text-muted: #9B8E85;
    --border-color: #3D3633;
    --hover-color: #38322E;

    /* 🔴 MARKANIN RENGİ */
    --color-brand: #8B3A3A;
    --color-brand-hover: #A04545;
    --color-brand-text: #ffffff;

    /* Platformlar */
    --color-trendyol: #F27A1A;
    --color-getir: #5D3EBC;
    --color-migros: #FFD300;
    --color-yemeksepeti: #C62A51;
    /* OPK-094 — opaket marka rengi. `dash-v3.css`teki `--opaket` ile AYNI
       deger; iki dosyada farkli olsaydi ayni platform iki ekranda iki renk
       gorunurdu ve renk bir kimlik sinyali olmaktan cikardi. */
    --color-opaket: #C24A22;

    /* Durumlar */
    --color-success: #4CAF50;
    --color-warning: #FFB74D;
    --color-danger: #EF5350;

    /* Özel Durumlar (Notlar, Badge'ler) */
    --bg-note: #3D2020;
    --text-note: #F5C6C6;
    --border-note: #6B3030;
    --bg-warning: #3D3420;
    --text-warning: #F5DFA0;
    --border-warning: #6B5A30;

    /* Opsiyon Tagleri (Sipariş Ekranı) */
    --bg-tag: #353130;
    --text-tag: #C4B8B0;
    --border-tag: #4A4340;
    --bg-tag-add: #2E3425;
    --text-tag-add: #C8E6A0;
    --border-tag-add: #4A6030;
    --bg-tag-remove: #3D2525;
    --text-tag-remove: #F5A0A0;
    --border-tag-remove: #6B3535;

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.12);
    --transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

[data-theme="light"] {
    /* ☀️ AÇIK TEMA */
    --bg-body: #f5f5f5;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f0f0f0;
    --text-main: #212121;
    --text-muted: #505050;
    --border-color: #cccccc;
    --hover-color: #e9e9e9;

    /* Özel Durumlar (Açık Tema İçin) */
    --bg-note: #ffebee;
    --text-note: #b71c1c;
    --border-note: #e57373;
    --bg-warning: #fff8e1;
    --text-warning: #f57f17;
    --border-warning: #ffca28;

    --shadow-card: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);

    /* Opsiyon Tagleri (Açık Tema) */
    --bg-tag: #fff;
    --text-tag: #333;
    --border-tag: #e0e0e0;
    --bg-tag-add: #fff3cd;
    --text-tag-add: #000;
    --border-tag-add: #ffc107;
    --bg-tag-remove: #fde8e8;
    --text-tag-remove: #721c24;
    --border-tag-remove: #f5c6cb;
}

/* Focus stilleri — mavi glow kaldırıldı */
*:focus {
    outline: none !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* 📺 YÜKSEK KONTRAST MODU (ESKİ MONİTÖRLER İÇİN) */
[data-contrast="high"] * {
    box-shadow: none !important;
    filter: none !important;
}

[data-contrast="high"] .siparis-karti,
[data-contrast="high"] .mini-card,
[data-contrast="high"] .settings-menu,
[data-contrast="high"] .modal-kutu,
[data-contrast="high"] .kurye-badge,
[data-contrast="high"] .uyari-etiket,
[data-contrast="high"] .musteri-notu,
[data-contrast="high"] .btn-grup>button,
[data-contrast="high"] .login-box {
    border: 2px solid var(--text-muted) !important;
}

[data-contrast="high"] .mini-card.secili {
    border-width: 3px !important;
    border-color: var(--color-brand) !important;
}

[data-contrast="high"] {
    --text-muted: #555555;
}

[data-theme="dark"][data-contrast="high"] {
    --text-muted: #aaaaaa;
}

/* GENEL */
html {
    font-size: 100%;
    transition: font-size 0.2s ease;
}

body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-size: 1rem;
    transition: background 0.3s;
}

* {
    box-sizing: border-box;
}

/* --- LOGIN EKRANI --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-body);
}

.login-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 0.75rem;
    text-align: center;
    width: 22rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.login-logo {
    width: 6rem;
    height: auto;
    margin-bottom: 1.25rem;
    filter: none;
}

.login-input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.6rem 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 0.4rem;
    font-size: 1rem;
    outline: none;
    text-align: center;
    transition: 0.3s;
}

.login-input:focus {
    border-color: var(--color-brand);
    box-shadow: none;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-brand);
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.6rem;
    transition: 0.2s;
}

.login-btn:hover {
    background: var(--color-brand-hover);
}

/* --- DASHBOARD --- */
.dashboard-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 27rem;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    background: var(--bg-header);
}

/* Dokunmatik POS: sol panel (logo/sekme/liste/POS/kasa) + TÜM butonlar parmakla
   seçilmesin, tarayıcı seçim/çeviri menüsü çıkmasın. Sağ detay içeriği
   (müşteri/adres vb.) seçilebilir kalsın diye .main-content kapsanmadı. */
.sidebar,
button {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.sidebar-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-logo-img {
    height: 2.5rem;
    width: auto;
    filter: none;
    transition: var(--transition);
}

.sidebar-logo-img:hover {
    transform: scale(1.1) rotate(-3deg);
}

.sidebar-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
    text-transform: uppercase;
}

/* BUTONLAR */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
    padding-right: 48px;
    /* Hamburger buton için alan bırak */
}

.btn-satislar {
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: #333;
    border: 1px solid #444;
    transition: all 0.3s;
    cursor: pointer;
    padding: 0 6px;
    gap: 4px;
    outline: none;
}

.btn-satislar:hover,
.btn-satislar.acik {
    background: #444;
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.btn-icon {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--hover-color);
    transform: rotate(15deg);
}

.btn-cikis {
    background: var(--color-brand);
    color: white;
    border: none;
    padding: 0 1.25rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    white-space: nowrap;
    margin-top: 8px;
}

.btn-cikis:hover {
    background: var(--color-brand-hover);
}

/* AYARLAR MENÃœSÃœ */
.settings-menu {
    display: none;
    position: absolute;
    top: 3rem;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    z-index: 100;
    min-width: 14rem;
    animation: slideDown 0.2s ease;
}

.settings-menu.acik {
    display: block;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.p-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #111;
    min-width: 30px;
    text-align: center;
}

.settings-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-muted);
}

.font-controls {
    display: flex;
    gap: 0.3rem;
}

.btn-font-mini {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;

    /* ✨ EKLEME: İçindeki yazıyı tam göbeğe oturt */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Varsayılan boşlukları sil */
    line-height: 1;
    /* Satır yüksekliği kaymasını önle */
}

/* Hover efekti aynı kalabilir */
.btn-font-mini:hover {
    background-color: var(--bg-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--color-brand);
}

.sidebar-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    background: var(--bg-input);
    padding: 0.25rem;
    border-radius: 0.6rem;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0.4rem;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.aktif {
    background: var(--color-brand);
    color: white;
    box-shadow: none;
}

/* KURYE & LÄ°STE */
.kurye-takip-bari {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem;
    font-size: 0.8rem;
    max-height: 8rem;
    overflow-y: auto;
}

.kt-baslik {
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.kt-item {
    display: flex;
    justify-content: space-between;
    background: var(--bg-input);
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.3rem;
    border-radius: 0.4rem;
    color: var(--text-main);
    font-weight: 600;
    align-items: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.kt-bekleyen {
    border-left: 0.25rem solid var(--color-success);
}

.kt-yolda {
    border-left: 0.25rem solid #2196f3;
}

.order-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem;
    scroll-behavior: smooth;
}

/* KARTLAR */
.mini-card {
    padding: 1rem;
    border-radius: 0.6rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-left: 0.4rem solid var(--border-color);
    background: var(--bg-card);
    box-shadow: none;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.mini-card:hover {
    transform: translateX(0.2rem);
    background: var(--hover-color);
}

.mini-card.platform-trendyol {
    border-left-color: var(--color-trendyol) !important;
    background: linear-gradient(90deg, rgba(242, 122, 26, 0.05) 0%, var(--bg-card) 100%);
}

.mini-card.platform-getir {
    border-left-color: var(--color-getir) !important;
    background: linear-gradient(90deg, rgba(93, 62, 188, 0.05) 0%, var(--bg-card) 100%);
}

.mini-card.platform-migros {
    border-left-color: var(--color-migros) !important;
    background: linear-gradient(90deg, rgba(255, 211, 0, 0.05) 0%, var(--bg-card) 100%);
}

.mini-card.platform-yemeksepeti {
    border-left-color: var(--color-yemeksepeti) !important;
    background: linear-gradient(90deg, rgba(198, 42, 81, 0.05) 0%, var(--bg-card) 100%);
}

/* OPK-094 — opaket kendi pazar yerimiz. */
.mini-card.platform-opaket {
    border-left-color: var(--color-opaket) !important;
    background: linear-gradient(90deg, rgba(194, 74, 34, 0.05) 0%, var(--bg-card) 100%);
}

.mini-card.secili {
    border: 1px solid var(--color-brand);
    border-left-width: 0.5rem;
    background: linear-gradient(90deg, rgba(102, 0, 0, 0.1) 0%, var(--bg-card) 100%);
}

.mc-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
}

.mc-customer {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-price {
    font-size: 1rem;
    color: var(--color-success);
    margin-top: 0.3rem;
    font-weight: 700;
}

/* Sipariş aciliyet seviyeleri — platform rengi korunur, aciliyet arka plan ile gösterilir */
.mini-card.durum-normal {}

.mini-card.durum-dikkat {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.12) 0%, var(--bg-card) 40%) !important;
}

.mini-card.durum-acil {
    background: linear-gradient(90deg, rgba(255, 50, 50, 0.15) 0%, var(--bg-card) 40%) !important;
}

.mini-card.status-Invoiced {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.1) 0%, var(--bg-card) 40%) !important;
}

.mc-status-text {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.4);
    color: #ddd;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.mc-kurye-kodu {
    color: var(--color-trendyol);
    font-weight: 700;
    font-size: 1rem;
    margin-right: 0.3rem;
}

/* KASA */
.gunluk-ozet-wrapper {
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
}

.gunluk-ozet-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-header);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gunluk-ozet-btn:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

.gunluk-ozet-icerik {
    display: none;
    padding: 1.25rem;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.ozet-net {
    color: var(--color-success);
    font-size: 1.4rem;
    font-weight: 700;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

.btn-ayarlar {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.8rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.3s;
}

.btn-ayarlar:hover {
    background: var(--hover-color);
    color: var(--text-main);
}

/* SAÄž PANEL */
.main-content {
    flex: 1;
    background: var(--bg-body);
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.detay-wrapper {
    width: 100%;
    max-width: 56rem;
    height: 100%;
}

.siparis-karti {
    background: var(--bg-card);
    border-left: 0.75rem solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    animation: slideDown 0.4s ease;
}

.kart-border-normal {}

.kart-border-dikkat {}

.kart-border-acil {
    box-shadow: 0 0 2rem rgba(213, 0, 0, 0.3);
}

.border-hazir {}

/* Sipariş kartı platform renkleri */
.siparis-karti.platform-trendyol {
    border-left-color: var(--color-trendyol) !important;
}

.siparis-karti.platform-getir {
    border-left-color: var(--color-getir) !important;
}

.siparis-karti.platform-migros {
    border-left-color: var(--color-migros) !important;
}

.siparis-karti.platform-yemeksepeti {
    border-left-color: var(--color-yemeksepeti) !important;
}

.siparis-karti.platform-opaket {
    border-left-color: var(--color-opaket) !important;
}

/* HEADER & FOOTER */
.header-kismi {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.header-kismi>div:first-child {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.icerik-kismi {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    color: var(--text-main);
}

.footer-kismi {
    flex-shrink: 0;
    background: var(--bg-header);
    padding: 1rem 1.5rem;
    /* Footer padding */
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* FÄ°YAT DETAYLARI - BOÅžLUK AZALTILDI */
.fiyat-kutusu {
    text-align: right;
    margin-bottom: 0.5rem;
}

/* BURASI AZALTILDI (1rem -> 0.5rem) */
.eski-fiyat {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.indirim-tutar {
    color: var(--color-danger);
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(211, 47, 47, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
}

.odenecek-tutar {
    font-size: 2.5rem;
    color: var(--color-success);
    font-weight: 800;
    display: block;
    letter-spacing: -1px;
    margin-top: 0.1rem;
}

.platform-adi {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: var(--text-main);
    white-space: nowrap;
}

.siparis-no {
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 700;
    margin-left: 0rem;
    white-space: nowrap;
}

.kurye-kodu-badge {
    background: var(--bg-input);
    color: var(--text-main);
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0rem;
    border: 2px solid var(--border-color);
    white-space: nowrap;
}

.kurye-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    margin-left: 0rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.kurye-badge.yakinda {
    background: #6200ea;
    border: 1px solid #b388ff;
}

.kurye-badge.geldi {
    background: #d500f9;
    border: 1px solid #ea80fc;
    animation: blink 0.8s infinite alternate;
}

.kurye-badge.hazirlaniyor {
    background: #ff9800;
    border: 1px solid #ffcc80;
    color: #000;
}

.kurye-badge.hazir {
    background: #00bfa5;
    border: 1px solid #64ffda;
    color: #000;
}

.kurye-badge.yolda {
    background: #2979ff;
    border: 1px solid #82b1ff;
}

.kurye-badge.teslim {
    background: #00c853;
    border: 1px solid #69f0ae;
}

.kurye-badge.iptal {
    background: #d50000;
    border: 1px solid #ff5252;
}

.kurye-badge.iade {
    background: #37474f;
    border: 1px solid #90a4ae;
}

@media (max-width: 1400px) {
    .kurye-text {
        display: none;
    }

    .kurye-badge {
        padding: 0.4rem;
    }
}

.yemek-satiri {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    border: 1px solid transparent;
    padding: 0.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border-bottom: 1px dashed var(--border-color);
}

/* Et pişti (aşçı tüm aşçı-malzemelerini pişirdi) — paketleme ekranı için pastel yeşil */
.yemek-satiri.et-pisti {
    background: rgba(76, 175, 80, 0.16);
    border-left: 3px solid #66bb6a;
}
.icerik-kismi.focus-active .yemek-satiri.et-pisti.focused {
    background: rgba(76, 175, 80, 0.22);
}

/* Ürün reçete accordion popup */
.urun-recete {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(127,127,127,0.10);
    border-left: 3px solid var(--text-muted);
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1.6;
}
.urun-recete-head {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.2;
}
.urun-recete-head .muted { opacity: 0.65; }
.urun-recete .recipe-name { color: var(--text-main); }
.urun-recete .recipe-qty { color: var(--text-muted); font-size: 0.88em; }

.icerik-kismi:not(.focus-active) .yemek-satiri:hover {
    background: var(--bg-input);
}

.icerik-kismi.focus-active .yemek-satiri {
    opacity: 0.5;
    transform: scale(0.99);
    filter: blur(1px);
}

.icerik-kismi.focus-active .yemek-satiri.focused {
    opacity: 1;
    transform: scale(1.02);
    filter: blur(0);
    z-index: 10;
    background: var(--bg-card);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-warning);
    margin: 0.8rem 0;
    font-size: 1.4em;
}

.opsiyon-listesi {
    font-size: 1rem;
    margin-left: 0;
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.opsiyon-standart {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
}

.opsiyon-ekstra {
    background: var(--color-warning);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    border: 1px solid #e6c200;
}

.opsiyon-pasif {
    color: var(--color-danger);
    text-decoration: line-through;
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
    opacity: 0.6;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 0.3rem;
}

.adet-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.6rem;
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 2.2rem;
    text-align: center;
}

.musteri-notu {
    background: var(--bg-note);
    color: var(--text-note);
    padding: 0.8rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    border-radius: 0.6rem;
    display: block;
    font-weight: bold;
    text-align: center;
    border: 1px solid var(--border-note);
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.2);
}

.odenecek-tutar {
    font-size: 2.5rem;
    color: var(--color-success);
    font-weight: 800;
    display: block;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.odeme-badge {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    max-width: 20rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.odeme-kapida {
    background: var(--color-migros);
    color: #000;
    border-color: var(--color-migros);
}

.odeme-online {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

.btn-grup {
    display: flex;
    width: 100%;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: stretch;
}

.btn-iptal {
    flex: 0 0 9rem;
    margin-right: auto;
    background: transparent;
    color: var(--color-danger);
    border: 1px solid var(--color-danger) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-iptal:hover {
    background: var(--color-danger);
    color: #fff;
}

.btn-hazir {
    flex: 1;
    margin-left: 2rem;
    background: var(--color-success);
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    padding: 1rem;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-hazir::before {
    content: '\2713';
    font-size: 1.8rem;
    font-weight: 900;
}

.btn-hazir:hover {
    filter: brightness(1.1);
}

.btn-hazir:active {
    transform: scale(0.98);
}

/* TESLÄ°M EDÄ°LDÄ° TEXT FOOTER */
.footer-text-status {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-success);
    border-radius: 0.4rem;
    display: inline-block;
    opacity: 0.8;
}

.btn-adres-ac {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.8rem;
    cursor: pointer;
    text-align: left;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: 0.3s;
    display: block;
    font-size: 0.85rem;
}

.btn-adres-ac:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    width: 28rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.btn-kaydet {
    background: var(--color-success);
    color: #fff;
}

.btn-iptal-modal {
    background: var(--color-danger);
    color: #fff;
}

.uyari {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    color: white;
    z-index: 9999;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.5s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

/* CSS'de hoparlör emojisi kodla yazılır (\1F50A) */
.uyari::before {
    content: '\1F50A';
    font-size: 1.2rem;
}

.baglanti-durumu {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--color-success);
    display: inline-block;
    margin-left: 0.6rem;
    box-shadow: 0 0 0.5rem var(--color-success);
}

.baglanti-kopuk {
    background: var(--color-danger);
    box-shadow: 0 0 0.5rem var(--color-danger);
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-1.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flashGreen {
    from {
        background-color: var(--bg-card);
        box-shadow: 0 0 0 transparent;
    }

    to {
        background-color: rgba(0, 230, 118, 0.2);
        box-shadow: 0 0 1rem rgba(0, 230, 118, 0.4);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        display: block;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 0.6rem;
        display: block;
        height: auto;
        overflow: visible;
    }

    .detay-wrapper {
        max-width: 100%;
        height: auto;
    }

    .siparis-karti {
        max-height: none;
        overflow: visible;
    }
}

/* PLATFORM IŞIKLARI */
.platform-lights {
    display: flex;
    gap: 5px;
    margin-left: 10px;
    position: relative;
}

/* API STATUS WIDGET (H harfi göstergesi) */
.api-status-widget {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    background: #333;
    color: #777;
    border: 1px solid #444;
}

.api-status-widget.all-ok {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

.api-status-widget.some-fail {
    background: #e67e22;
    color: #fff;
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.5);
}

.api-status-widget.all-fail {
    background: #d50000;
    color: #fff;
    animation: blink 0.5s infinite;
}

.api-status-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.asp-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.asp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.asp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.asp-dot.off {
    background: #555 !important;
}

.asp-dot.on {
    box-shadow: 0 0 6px currentColor;
}

.asp-name {
    font-size: 0.85rem;
    color: #f0f0f0;
    flex: 1;
}

.asp-status {
    font-size: 0.75rem;
    font-weight: 700;
}

.p-light {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #000;
    background: #333;
    /* Varsayılan: Kapalı (Gri) */
    color: #777;
    border: 1px solid #444;
    transition: all 0.3s;
}

/* AKTİF RENKLERİ */
.p-light.aktif-trendyol {
    background: #F27A1A;
    color: white;
    box-shadow: 0 0 8px rgba(242, 122, 26, 0.6);
}

.p-light.aktif-getir {
    background: #5D3EBC;
    color: #FFD300;
    box-shadow: 0 0 8px rgba(93, 62, 188, 0.6);
}

.p-light.aktif-migros {
    background: #FFD300;
    color: white;
    box-shadow: 0 0 8px rgba(255, 126, 0, 0.6);
}

/* BAĞLANTI KOPARSA */
.p-light.hata {
    background: #d50000 !important;
    color: white !important;
    animation: blink 0.5s infinite;
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media screen and (max-width: 768px) {

    /* 1. Ana Düzeni Alt Alta Getir */
    body,
    .container,
    .main-wrapper {
        display: block !important;
        /* Yan yana flex yapısını iptal et */
        height: auto !important;
        overflow-y: auto !important;
        /* Sayfanın aşağı kaymasını aç */
    }

    /* 2. Sol Menüyü (Boş Listeyi) Gizle */
    /* app.js mobildeyken listeyi doldurmaz, direkt detay basar. O yüzden sol sütunu gizliyoruz */
    .sidebar,
    #order-list,
    .left-panel {
        display: none !important;
        width: 0 !important;
    }

    /* 3. Sağ Detay Alanını Tam Ekran Yap */
    .main-content,
    #detay-alani,
    .right-panel {
        width: 100% !important;
        height: auto !important;
        padding: 10px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    /* 4. Kart Görünümü İyileştirmeleri */
    .siparis-karti {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* 5. Font ve Buton Ayarları */
    html {
        font-size: 90%;
        /* Yazıları biraz küçült */
    }

    .btn-grup {
        flex-direction: column;
        /* Butonları alt alta diz */
        gap: 10px;
    }

    .btn-iptal,
    .btn-hazir {
        width: 100% !important;
        /* Butonlar tam genişlik olsun */
        padding: 15px !important;
        /* Parmakla basmak kolay olsun */
    }

    /* 6. Logo Alanı (Header) */
    .sidebar-logo-area {
        position: relative !important;
        width: 100% !important;
        height: 60px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        background: #111;
        z-index: 999;
    }

    /* Işıklar mobilde sağ üstte dursun */
    .platform-lights {
        margin-left: auto;
    }
}

/* --- MOBİL UYUMLULUK (SAFE MODE - JS DOKUNULMADI) --- */
@media screen and (max-width: 768px) {

    /* 1. Ekran Kilidini Aç (Kaydırma Sağla) */
    body,
    html {
        overflow-y: auto !important;
        /* Sayfa aşağı kaysın */
        height: auto !important;
        display: block !important;
    }

    .container {
        display: block !important;
        /* Yan yana değil blok olsun */
        height: auto !important;
        overflow: visible !important;
    }

    /* 2. Sol Menü (Liste) */
    .sidebar {
        width: 100% !important;
        /* Tam genişlik */
        height: 350px !important;
        /* Listeye belirli bir yükseklik ver */
        border-right: none !important;
        border-bottom: 2px solid #333;
        position: relative !important;
        display: flex !important;
        /* Menü görünür kalsın */
    }

    #order-list {
        max-height: 250px !important;
        /* Liste çok uzamasın */
        overflow-y: auto !important;
    }

    /* 3. Sağ Detay Alanı */
    .main-content {
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
        overflow: visible !important;
        /* İçerik taşarsa göster */
        display: block !important;
    }

    /* 4. Butonları Düzenle */
    .btn-grup {
        display: flex !important;
        flex-direction: row !important;
        /* Yan yana olsun */
        flex-wrap: wrap !important;
        /* Sığmazsa alt satıra geçsin */
        gap: 10px !important;
        margin-bottom: 30px;
        /* Alttan boşluk bırak */
    }

    .btn-iptal,
    .btn-hazir,
    .btn-onayla {
        flex: 1 1 auto !important;
        /* Eşit paylaşsınlar, gerekince küçülsünler */
        min-width: 96px !important;
        /* Bu orana kadar küçülür; daha dar olursa alt satıra kayar */
        margin-left: 0 !important;
        margin-right: 0 !important;
        /* Desktop marjlarını (2rem / margin-right:auto) sıfırla */
        padding: 12px !important;
        font-size: 1rem !important;
        /* Mobilde devasa olmasın */
        width: auto !important;
    }

    .btn-grup .iptal-sebebi-select {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        /* ▾ iptal sebebi seçici satıra uysun, taşmasın */
    }

    /* 5. Kartlar ve Metinler */
    .siparis-karti {
        margin-bottom: 20px !important;
    }

    .sidebar-logo-area {
        padding: 10px 15px !important;
    }
}

/* ONAY BUTONU */
.btn-onayla {
    flex: 1;
    margin-left: 2rem;
    background: #3498db;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.3rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.btn-onayla:hover {
    background: var(--hover-color);
    border-color: var(--text-muted);
}

.btn-onayla:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

/* MG-018/GTR-022: Oto-onay "yükleniyor" butonu (anlık onay başarısız → sync retry).
   Tıklanabilir: operatör beklemeden manuel onay yollayabilir. */
.btn-onayla.oto-onay-bekliyor {
    background: #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.oto-onay-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: otoOnaySpin 0.7s linear infinite;
    flex-shrink: 0;
}

.oto-onay-cd {
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

@keyframes otoOnaySpin {
    to { transform: rotate(360deg); }
}

/* MİGROS ÖZEL UYARI ETİKETLERİ (KARE İKON MODU) */
.uyari-kutusu {
    display: flex;
    flex-direction: row;
    /* Yan yana dizilmesi için */
    gap: 10px;
    /* Kutular arası boşluk */
    margin: 5px 0 10px 0;
    flex-wrap: wrap;
    /* Sığmazsa alt satıra geçsin */
}

.uyari-etiket {
    display: flex;
    align-items: center;
    justify-content: center;
    /* İkonu tam ortalar */
    width: 45px;
    /* Kare Genişliği */
    height: 45px;
    /* Kare Yüksekliği */
    border-radius: 8px;
    /* Hafif yuvarlak köşeler */
    font-size: 1.8rem;
    /* Emojiyi büyütür */
    line-height: 1;
    padding: 0;
    /* İç boşluğu sıfırlar */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    /* Gölge efekti */
    transition: transform 0.2s;
}

.uyari-etiket:hover {
    transform: scale(1.1);
    /* Üzerine gelince hafif büyüsün */
}

/* Renkler (Aynı Kalabilir) */
.etiket-temassiz {
    background: #7E57C2;
    color: #fff;
    border: 1px solid #673AB7;
}

.etiket-zil {
    background: #FF5252;
    color: #fff;
    border: 1px solid #D32F2F;
    animation: pulse-red 2s infinite;
}

.etiket-yesil {
    background: #66BB6A;
    color: #fff;
    border: 1px solid #388E3C;
}

/* YS-KUPON-003: Yemeksepeti Pro abonesinde AYRI ROZET YOK — platform adının
   kendisi "YEMEKSEPETI PRO" olur (Ediz'in tercihi). Kayıtlarda platform yine
   `yemeksepeti`; burası tamamen kozmetiktir.
   Uzun ad yalnız yer varken; dar ekranda "Y PRO"ya düşer (taşma olmasın). */
.platform-adi .plat-pro {
    color: #ff5c8a;
    font-weight: 800;
}

.platform-adi .plat-kisa { display: none; }

@media (max-width: 700px) {
    .platform-adi .plat-uzun { display: none; }
    .platform-adi .plat-kisa { display: inline; }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 82, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

/* İPTAL SEBEBİ SEÇİM KUTUSU */
.iptal-sebebi-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    background-color: var(--bg-input, #1e1e24);
    color: var(--text-main, #fff);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.iptal-sebebi-select option {
    background: var(--bg-card, #1e1e24);
    color: var(--text-main, #fff);
}

.iptal-sebebi-select:focus {
    outline: none;
    border-color: var(--color-danger);
}

/* --- MOBİL LOGO ALANI DÜZELTMESİ (SUÇLU: sidebar-logo-area) --- */
@media (max-width: 768px) {

    /* Siyah arka planı kaldır, şeffaf yap */
    .sidebar-logo-area {
        background-color: transparent !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: auto !important;
        /* Genişliği serbest bırak */
    }

    /* NOT: eski "color:#222 (beyaz zemin üstünde okunsun)" kuralı KALDIRILDI —
       mobil header arka planı aslında KOYU (var(--bg-header)), beyaz değil; #222
       metni koyu zeminde görünmez yapıyordu (TAKAGU + .asp-name + inline durum
       rengi dahil, !important ile eziyordu). Her öğe kendi doğru rengini kullansın:
       logo=var(--text-main), .asp-name=#f0f0f0, .asp-status=inline yeşil/kırmızı. */
    .sidebar-logo-area span,
    .sidebar-logo-area strong,
    .sidebar-logo-area i,
    .sidebar-logo-area a {
        text-shadow: none !important;
    }

    /* Eğer logonun kendi resmi etrafında siyahlık varsa */
    .sidebar-logo-area img {
        background-color: transparent !important;
    }
}

/* KOYU TEMA MOBİL LOGO YAZISI DÜZELTMESİ */
@media (max-width: 768px) {
    [data-theme="dark"] .sidebar-logo-text {
        color: #ffffff !important;
    }
}

/* --- AÇIK TEMA (LIGHT MODE) İÇİN AYARLAR PENCERESİ --- */
[data-theme="light"] .modal-overlay {
    background-color: rgba(255, 255, 255, 0.6);
    /* Arka planı hafif buzlu beyaz yap */
    backdrop-filter: blur(5px);
}

[data-theme="light"] .modal-kutu {
    background-color: #ffffff;
    /* Kutuyu tam beyaz yap */
    color: #333333;
    /* Yazıları koyu gri yap */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Hafif gölge ekle */
    border: 1px solid #e0e0e0;
}

[data-theme="light"] .modal-kutu h3 {
    color: #2c3e50;
    border-bottom: 1px solid #f0f0f0;
}

[data-theme="light"] .input-group label {
    color: #555555;
    font-weight: 600;
}

[data-theme="light"] .input-group input {
    background-color: #f8f9fa;
    /* Input içini çok açık gri yap */
    border: 1px solid #ddd;
    color: #333;
}

[data-theme="light"] .input-group input:focus {
    background-color: #fff;
    border-color: #999;
    box-shadow: none;
    outline: none;
}

/* Butonlar (Açık Tema) */
[data-theme="light"] .modal-buttons button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

[data-theme="light"] .modal-buttons button:hover {
    background-color: #e0e0e0;
}

/* Kaydet Butonu (Yeşil Kalsın ama Parlasın) */
[data-theme="light"] .modal-buttons .btn-kaydet {
    background-color: #4CAF50 !important;
    color: #fff !important;
    border: none !important;
}

[data-theme="light"] .modal-buttons .btn-kaydet:hover {
    background-color: #43A047 !important;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

/* --- AYARLAR MODALI FİNAL TASARIM (JİLET GİBİ) --- */

/* 1. KUTU GENEL GÖRÜNÜMÜ */
.modal-kutu {
    width: 500px;
    /* İdeal genişlik */
    max-width: 90%;
    /* Mobilde taşmasın */
    padding: 30px 25px;
    /* İç boşluk (Ferahlık) */
    border-radius: 12px;
    /* Modern yuvarlak köşeler */
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Satırlar arası minik boşluk */
    /* Renkler (Varsayılan Koyu Tema) */
    background-color: #252525;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Derin gölge */
}

/* 2. BAŞLIK */
.modal-kutu h3 {
    text-align: center;
    margin-bottom: 25px;
    /* Başlık altı boşluk */
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. GİRİŞ SATIRLARI (HİZALAMA BURADA) */
.input-group {
    display: flex;
    align-items: center;
    /* Dikey ortala */
    justify-content: center;
    /* Yatay ortala (Formu merkeze alır) */
    margin-bottom: 15px;
    width: 100%;
}

.input-group label {
    flex: 1;
    /* Kalan alanı kapla */
    text-align: right;
    /* Yazıyı SAĞA yasla (İstediğin gibi) */
    margin-right: 15px;
    /* Kutuyla arasına mesafe koy */
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.input-group input {
    flex: 0 0 80px;
    /* Kutunun sabit genişliği */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: var(--color-brand);
    box-shadow: none;
    outline: none;
}

/* 4. BUTON GRUBU */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    /* İki buton arası boşluk */
    margin-top: 25px;
    /* Yukarıdan ayır */
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-buttons button {
    flex: 1;
    /* Eşit genişlikte olsunlar */
    padding: 12px 0;
    /* Buton yüksekliği */
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, background-color 0.2s;
}

.modal-buttons button:active {
    transform: scale(0.96);
    /* Tıklama efekti */
}

/* İptal Butonu (Koyu) */
.modal-buttons button:first-child {
    background-color: #444;
    color: #fff;
}

.modal-buttons button:first-child:hover {
    background-color: #555;
}

/* Kaydet Butonu (Yeşil) */
.modal-buttons .btn-kaydet {
    background-color: #27ae60 !important;
    color: #fff !important;
}

.modal-buttons .btn-kaydet:hover {
    background-color: #2ecc71 !important;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* --- AÇIK TEMA (LIGHT MODE) İÇİN ÖZEL DÜZELTMELER --- */
[data-theme="light"] .modal-kutu {
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-kutu h3,
[data-theme="light"] .modal-buttons {
    border-color: #eee;
}

[data-theme="light"] .input-group input {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

[data-theme="light"] .input-group input:focus {
    background-color: #fff;
    border-color: #999;
    box-shadow: none;
    outline: none;
}

[data-theme="light"] .modal-buttons button:first-child {
    background-color: #e0e0e0;
    color: #333;
}

[data-theme="light"] .modal-buttons button:first-child:hover {
    background-color: #d0d0d0;
}

/* --- GETİR & DETAY EKLENTİLERİ --- */

/* 1. Uyarı Rozetleri (Zil, Kapı, Çatal) */


.etiket-zil {
    background-color: #d32f2f;
}

/* Kırmızı */
.etiket-temassiz {
    background-color: #f57c00;
}

/* Turuncu */
.etiket-yesil {
    background-color: #2e7d32;
}

/* Yeşil */

/* 2. Müşteri Notu Kutusu (Getir, vs) */
.musteri-notu {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--bg-note);
    border-left: 5px solid var(--border-note);
    color: var(--text-note);
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
}

/* 3. Fiş Yazdırma Penceresi (Print) */
@media print {
    body * {
        visibility: hidden;
    }

    #yazdirilacak-bolum,
    #yazdirilacak-bolum * {
        visibility: visible;
    }

    #yazdirilacak-bolum {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        /* 80mm fiş yazıcı için */
        font-family: 'Courier New', Courier, monospace;
        color: #000;
    }

    .fis-header {
        text-align: center;
        margin-bottom: 10px;
        border-bottom: 2px dashed #000;
        padding-bottom: 10px;
    }

    .fis-logo {
        font-size: 1.2rem;
        font-weight: bold;
        display: block;
    }

    .fis-kod-kutu {
        font-size: 1.5rem;
        font-weight: 900;
        margin: 5px 0;
        border: 2px solid #000;
        display: inline-block;
        padding: 2px 10px;
    }

    .fis-bilgi {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .fis-musteri {
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 0.9rem;
        border-bottom: 1px solid #000;
        padding-bottom: 5px;
    }

    .fis-not {
        background: #eee;
        padding: 5px;
        font-weight: bold;
        margin-bottom: 10px;
        border: 1px solid #000;
    }

    .fis-tablo {
        width: 100%;
        font-size: 0.85rem;
        border-collapse: collapse;
    }

    .fis-tablo td {
        padding: 4px 0;
        border-bottom: 1px dashed #ccc;
    }

    .fis-dip {
        margin-top: 10px;
        text-align: right;
        font-size: 1.2rem;
        font-weight: bold;
        border-top: 2px solid #000;
        padding-top: 5px;
    }
}

/* Yönetim Paneli Butonu */
.btn-yonetim {
    background: var(--color-brand);
    color: white;
    border: none;
    padding: 0 1.25rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    white-space: nowrap;
}


.btn-yonetim:hover {
    background-color: #C2185B;
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.4);
}

/* Menü Kutusu Genel Yapısı */
.settings-menu {
    position: absolute;
    top: 50px;
    right: 10px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 260px;
    padding: 15px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settings-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

/* Font Butonları */
.font-controls {
    display: flex;
    gap: 5px;
}

.btn-font-mini {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Tema Butonu */
.btn-theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
}

.settings-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Ortak Buton Stili (Linkler buton gibi görünecek) */
.btn-action {
    flex: 1;
    /* Butonların genişliği eşit olsun */
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    transition: opacity 0.2s;
}

.btn-action:hover {
    opacity: 0.9;
}

/* Yönetim Butonu Rengi (Görseldeki kahverengi tonu) */
.btn-yonetim {
    background-color: #5a1a1a;
}

/* Çıkış Butonu Rengi (Koyu Kırmızı) */
.btn-cikis {
    background-color: #7f1d1d;
}

/* --- KURYE RADAR EFEKTİ --- */
@keyframes kuryePulse {
    0% {
        background-color: rgba(52, 152, 219, 0.08);
        border-left: 5px solid #3498db;
    }

    50% {
        background-color: rgba(52, 152, 219, 0.25);
        border-left: 5px solid #2980b9;
    }

    100% {
        background-color: rgba(52, 152, 219, 0.08);
        border-left: 5px solid #3498db;
    }
}

.kurye-geliyor {
    animation: kuryePulse 1.5s infinite ease-in-out !important;
    position: relative;
    overflow: hidden;
}

/* Kartın içine şeffaf bir motor ikonu koyalım */
.kurye-geliyor::after {
    content: '🛵';
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 40px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.kurye-etiket {
    background: #3498db;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: bold;
    animation: blink 1s infinite;
}

/* 4. FOOTER (Yönetim & Çıkış) */
.settings-footer {
    display: flex;
    gap: 12px;
    /* Butonlar arası boşluk */
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
    align-items: center;
    /* Dikeyde tam ortala */
}

/* Ortak Aksiyon Butonları */
.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff !important;

    /* 🛠️ ÇÖZÜM BURADA: Eski kodlardaki kaydırmayı iptal et */
    margin: 0 !important;
    border: none !important;
    height: 40px;
    /* Yükseklikleri kesin olarak eşitle */
}

/* Yönetim Butonu (Mor/Mavi) */
.btn-yonetim {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
}

.btn-yonetim:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(118, 75, 162, 0.5);
}

/* Çıkış Butonu (Kırmızı) */
.btn-cikis {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.btn-cikis:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.5);
}

/* --- SİPARİŞ OPSİYON STİLLERİ --- BURASI BURASI*/

/* Pozitif Ekstralar (Malzeme Ekle vb.) - Trendyol Tarzı */
.opt-pozitif {
    background-color: #fff8e1;
    /* Çok açık tatlı sarı */
    color: #f38a00;
    /* Trendyol turuncusu/koyu sarı */
    border: 1px solid #ffecb3;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 2px 4px 2px 0;
    display: inline-block;
}

/* Negatif Opsiyonlar (İstemiyorum, Çıkar vb.) */
.opt-negatif {
    color: #b0b0b0;
    /* Silik Gri */
    font-size: 0.85rem;
    font-style: italic;
    text-decoration: line-through;
    /* İsteğe bağlı: Üstünü çizer */
    margin: 2px 4px 2px 0;
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
}

/* --- YEMEKSEPETİ STİLLERİ --- */
.card.yemeksepeti {
    border-left: 5px solid #C62A51;
    /* Sol Şerit Rengi */
}

.card.yemeksepeti .card-title {
    color: #C62A51;
    /* Başlık Rengi */
    font-weight: bold;
}

/* Switch Açıldığında Kendi Rengi Olsun */
.card.yemeksepeti .switch input:checked+.slider {
    background-color: #C62A51;
}

/* Yemeksepeti Durum Işığı */
.p-light.aktif-yemeksepeti {
    background-color: #C62A51 !important;
    /* Pembe */
    box-shadow: 0 0 10px #C62A51;
    border-color: #C62A51;
    color: #fff;
    opacity: 1;
}
/* --- opaket ödeme durumu şeridi (OPK-021) --------------------------------
   🔴 İki yönlü para riski: ödenmemiş sipariş tahsil edilmezse restoran,
      ödenmiş siparişten tekrar para istenirse müşteri zarar görür. İkisi de
      okunaksız bir rozet değil, KAÇIRILMASI ZOR bir şerit olmalı.
   ⚠️ Kurye/operatör bunu yoğun serviste, uzaktan, hızlıca okuyor. */
.opaket-odeme {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  font-weight: 800; font-size: 15px; letter-spacing: .2px; text-align: center;
}
.opaket-odeme.alinmadi {
  background: #B3261E; color: #fff;
  box-shadow: 0 0 0 2px rgba(179,38,30,.25);
}
.opaket-odeme.odendi { background: #E7F5ED; color: #1B6E3C; }
