/* ==========================================
   KahvePOS v3.0 - Stil Dosyası
   Gelişmiş özellikler: Karanlık mod, tema, PWA, grafikler
   ========================================== */

/* CSS Değişkenleri - Kahve Teması (Varsayılan) */
:root {
    --color-primary: #6F4E37;
    --color-primary-dark: #5A4030;
    --color-secondary: #C4A484;
    --color-secondary-dark: #A88D72;
    --color-bg: #FFF8F0;
    --color-surface: #FFFFFF;
    --color-accent: #D4A574;
    --color-success: #4CAF50;
    --color-success-dark: #43A047;
    --color-warning: #FF9800;
    --color-warning-dark: #F57C00;
    --color-danger: #f44336;
    --color-danger-dark: #d32f2f;
    --color-info: #2196F3;
    --color-text: #2C2C2C;
    --color-text-light: #757575;
    --color-border: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
}

/* Karanlık Mod */
[data-theme="dark"] {
    --color-primary: #C4A484;
    --color-primary-dark: #D4A574;
    --color-secondary: #6F4E37;
    --color-secondary-dark: #8B6246;
    --color-bg: #1a1a1a;
    --color-surface: #2d2d2d;
    --color-accent: #A88D72;
    --color-success: #66BB6A;
    --color-success-dark: #4CAF50;
    --color-warning: #FFA726;
    --color-warning-dark: #FF9800;
    --color-danger: #EF5350;
    --color-danger-dark: #f44336;
    --color-info: #42A5F5;
    --color-text: #E0E0E0;
    --color-text-light: #B0B0B0;
    --color-border: #404040;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.6);
}

/* Tema Renk Seçenekleri */
[data-theme="blue"] {
    --color-primary: #1976D2;
    --color-primary-dark: #1565C0;
    --color-secondary: #64B5F6;
    --color-secondary-dark: #42A5F5;
    --color-bg: #E3F2FD;
    --color-accent: #90CAF9;
}

[data-theme="green"] {
    --color-primary: #388E3C;
    --color-primary-dark: #2E7D32;
    --color-secondary: #81C784;
    --color-secondary-dark: #66BB6A;
    --color-bg: #E8F5E9;
    --color-accent: #A5D6A7;
}

[data-theme="purple"] {
    --color-primary: #7B1FA2;
    --color-primary-dark: #6A1B9A;
    --color-secondary: #BA68C8;
    --color-secondary-dark: #AB47BC;
    --color-bg: #F3E5F5;
    --color-accent: #CE93D8;
}

[data-theme="red"] {
    --color-primary: #D32F2F;
    --color-primary-dark: #C62828;
    --color-secondary: #E57373;
    --color-secondary-dark: #EF5350;
    --color-bg: #FFEBEE;
    --color-accent: #EF9A9A;
}

/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-secondary);
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.nav-tab {
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-tab:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.nav-tab.active {
    background: var(--color-surface);
    color: var(--color-primary);
}

.nav-tab .shortcut-hint {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.6rem;
    opacity: 0.6;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.theme-toggle, .settings-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover, .settings-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(15deg);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* ============================
   DASHBOARD SAYFASI
   ============================ */
.dashboard-page {
    display: grid;
    gap: 1.5rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-icon.primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); }
.stat-icon.success { background: linear-gradient(135deg, var(--color-success), var(--color-success-dark)); }
.stat-icon.warning { background: linear-gradient(135deg, var(--color-warning), var(--color-warning-dark)); }
.stat-icon.danger { background: linear-gradient(135deg, var(--color-danger), var(--color-danger-dark)); }
.stat-icon.info { background: linear-gradient(135deg, var(--color-info), #1976D2); }

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-change {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.stat-change.positive { color: var(--color-success); }
.stat-change.negative { color: var(--color-danger); }

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 250px;
}

/* Top Products */
.top-products {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.top-products h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
}

.top-product-item:last-child {
    border-bottom: none;
}

.top-product-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.top-product-rank.gold { background: linear-gradient(135deg, #FFD700, #FFA500); }
.top-product-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); }
.top-product-rank.bronze { background: linear-gradient(135deg, #CD7F32, #B87333); }

.top-product-info {
    flex: 1;
}

.top-product-name {
    font-weight: 600;
    color: var(--color-text);
}

.top-product-sales {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.top-product-value {
    font-weight: 700;
    color: var(--color-success);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
    transform: translateY(-2px);
}

.quick-action-btn span {
    font-size: 2rem;
}

.quick-action-btn strong {
    color: var(--color-text);
}

/* ============================
   POS PAGE (Ana Satış Ekranı)
   ============================ */
.pos-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.pos-products {
    order: 2;
}

.cart-panel {
    order: 1;
}

/* Search Bar */
.product-search {
    margin-bottom: 1rem;
    position: relative;
}

.product-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    transition: var(--transition);
}

.product-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.1);
}

.product-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.product-search-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--color-text-light);
}

/* Kategori Tabları */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.7rem 1.4rem;
    border: none;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tab:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-tab.active {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.product-card:active {
    transform: scale(0.95);
}

.product-card.hidden {
    display: none;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Sepet Paneli */
.cart-panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-bg);
}

.cart-header h2 {
    font-size: 1.3rem;
    color: var(--color-primary);
}

.cart-header-actions {
    display: flex;
    gap: 0.5rem;
}

.cart-header-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.cart-header-btn:hover {
    background: var(--color-border);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
    max-height: 400px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    gap: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--color-secondary);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.qty-btn:hover {
    background: var(--color-primary);
}

.qty-display {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--color-danger);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.cart-item-remove:hover {
    background: #d32f2f;
}

/* Boş Sepet */
.empty-cart {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-light);
}

.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Sepet Toplam */
.cart-discount-section {
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

.discount-input-group {
    display: flex;
    gap: 0.5rem;
}

.discount-input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.discount-apply-btn {
    padding: 0.6rem 1rem;
    background: var(--color-warning);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.discount-amount {
    color: var(--color-success);
    font-weight: 600;
}

.remove-discount-btn {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.cart-summary {
    padding-top: 1rem;
    border-top: 2px solid var(--color-bg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.summary-row.discount {
    color: var(--color-success);
}

.summary-row.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 2px dashed var(--color-border);
}

.cart-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.cart-note-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.cart-note-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-clear {
    background: var(--color-bg);
    color: var(--color-text);
}

.btn-clear:hover {
    background: #E0D5C7;
}

.btn-checkout {
    background: var(--color-success);
    color: white;
}

.btn-checkout:hover {
    background: var(--color-success-dark);
    transform: scale(1.02);
}

.btn-checkout:disabled {
    background: var(--color-border);
    cursor: not-allowed;
    transform: none;
}

/* ============================
   ÜRÜN YÖNETİMİ SAYFASI
   ============================ */
.products-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-page-header h1 {
    color: var(--color-primary);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-secondary-dark);
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bulk-btn {
    padding: 0.6rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.bulk-btn:hover {
    border-color: var(--color-primary);
}

/* Ürün Listesi */
.products-list {
    display: grid;
    gap: 1rem;
}

.product-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-item.selected {
    border: 2px solid var(--color-primary);
}

.product-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.product-item-icon {
    font-size: 2.5rem;
}

.product-item-details h3 {
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.product-item-details .category-badge {
    display: inline-block;
    background: var(--color-bg);
    color: var(--color-text-light);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-item-details .price-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.product-item-details .price-info span {
    display: flex;
    gap: 0.3rem;
}

.price-label {
    color: var(--color-text-light);
}

.price-cost {
    color: var(--color-warning);
}

.price-sale {
    color: var(--color-success);
    font-weight: 600;
}

.price-profit {
    color: var(--color-primary);
    font-weight: 600;
}

.product-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: var(--color-secondary);
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: var(--color-secondary-dark);
}

.btn-delete {
    background: var(--color-danger);
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: var(--color-danger-dark);
}

/* ============================
   MODAL
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--color-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-secondary);
    color: white;
}

/* Form */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--color-surface);
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.icon-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.icon-option {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-option:hover {
    border-color: var(--color-secondary);
}

.icon-option.selected {
    border-color: var(--color-primary);
    background: var(--color-secondary);
    color: white;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-footer .btn-primary {
    flex: 1;
}

/* ============================
   AYARLAR MODALI
   ============================ */
.settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-colors {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.theme-color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.theme-color-btn:hover {
    transform: scale(1.1);
}

.theme-color-btn.active {
    border-color: var(--color-text);
}

.theme-color-btn.coffee { background: linear-gradient(135deg, #6F4E37, #C4A484); }
.theme-color-btn.blue { background: linear-gradient(135deg, #1976D2, #64B5F6); }
.theme-color-btn.green { background: linear-gradient(135deg, #388E3C, #81C784); }
.theme-color-btn.purple { background: linear-gradient(135deg, #7B1FA2, #BA68C8); }
.theme-color-btn.red { background: linear-gradient(135deg, #D32F2F, #E57373); }

.session-info {
    background: var(--color-bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.session-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.session-info p:last-child {
    margin-bottom: 0;
}

/* ============================
   RAPORLAR SAYFASI
   ============================ */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reports-header h1 {
    color: var(--color-primary);
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.date-filter input {
    padding: 0.7rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--color-surface);
    color: var(--color-text);
}

/* Report Period Tabs */
.report-period-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.period-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.period-tab:hover {
    border-color: var(--color-primary);
}

.period-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Rapor Kartları */
.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.report-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.report-card-label {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.report-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.report-card.profit .report-card-value {
    color: var(--color-success);
}

/* Charts Section */
.charts-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.charts-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* Rapor Tablosu */
.report-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.report-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.report-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text);
}

.report-table tbody tr:hover {
    background: var(--color-bg);
}

.report-table .numeric {
    text-align: right;
    font-family: 'Courier New', monospace;
}

.btn-print {
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-print:hover {
    background: var(--color-primary-dark);
}

.btn-export {
    background: var(--color-success);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-export:hover {
    background: var(--color-success-dark);
}

/* Top 10 Products */
.top10-list {
    display: grid;
    gap: 0.8rem;
}

.top10-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.top10-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.top10-rank.top1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.top10-rank.top2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); }
.top10-rank.top3 { background: linear-gradient(135deg, #CD7F32, #B87333); }

.top10-details {
    flex: 1;
}

.top10-name {
    font-weight: 600;
    color: var(--color-text);
}

.top10-stats {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.top10-value {
    font-weight: 700;
    color: var(--color-success);
    font-size: 1.1rem;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* ============================
   RESPONSIVE TASARIM
   ============================ */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .pos-layout {
        grid-template-columns: 1fr;
    }
    
    .pos-products {
        order: 1;
    }
    
    .cart-panel {
        order: 2;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 60vh;
        z-index: 50;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding-bottom: 200px;
    }
    
    .product-card {
        padding: 0.8rem;
    }
    
    .product-icon {
        font-size: 2.5rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .product-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-item-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-item-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .product-item-actions button {
        flex: 1;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================
   PRINT STYLES
   ============================ */
@media print {
    .header,
    .nav-tabs,
    .btn,
    .cart-panel,
    .category-tabs,
    .theme-toggle,
    .settings-btn {
        display: none !important;
    }
    
    .main-container {
        max-width: 100%;
        padding: 0;
    }
    
    .report-section {
        box-shadow: none;
        border: 1px solid var(--color-border);
    }
    
    body {
        background: white;
    }
}

/* ============================
   TOAST NOTIFICATIONS
   ============================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--color-surface);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    color: var(--color-text);
}

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

.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-danger);
}

.toast.warning {
    border-left: 4px solid var(--color-warning);
}

.toast.info {
    border-left: 4px solid var(--color-info);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.product-card {
    animation: fadeIn 0.3s ease;
}

.cart-item {
    animation: scaleIn 0.2s ease;
}

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ============================
   PASSWORD MODAL
   ============================ */
.password-modal {
    max-width: 400px;
}

.password-modal-content {
    text-align: center;
}

.password-modal-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.password-modal-content #password-input {
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    padding: 1rem;
}

.password-modal-content #password-input:focus {
    border-color: var(--color-primary);
    letter-spacing: normal;
}

.password-modal-content .modal-footer {
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ============================
   HAMBURGER MENU TOGGLE
   ============================ */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle .hamburger {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Menu toggled state */
.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav tabs hidden by default on desktop */
#nav-tabs {
    display: none;
}

/* Nav tabs visible when menu is toggled or on desktop */
#nav-tabs.show {
    display: flex;
}

/* Desktop view - always show nav tabs */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    #nav-tabs {
        display: flex !important;
    }
}

/* Mobile view - menu toggle visible */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }
    
    #nav-tabs {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    #nav-tabs.show {
        display: flex;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }
}

/* ============================
   KEYBOARD SHORTCUT HELP
   ============================ */
.keyboard-hints {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.hint-key {
    background: var(--color-surface);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 0 var(--color-border);
}

.hint-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ============================
   USER INFO
   ============================ */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 600;
}

.logout-btn {
    background: var(--color-danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--color-danger-dark);
}

/* ============================
   LOGIN MODAL
   ============================ */
.login-modal {
    max-width: 400px;
}

.login-modal-content {
    padding: 0.5rem;
}

/* ============================
   USERS LIST
   ============================ */
.users-list {
    display: grid;
    gap: 0.5rem;
}

.user-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-item-icon {
    font-size: 2.5rem;
}

.user-item-details h3 {
    margin-bottom: 0.3rem;
}

.user-role-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.user-permissions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.perm-badge {
    background: var(--color-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.user-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================
   SESSION WARNING
   ============================ */
.session-warning {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-warning);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.02); }
}

/* ============================
   IMPORT/EXPORT SECTION
   ============================ */
.import-export-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.import-btn {
    background: var(--color-info);
    color: white;
}

.export-btn {
    background: var(--color-success);
    color: white;
}

.file-input {
    display: none;
}

/* ============================
   BACKUP SECTION
   ============================ */
.backup-info {
    background: var(--color-bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.backup-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.backup-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================
   PWA INSTALL PROMPT
   ============================ */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.3s ease;
}

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

.pwa-install-btn {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ============================
   LOADING SPINNER
   ============================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* ============================
   ACTIVITY INDICATOR
   ============================ */
.activity-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.activity-indicator.away {
    background: var(--color-warning);
}

.activity-indicator.offline {
    background: var(--color-danger);
}

/* ============================
   ÖKC (YAZAR KASA) STİLLERİ
   ============================ */

.okc-status {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin: 1rem 0;
}

.okc-status p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.okc-status p:last-child {
    margin-bottom: 0;
}

.okc-status span:first-child {
    color: var(--color-text-light);
}

.okc-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.okc-actions button {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.okc-actions .btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.okc-actions .btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
}

.okc-actions .btn-primary {
    background: var(--color-primary);
    color: white;
}

.okc-actions .btn-primary:hover {
    background: var(--color-primary-dark);
}

.okc-actions .btn-warning {
    background: var(--color-warning);
    color: white;
}

.okc-actions .btn-warning:hover {
    background: var(--color-warning-dark);
}

/* ÖKC Status Indicator Colors */
.okc-status .status-connected {
    color: var(--color-success);
    font-weight: 600;
}

.okc-status .status-disconnected {
    color: var(--color-danger);
    font-weight: 600;
}

.okc-status .status-checking {
    color: var(--color-info);
    font-weight: 600;
}

/* ============================
   ÖDEME MODALI STİLLERİ
   ============================ */

.payment-modal-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 1.5rem;
}

.payment-modal-content > div {
    min-height: 400px;
}

/* Sol Panel: Sepet Özeti */
.payment-cart-summary {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.payment-cart-summary h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-primary);
}

#payment-cart-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.payment-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.payment-cart-item:last-child {
    border-bottom: none;
}

.payment-cart-item-info {
    flex: 1;
}

.payment-cart-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.payment-cart-item-qty {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.payment-cart-item-total {
    font-weight: 600;
    color: var(--color-primary);
}

.payment-totals {
    border-top: 2px solid var(--color-border);
    padding-top: 1rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.payment-row-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

/* Sağ Panel: Ödeme Yöntemleri */
.payment-methods-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Hızlı Ödeme Butonları */
.quick-payment-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-btn:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-method-btn:active {
    transform: translateY(0);
}

.payment-method-btn .method-icon {
    font-size: 2rem;
}

.payment-method-btn .method-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.payment-method-btn.cash:hover { border-color: #4CAF50; }
.payment-method-btn.credit-card:hover { border-color: #2196F3; }
.payment-method-btn.debit-card:hover { border-color: #FF9800; }
.payment-method-btn.transfer:hover { border-color: #9C27B0; }
.payment-method-btn.mobile:hover { border-color: #E91E63; }
.payment-method-btn.credit:hover { border-color: #F44336; }

/* Çoklu Ödeme Bölümü */
.split-payment-section,
.tip-section {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    cursor: pointer;
    user-select: none;
}

.section-header:hover {
    background: var(--color-surface);
}

.section-header h4 {
    margin: 0;
    font-size: 0.95rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

#split-payment-panel,
#tip-panel {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
}

.split-payment-form .form-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.split-payment-form select,
.split-payment-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.split-payment-form button {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Ödeme Girişleri Listesi */
.payment-entries {
    margin-bottom: 1rem;
}

.payment-empty {
    text-align: center;
    padding: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

.payment-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.payment-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.payment-method {
    flex: 1;
    font-weight: 500;
}

.payment-amount {
    font-weight: 600;
    color: var(--color-primary);
}

.payment-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--color-danger);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
}

.payment-remove:hover {
    background: var(--color-danger-dark);
}

/* Ödeme Özeti */
.payment-summary {
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.text-success {
    color: var(--color-success);
}

.text-warning {
    color: var(--color-warning);
}

.text-danger {
    color: var(--color-danger);
}

/* Bahşiş Bölümü */
.tip-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tip-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--color-primary);
    background: var(--color-surface);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tip-btn:hover {
    background: var(--color-primary);
    color: white;
}

.tip-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-custom input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.tip-display {
    text-align: center;
    padding: 0.75rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

/* Nakit Para Üstü */
.cash-change-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-success);
}

.cash-change-section h4 {
    margin: 0 0 1rem 0;
    color: var(--color-success);
}

.cash-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cash-input label {
    flex-shrink: 0;
}

.cash-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.change-display {
    text-align: center;
    padding: 0.75rem;
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

/* Modal Footer */
.payment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-modal-content {
        grid-template-columns: 1fr;
    }
    
    .quick-payment-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ödeme Durumu Badge'leri */
.payment-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.payment-badge.cash {
    background: #E8F5E9;
    color: #2E7D32;
}

.payment-badge.credit-card {
    background: #E3F2FD;
    color: #1565C0;
}

.payment-badge.debit-card {
    background: #FFF3E0;
    color: #E65100;
}

.payment-badge.transfer {
    background: #F3E5F5;
    color: #6A1B9A;
}

.payment-badge.mobile {
    background: #FCE4EC;
    color: #880E4F;
}

.payment-badge.credit {
    background: #FFEBEE;
    color: #C62828;
}

/* Kullanıcı Satış Tablosu */
.user-avatar-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
}

.products-summary {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.user-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-insight-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.user-insight-title {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.user-insight-value {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.user-insight-detail {
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.35;
}

#user-sales-table tr:hover {
    background: var(--color-bg);
}

#user-sales-table td:first-child {
    font-weight: 500;
}

/* Kullanıcı performans göstergeleri */
.user-performance-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.user-performance-badge.top {
    background: #FFD700;
    color: #000;
}

.user-performance-badge.high {
    background: #4CAF50;
    color: white;
}

.user-performance-badge.medium {
    background: #2196F3;
    color: white;
}

/* Sipariş geçmişi kullanıc�� badge'i */
.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
}
