/* ==========================================================================
   VORTEX POS — ULTRA-PREMIUM VISION/GLASSMORPHISM CORE DESIGN SYSTEM
   Apple Vision / iOS 18 Grade Floating Glass & Ambient Mesh Architecture
   Supports: Dark Deep Space Glass & Crystal Light Glass via [data-theme]
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

/* --- 1. KOYU MOD (DEEP SPACE GLASS — ULTRA LÜKS AKRİLİK CAM) --- */
:root,
[data-theme='dark'] {
    --bg: #080c15;
    --bg-mesh-1: rgba(79, 70, 229, 0.22);
    --bg-mesh-2: rgba(217, 70, 239, 0.18);
    --bg-mesh-3: rgba(14, 165, 233, 0.18);
    --bg-mesh-4: rgba(168, 85, 247, 0.15);
    --bg-mesh-center: rgba(15, 23, 42, 0.95);

    /* Floating Acrylic Glass Layers */
    --side: rgba(13, 19, 34, 0.75);
    --side-ink: #f8fafc;
    --card: rgba(18, 26, 44, 0.65);
    --card-hover: rgba(28, 40, 68, 0.82);
    --card-subtle: rgba(255, 255, 255, 0.04);
    
    --ink: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.09);
    --line-active: rgba(129, 140, 248, 0.45);

    /* Radiant Accents & Gradients */
    --acc: #6366f1;
    --acc-hover: #4f46e5;
    --acc-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(168, 85, 247, 0.95));
    --acc-ink: #ffffff;
    --acc-glow: rgba(99, 102, 241, 0.45);

    /* Neon State Accents */
    --ok: #10b981;
    --ok-bg: rgba(16, 185, 129, 0.16);
    --ok-border: rgba(52, 211, 153, 0.4);
    --ok-glow: rgba(16, 185, 129, 0.4);

    --err: #f43f5e;
    --err-bg: rgba(244, 63, 94, 0.16);
    --err-border: rgba(251, 113, 133, 0.4);
    --err-glow: rgba(244, 63, 94, 0.4);

    --warn: #f59e0b;
    --warn-bg: rgba(245, 158, 11, 0.16);
    --warn-border: rgba(251, 191, 36, 0.4);
    --warn-glow: rgba(245, 158, 11, 0.4);

    --sky: #38bdf8;
    --sky-glow: rgba(56, 189, 248, 0.4);

    /* Specular Glass Shadows & Inner Highlights */
    --glass-blur: blur(24px);
    --glass-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.38), inset 0 1px 0 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    --glass-shadow-hover: 0 18px 48px 0 rgba(0, 0, 0, 0.55), inset 0 1px 0 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    
    --input-bg: rgba(10, 15, 28, 0.70);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus-border: rgba(129, 140, 248, 0.6);
}

/* --- 2. AYDINLIK MOD (CRYSTAL LIGHT GLASS — PARLAK KRİSTAL CAM) --- */
[data-theme='light'] {
    --bg: #f4f6fc;
    --bg-mesh-1: rgba(199, 210, 254, 0.55);
    --bg-mesh-2: rgba(251, 207, 232, 0.45);
    --bg-mesh-3: rgba(186, 230, 253, 0.45);
    --bg-mesh-4: rgba(233, 213, 255, 0.40);
    --bg-mesh-center: rgba(255, 255, 255, 0.85);

    --side: rgba(255, 255, 255, 0.82);
    --side-ink: #0f172a;
    --card: rgba(255, 255, 255, 0.75);
    --card-hover: rgba(255, 255, 255, 0.92);
    --card-subtle: rgba(241, 245, 249, 0.8);
    
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(0, 0, 0, 0.08);
    --line-active: rgba(79, 70, 229, 0.45);

    --acc: #4f46e5;
    --acc-hover: #4338ca;
    --acc-gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(147, 51, 234, 0.95));
    --acc-ink: #ffffff;
    --acc-glow: rgba(79, 70, 229, 0.35);

    --ok: #059669;
    --ok-bg: rgba(5, 150, 105, 0.12);
    --ok-border: rgba(5, 150, 105, 0.35);
    --ok-glow: rgba(5, 150, 105, 0.25);

    --err: #e11d48;
    --err-bg: rgba(225, 29, 72, 0.12);
    --err-border: rgba(225, 29, 72, 0.35);
    --err-glow: rgba(225, 29, 72, 0.25);

    --warn: #d97706;
    --warn-bg: rgba(217, 119, 6, 0.12);
    --warn-border: rgba(217, 119, 6, 0.35);
    --warn-glow: rgba(217, 119, 6, 0.25);

    --sky: #0284c7;
    --sky-glow: rgba(2, 132, 199, 0.25);

    --glass-blur: blur(20px);
    --glass-shadow: 0 10px 30px rgba(79, 70, 229, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --glass-shadow-hover: 0 16px 36px rgba(79, 70, 229, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);

    --input-bg: rgba(255, 255, 255, 0.85);
    --input-border: rgba(0, 0, 0, 0.14);
    --input-focus-border: #4f46e5;
}

/* --- 3. AMBIENT GLOW MESH BACKGROUND --- */
body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, var(--bg-mesh-1) 0px, transparent 48%),
        radial-gradient(at 100% 0%, var(--bg-mesh-2) 0px, transparent 45%),
        radial-gradient(at 100% 100%, var(--bg-mesh-3) 0px, transparent 45%),
        radial-gradient(at 0% 100%, var(--bg-mesh-4) 0px, transparent 40%),
        radial-gradient(at 50% 50%, var(--bg-mesh-center) 0px, transparent 75%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--ink) !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.015em;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Tüm Başlıklar & Metinler */
h1, h2, h3, h4, h5, h6, strong, b {
    color: var(--ink) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: -0.025em;
}
.muted, small {
    color: var(--muted) !important;
    font-weight: 500;
}

/* --- 4. FINTECH & LUXURY MONOSPACE NUMBERS --- */
.num,
.stat .num,
.ttotal,
.wtable .ttotal,
.prod-price,
.receipt-total,
.item-price,
.badge-price,
[data-money],
#liveClock {
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

/* Mikro Etiketler & Tablo Başlıkları */
.lbl,
.stat .lbl,
.tzone,
.wtable .tzone,
table.list th {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    color: var(--muted) !important;
}

/* --- 5. TRUE FLOATING GLASS PANELS & CARDS --- */
.card,
aside.side,
.stat,
.wtable,
.drawer,
table.list,
.modal-box,
.sub-nav-tabs,
.table-box,
.kcard,
.kbar,
.glass-panel,
.glass-card {
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --- 5.1 RESPONSIVE FULL WIDTH MAIN LAYOUT (Tüm Ekrana Yayılma) --- */
.main {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 36px !important;
    box-sizing: border-box !important;
}
.grid4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
}
.grid2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}
.wgrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

/* Kartlar */
.card {
    background: var(--card) !important;
    border-radius: 22px !important;
    padding: 24px !important;
}
.card:hover {
    box-shadow: var(--glass-shadow-hover) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Stat Metrik Kartları */
.stat {
    background: var(--card) !important;
    border-radius: 20px !important;
    padding: 20px 22px !important;
}
.stat:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--glass-shadow-hover) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}
.stat .num {
    font-size: 28px !important;
    margin-top: 6px !important;
}

/* Sol Kenar Menüsü (Sidebar) */
aside.side {
    background: var(--side) !important;
    border-right: 1px solid var(--line) !important;
}
.side-brand {
    border-bottom: 1px solid var(--line) !important;
    color: var(--side-ink) !important;
    padding: 18px 20px !important;
}
.side-brand .logo {
    background: var(--acc-gradient) !important;
    box-shadow: 0 4px 18px var(--acc-glow) !important;
    border-radius: 12px !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.nav-group-title {
    color: var(--muted) !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%) !important;
    border-left: 3px solid var(--acc) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
}
.side nav a {
    border-radius: 12px !important;
    margin: 3px 12px !important;
    padding: 9px 14px !important;
    font-weight: 600 !important;
    color: var(--side-ink) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.side nav a:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
    transform: translateX(2px) !important;
}
.side nav a.on {
    background: var(--acc-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px var(--acc-glow) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* --- 6. GRADIENT GLOW BUTONLAR --- */
.btn, button.btn {
    border-radius: 14px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: var(--acc-gradient) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 18px var(--acc-glow) !important;
    backdrop-filter: blur(12px) !important;
    padding: 9px 18px !important;
}
.btn:hover, button.btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 28px var(--acc-glow) !important;
    filter: brightness(1.08) !important;
}
.btn:active, button.btn:active {
    transform: scale(0.98) !important;
}
.btn.sm {
    padding: 6px 14px !important;
    font-size: 13px !important;
    border-radius: 11px !important;
}
.btn.ghost {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
}
.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: var(--line-active) !important;
}
.btn.danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.9), rgba(225, 29, 72, 0.9)) !important;
    box-shadow: 0 4px 18px var(--err-glow) !important;
}

/* --- 7. FORM ELEMANLARI (Cam Giriş Kutuları) --- */
input, select, textarea {
    background: var(--input-bg) !important;
    color: var(--ink) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 13px !important;
    backdrop-filter: blur(12px) !important;
    font-size: 14.5px !important;
    padding: 10px 14px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--input-focus-border) !important;
    box-shadow: 0 0 0 4px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    outline: none !important;
    background: rgba(15, 23, 42, 0.85) !important;
}

/* --- 8. TABLOLAR (Glass Data Grid) --- */
table.list {
    background: var(--card) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}
table.list th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--muted) !important;
    font-weight: 700 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 12px 16px !important;
}
table.list td {
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 12px 16px !important;
}
table.list tr:hover td {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* --- 9. MASA KARTLARI (Interactive Table Grid) --- */
.wtable {
    position: relative !important;
    border-radius: 20px !important;
    background: var(--card) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    padding: 18px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 120px !important;
}
.wtable .tname {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--ink) !important;
    letter-spacing: -0.02em;
}
.wtable .tzone {
    color: var(--muted) !important;
    font-weight: 600 !important;
}
.wtable .ttotal {
    color: #38bdf8 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}
.wtable:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: var(--glass-shadow-hover) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
.wtable.occupied {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(168, 85, 247, 0.10)) !important;
    border-color: rgba(129, 140, 248, 0.45) !important;
    box-shadow: 0 0 28px -4px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}
.wtable.hasready {
    animation: pulse-emerald 2s infinite !important;
    border-color: rgba(52, 211, 153, 0.7) !important;
}
.wtable.haspending {
    animation: pulse-amber 1.6s infinite !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
}
.wtable .wbadge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    z-index: 5 !important;
}
.wtable .wready {
    position: absolute !important;
    top: -6px !important;
    left: -6px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    z-index: 5 !important;
}
.wtable .wbell {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    z-index: 10 !important;
    animation: ringBellWiggle 1.5s infinite ease-in-out !important;
}
.wbell-icon {
    font-size: 17px;
    line-height: 1;
}
.wbell-ping {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.7);
    animation: bellWavePulse 1.8s infinite ease-out;
    pointer-events: none;
}

/* --- VORTEX CANLI ÇAĞRI & BİLDİRİM KARTLARI (ÇAN ANİMASYONU) --- */
.vortex-call-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.vortex-call-card.call-bill {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}
.vortex-call-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.vortex-bell-badge {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border: 1px solid rgba(245, 158, 11, 0.5);
    flex-shrink: 0;
}
.call-bill .vortex-bell-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.35));
    border-color: rgba(99, 102, 241, 0.5);
}
.vortex-bell-icon {
    font-size: 22px;
    display: inline-block;
    animation: ringBellWiggle 1.4s infinite ease-in-out;
    transform-origin: 50% 10%;
}
.vortex-bell-halo {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.6);
    animation: bellWavePulse 2s infinite ease-out;
    pointer-events: none;
}
.call-bill .vortex-bell-halo {
    border-color: rgba(99, 102, 241, 0.6);
}
@keyframes ringBellWiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(18deg) scale(1.1); }
    30% { transform: rotate(-18deg) scale(1.1); }
    45% { transform: rotate(12deg); }
    60% { transform: rotate(-12deg); }
    75% { transform: rotate(4deg); }
    85% { transform: rotate(-4deg); }
}
@keyframes bellWavePulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.35); opacity: 0.3; }
    100% { transform: scale(1.6); opacity: 0; }
}
.vortex-call-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #f8fafc);
}
.vortex-zone-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.vortex-call-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pill-waiter {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.pill-bill {
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
}
.vortex-call-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 10px;
    margin-top: 2px;
}
.vortex-call-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* --- 10. PULSE GLOW ANİMASYONLARI (Demodan Birebir) --- */
@keyframes pulse-emerald {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}
.pulse-ready-glow,
.wtable.ready {
    animation: pulse-emerald 2s infinite !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
}

@keyframes pulse-amber {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.65); }
    50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
.pulse-call-glow,
.wtable.hascall {
    animation: pulse-amber 1.8s infinite !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
}

/* --- 11. SUB-NAV TABS & SEGMENTED CONTROLS --- */
.sub-nav-tabs {
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 20px !important;
    padding: 8px !important;
    gap: 8px !important;
    border: 1px solid var(--line) !important;
}
.sub-nav-tabs a,
.sub-nav-tabs .sub-nav-tab {
    background: var(--card) !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    color: var(--ink) !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.sub-nav-tabs a:hover,
.sub-nav-tabs .sub-nav-tab:hover {
    background: var(--card-hover) !important;
    border-color: var(--acc) !important;
    transform: translateY(-1px) !important;
}
.sub-nav-tabs a.active,
.sub-nav-tabs .sub-nav-tab.active {
    background: var(--acc-gradient) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 20px var(--acc-glow) !important;
}

/* Çekmece (Drawer) */
.drawer {
    background: rgba(13, 19, 34, 0.88) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    color: var(--ink) !important;
    border-left: 1px solid var(--line) !important;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6) !important;
}

/* --- 11.1 KITCHEN KDS (Mutfak Ekranı Cam Tasarımı) --- */
.kbar {
    background: rgba(13, 19, 34, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}
.kcard {
    background: var(--card) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    box-shadow: var(--glass-shadow) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.kcard:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--glass-shadow-hover) !important;
}
.kfilter button {
    border-radius: 999px !important;
    font-weight: 700 !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--line) !important;
    background: var(--card-subtle) !important;
    color: var(--muted) !important;
    transition: all 0.2s ease !important;
}
.kfilter button.on {
    background: var(--acc-gradient) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 18px var(--acc-glow) !important;
}
.kserved-item {
    background: var(--card-subtle) !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(12px) !important;
}

/* Flash Mesajları */
.flash.ok {
    background: var(--ok-bg) !important;
    color: #34d399 !important;
    border: 1px solid var(--ok-border) !important;
    backdrop-filter: blur(14px) !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
}
.flash.err {
    background: var(--err-bg) !important;
    color: #fb7185 !important;
    border: 1px solid var(--err-border) !important;
    backdrop-filter: blur(14px) !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
}

/* --- 12. HARDCODED INLINE COLOR OVERRIDES (NEON DÖNÜŞÜMÜ) --- */
.text-emerald { color: #34d399 !important; text-shadow: 0 0 16px rgba(52, 211, 153, 0.35) !important; }
.text-sky { color: #38bdf8 !important; text-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important; }
.text-indigo { color: #a5b4fc !important; text-shadow: 0 0 16px rgba(165, 180, 252, 0.35) !important; }
.text-amber { color: #fbbf24 !important; text-shadow: 0 0 16px rgba(251, 191, 36, 0.35) !important; }
.text-rose { color: #fb7185 !important; text-shadow: 0 0 16px rgba(251, 113, 133, 0.35) !important; }

/* Koyu modda boğuk koyu yeşil ciro rakamları parlak zümrüt neona çekilir */
[data-theme='dark'] [style*='color:#166534'],
[data-theme='dark'] [style*='color: #166534'],
[data-theme='dark'] [style*='color:#15803d'],
[data-theme='dark'] [style*='color:#16a34a'],
[data-theme='dark'] [style*='color:#22c55e'] {
    color: #34d399 !important;
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.35) !important;
}

/* Koyu modda boğuk koyu mavi kasa rakamları parlak gök mavisine çekilir */
[data-theme='dark'] [style*='color:#0369a1'],
[data-theme='dark'] [style*='color: #0369a1'],
[data-theme='dark'] [style*='color:#0284c7'],
[data-theme='dark'] [style*='color:#0ea5e9'] {
    color: #38bdf8 !important;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
}

/* Koyu modda boğuk koyu kehribar rakamları parlak altın sarısına çekilir */
[data-theme='dark'] [style*='color:#d97706'],
[data-theme='dark'] [style*='color: #d97706'],
[data-theme='dark'] [style*='color:#b45309'] {
    color: #fbbf24 !important;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.35) !important;
}

/* Koyu modda inline beyaz zeminler şeffaf buzlu akriliğe dönüştürülür */
[data-theme='dark'] [style*='background:#fff'],
[data-theme='dark'] [style*='background: #fff'],
[data-theme='dark'] [style*='background:#ffffff'],
[data-theme='dark'] [style*='background: white'],
[data-theme='dark'] [style*='background:#f8fafc'],
[data-theme='dark'] [style*='background:#f1f5f9'],
[data-theme='dark'] [style*='background:#f7f4ef'],
[data-theme='dark'] [style*='background:#e9e3d8'],
[data-theme='dark'] [style*='background: #f8fafc'],
[data-theme='dark'] [style*='background: #f1f5f9'] {
    background: var(--card-subtle) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

/* Koyu modda inline siyah/koyu metinler parlak beyaza dönüştürülür */
[data-theme='dark'] [style*='color:#0f172a'],
[data-theme='dark'] [style*='color:#1e293b'],
[data-theme='dark'] [style*='color:#334155'],
[data-theme='dark'] [style*='color:#000'],
[data-theme='dark'] [style*='color: #000'],
[data-theme='dark'] [style*='color:#121212'],
[data-theme='dark'] [style*='color:#2b241c'] {
    color: var(--ink) !important;
}

/* Koyu modda gri açıklamalar okunaklı açık gümüş renge çekilir */
[data-theme='dark'] [style*='color:#64748b'],
[data-theme='dark'] [style*='color:#6b7280'],
[data-theme='dark'] [style*='color:#475569'] {
    color: var(--muted) !important;
}

/* Koyu modda açık renk rozetler (badgeler) koyu cam rozetlere adapte edilir */
[data-theme='dark'] .badge,
[data-theme='dark'] [style*='background:#e0e7ff'],
[data-theme='dark'] [style*='background:#dcfce7'],
[data-theme='dark'] [style*='background:#ffedd5'],
[data-theme='dark'] [style*='background:#fef3c7'] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--line) !important;
    color: #ffffff !important;
}

/* Çerçeveler */
[data-theme='dark'] [style*='border:1px solid #cbd5e1'],
[data-theme='dark'] [style*='border:1px solid #e2e8f0'],
[data-theme='dark'] [style*='border: 1px solid #cbd5e1'],
[data-theme='dark'] [style*='border: 1px solid #e2e8f0'] {
    border-color: var(--line) !important;
}

/* Leaflet Harita Popup Kartları (Dark & Light Glass) */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18) !important;
    border-radius: 14px !important;
    color: #0f172a !important;
}
.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
[data-theme='dark'] .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(22px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
}
[data-theme='dark'] .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
}
[data-theme='dark'] .leaflet-popup-close-button {
    color: #94a3b8 !important;
}
[data-theme='dark'] .leaflet-popup-close-button:hover {
    color: #ffffff !important;
}

/* Modal pencereleri */
.modal, .modal-mask, [style*='position:fixed'][style*='z-index'] {
    color: var(--ink);
}
[data-theme='dark'] [style*='background:#fff'][style*='border-radius'],
[data-theme='dark'] [style*='background: #fff'][style*='border-radius'] {
    background: var(--card) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow-hover) !important;
    color: var(--ink) !important;
    border-radius: 24px !important;
}

/* --- 13. SLEEK GLASS SCROLLBARS --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.16); 
    border-radius: 999px; 
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); }

/* --- 14. UNIVERSAL TOAST NOTIFICATIONS (Sağ Alt Bildirim) --- */
.vortex-audio-toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 12px !important;
    pointer-events: none !important;
    max-width: 400px !important;
    width: calc(100vw - 36px) !important;
}

.vortex-audio-toast {
    pointer-events: auto !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.65), 0 0 24px rgba(99, 102, 241, 0.35) !important;
    border-radius: 18px !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    color: #f8fafc !important;
    animation: vortexToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transition: opacity 0.3s, transform 0.3s !important;
    cursor: pointer !important;
}

.vortex-audio-toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.65), 0 0 24px rgba(245, 158, 11, 0.35) !important;
}

.vortex-audio-toast.toast-danger {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.65), 0 0 24px rgba(239, 68, 68, 0.35) !important;
}

.vortex-audio-toast.toast-success {
    border-color: rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.65), 0 0 24px rgba(34, 197, 94, 0.35) !important;
}

.vortex-toast-icon {
    font-size: 1.8rem !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) !important;
}

.vortex-toast-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.vortex-toast-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
    letter-spacing: -0.01em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.vortex-toast-desc {
    font-size: 0.82rem !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    font-weight: 500 !important;
}

.vortex-toast-close {
    opacity: 0.6 !important;
    background: none !important;
    border: none !important;
    color: #cbd5e1 !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    margin-left: 4px !important;
    transition: opacity 0.2s !important;
}

.vortex-toast-close:hover {
    opacity: 1 !important;
    color: #ffffff !important;
}

@keyframes vortexToastSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vortexToastFadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(0.92); }
}
