/**
 * ==============================================================================
 * Proje: Fetih Tatlıları - Sipariş Toplayıcı (Order Aggregator) Paneli
 * Dosya: style.css
 * Tasarım Dili: Ultra Modern Dark Mode, Turkuaz & Neon Detaylar, Glassmorphism
 * ==============================================================================
 */

:root {
    /* Karanlık Arka Plan Renkleri */
    --bg-main: #0a0e17;
    --bg-header: #0f1624;
    --bg-card: #151d30;
    --bg-card-hover: #1b263e;
    --bg-column: #0e1422;
    --bg-input: #121929;

    /* Neon & Turkuaz Vurgu Renkleri */
    --neon-cyan: #00f5d4;
    --neon-cyan-glow: rgba(0, 245, 212, 0.4);
    --neon-blue: #00bbf9;
    --neon-amber: #ffb703;
    --neon-amber-glow: rgba(255, 183, 3, 0.4);
    --neon-purple: #9d4edd;
    --neon-purple-glow: rgba(157, 78, 221, 0.4);
    --neon-green: #2ec4b6;
    --neon-green-glow: rgba(46, 196, 182, 0.4);
    --neon-red: #ff3366;
    --neon-red-glow: rgba(255, 51, 102, 0.4);

    /* Platform Renkleri */
    --color-getir: #7849f7;
    --color-ys: #ff0038;
    --color-migros: #ff6f00;

    /* Tipografi & Metin Renkleri */
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 245, 212, 0.25);

    /* Font Aileleri */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ------------------------------------------------------------------------------
   Temel Sıfırlama ve Font Ayarları
   ------------------------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-mode {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #232f48;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ------------------------------------------------------------------------------
   Üst Header / Navbar
   ------------------------------------------------------------------------------ */
.app-header {
    height: 70px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(0, 187, 249, 0.3));
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 20px;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.sub-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    background: rgba(0, 245, 212, 0.1);
    color: var(--neon-cyan);
    border-radius: 4px;
    border: 1px solid rgba(0, 245, 212, 0.3);
}

/* Navigasyon Sekmeleri */
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.nav-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(0, 187, 249, 0.2));
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 245, 212, 0.3);
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.2);
}

.badge-count {
    background: var(--neon-cyan);
    color: #0b0f17;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

/* Header Sağ Taraf */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 196, 182, 0.1);
    border: 1px solid rgba(46, 196, 182, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--neon-green);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.clock-display {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* ------------------------------------------------------------------------------
   Butonlar ve Kontroller
   ------------------------------------------------------------------------------ */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-neon-cyan {
    background: var(--neon-cyan);
    color: #0b0f17;
    box-shadow: 0 0 12px var(--neon-cyan-glow);
}
.btn-neon-cyan:hover {
    background: #2affdd;
    box-shadow: 0 0 18px var(--neon-cyan-glow);
    transform: translateY(-1px);
}

.btn-neon-outline {
    background: rgba(0, 245, 212, 0.08);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}
.btn-neon-outline:hover {
    background: var(--neon-cyan);
    color: #0b0f17;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.btn-neon-green {
    background: var(--neon-green);
    color: #0b0f17;
    box-shadow: 0 0 12px var(--neon-green-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.icon-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* ------------------------------------------------------------------------------
   Ana İçerik ve Sekmeler
   ------------------------------------------------------------------------------ */
.app-content {
    padding: 20px 24px 40px;
    max-width: 1700px;
    margin: 0 auto;
}

.tab-page {
    display: none;
}
.tab-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------------------
   1. KANBAN BOARD ALANI
   ------------------------------------------------------------------------------ */
.kanban-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.platform-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.platform-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.platform-chip.active {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.25);
}

.platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.getir-dot { background: var(--color-getir); box-shadow: 0 0 6px var(--color-getir); }
.ys-dot { background: var(--color-ys); box-shadow: 0 0 6px var(--color-ys); }
.migros-dot { background: var(--color-migros); box-shadow: 0 0 6px var(--color-migros); }

/* Kanban 4 Sütun Izgarası */
.kanban-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.kanban-column {
    background: var(--bg-column);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    min-height: calc(100vh - 190px);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.kanban-column.drag-over {
    background: rgba(0, 245, 212, 0.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.column-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid transparent;
    background: rgba(0, 0, 0, 0.2);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.border-cyan { border-bottom-color: var(--neon-cyan); }
.border-amber { border-bottom-color: var(--neon-amber); }
.border-purple { border-bottom-color: var(--neon-purple); }
.border-green { border-bottom-color: var(--neon-green); }

.col-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-title h2 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.cyan-glow { background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.amber-glow { background: var(--neon-amber); box-shadow: 0 0 10px var(--neon-amber); }
.purple-glow { background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }
.green-glow { background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }

.col-count {
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    color: var(--text-primary);
}

.column-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 270px);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 10px;
    color: var(--text-muted);
    text-align: center;
    gap: 10px;
}
.empty-state i {
    font-size: 28px;
    opacity: 0.4;
}
.empty-state p {
    font-size: 13px;
}

/* ------------------------------------------------------------------------------
   Sipariş Kartı Tasarımı (Order Card)
   ------------------------------------------------------------------------------ */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    cursor: grab;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.order-card:active {
    cursor: grabbing;
}

.order-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Yeni Gelen Sipariş Parıldaması */
.order-card.new-pulse {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
    animation: cardFlash 2s infinite alternate;
}

@keyframes cardFlash {
    0% { border-color: var(--neon-cyan); }
    100% { border-color: rgba(0, 245, 212, 0.3); }
}

/* Sipariş Kartı Üst Bölüm */
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.platform-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-getir { background: var(--color-getir); box-shadow: 0 0 10px rgba(120, 73, 247, 0.4); }
.badge-yemeksepeti { background: var(--color-ys); box-shadow: 0 0 10px rgba(255, 0, 56, 0.4); }
.badge-migros { background: var(--color-migros); box-shadow: 0 0 10px rgba(255, 111, 0, 0.4); }

.order-time {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-no {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Müşteri ve Adres Bilgisi */
.order-customer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.customer-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-address {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.customer-note {
    background: rgba(255, 183, 3, 0.1);
    border-left: 3px solid var(--neon-amber);
    padding: 6px 8px;
    font-size: 12px;
    color: #ffd166;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* Ürün Kalemleri Listesi */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.item-qty-name {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 75%;
}

.item-qty {
    background: rgba(0, 245, 212, 0.15);
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.item-name {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Sipariş Dip Toplamı */
.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
}

.payment-badge {
    font-size: 11px;
    color: var(--text-muted);
}

.total-amount {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* Hızlı Aksiyon Butonları */
.order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.order-actions .btn-full {
    grid-column: span 2;
}

.action-btn-status {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-prepare {
    background: var(--neon-amber);
    color: #121212;
}
.btn-prepare:hover {
    background: #ffc425;
    box-shadow: 0 0 12px var(--neon-amber-glow);
}

.btn-dispatch {
    background: var(--neon-purple);
    color: #ffffff;
}
.btn-dispatch:hover {
    background: #af64f0;
    box-shadow: 0 0 12px var(--neon-purple-glow);
}

.btn-complete {
    background: var(--neon-green);
    color: #121212;
}
.btn-complete:hover {
    background: #39e3d3;
    box-shadow: 0 0 12px var(--neon-green-glow);
}

.btn-cancel {
    background: rgba(255, 51, 102, 0.15);
    color: var(--neon-red);
    border: 1px solid rgba(255, 51, 102, 0.4);
}
.btn-cancel:hover {
    background: var(--neon-red);
    color: #fff;
    box-shadow: 0 0 12px var(--neon-red-glow);
}

.btn-wa-resend {
    background: rgba(46, 196, 182, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(46, 196, 182, 0.3);
}
.btn-wa-resend:hover {
    background: rgba(46, 196, 182, 0.25);
}

/* ------------------------------------------------------------------------------
   2. MENÜ VE ÜRÜNLER YÖNETİM SAYFASI
   ------------------------------------------------------------------------------ */
.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* Neon Tablo */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.neon-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.neon-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.neon-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.neon-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.product-img-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #1e293b;
    border: 1px solid var(--border-color);
}

.product-info-cell h4 {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.product-sku {
    font-size: 11px;
    font-family: monospace;
    color: var(--text-muted);
}

.category-tag {
    background: rgba(0, 187, 249, 0.1);
    color: var(--neon-blue);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Fiyat Giriş Kutusu ve Hızlı Senkronizasyon */
.price-inline-editor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 90px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
}

.price-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.btn-save-price {
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-save-price:hover {
    background: var(--neon-cyan);
    color: #0b0f17;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* Modern Neon Toggle Switch (Aktif / Tükendi) */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.neon-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.neon-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.neon-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 24px;
}

.neon-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .neon-slider {
    background-color: var(--neon-green);
    box-shadow: 0 0 12px var(--neon-green-glow);
}

input:checked + .neon-slider:before {
    transform: translateX(24px);
    background-color: #0b0f17;
}

.stock-status-label {
    font-size: 12px;
    font-weight: 600;
}
.status-available { color: var(--neon-green); }
.status-out { color: var(--neon-red); }

/* Platform Mapping Rozetleri */
.mapping-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mapping-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.mapping-tag.synced {
    border-color: rgba(46, 196, 182, 0.4);
    color: var(--neon-green);
}

.mapping-tag.unsynced {
    border-color: rgba(255, 51, 102, 0.4);
    color: var(--neon-red);
}

/* ------------------------------------------------------------------------------
   Modal Pencereler
   ------------------------------------------------------------------------------ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-backdrop.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 212, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

/* Form Elemanları */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.neon-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
}

.neon-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.form-row {
    display: flex;
    gap: 14px;
}

.col-6 {
    flex: 1;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.info-alert {
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #d1fae5;
}

.webhook-url-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.webhook-url-box code {
    background: #090d16;
    color: var(--neon-cyan);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
}

/* ------------------------------------------------------------------------------
   Adisyon Yazdırma Alanı (Receipt Area)
   ------------------------------------------------------------------------------ */
.receipt-card {
    max-width: 420px;
}

.receipt-print-area {
    background: #ffffff;
    color: #000000;
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 4px;
    margin: 16px 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.receipt-header h2 {
    font-size: 18px;
    font-weight: bold;
}

.receipt-items-table {
    width: 100%;
    margin: 10px 0;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
}

.receipt-total {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
}

/* ------------------------------------------------------------------------------
   Toast Bildirimleri
   ------------------------------------------------------------------------------ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--neon-cyan);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--neon-cyan-glow);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
}

.toast.toast-success { border-color: var(--neon-green); }
.toast.toast-warning { border-color: var(--neon-amber); }
.toast.toast-error   { border-color: var(--neon-red); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Yardımcı Renkler */
.text-neon-cyan { color: var(--neon-cyan); }
.text-neon-green { color: var(--neon-green); }
.text-neon-amber { color: var(--neon-amber); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ------------------------------------------------------------------------------
   Yazdırma (Print) CSS
   ------------------------------------------------------------------------------ */
@media print {
    body * {
        visibility: hidden;
    }
    #receiptPrintArea, #receiptPrintArea * {
        visibility: visible;
    }
    #receiptPrintArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 10px;
    }
}

/* ------------------------------------------------------------------------------
   Responsive (Tablet & Mobil Ekranlar)
   ------------------------------------------------------------------------------ */
@media (max-width: 1200px) {
    .kanban-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kanban-column {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .app-header {
        height: auto;
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .header-left {
        justify-content: space-between;
    }
    .header-right {
        justify-content: space-between;
    }
    .kanban-grid {
        grid-template-columns: 1fr;
    }
    .app-content {
        padding: 12px;
    }
}
