/* Barkodlu Satis Programi - Modern UI CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vh: 1vh;
    /* Modern Color Palette - Vibrant & Contemporary */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #818cf8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --accent-2: #4facfe;
    --accent-3: #00f2fe;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.3);
    
    /* Shadows - Modern Soft Shadows with Color */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(102, 126, 234, 0.4);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Türkçe karakter desteği için font ayarları */
@charset "utf-8";

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Glassmorphism overlay with animated particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 182, 212, 0.05);
    backdrop-filter: blur(30px);
    z-index: -1;
    pointer-events: none;
}

/* Turkuaz particles background - Sabit */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(8, 145, 178, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(14, 116, 144, 0.15) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Tüm text elementleri için Türkçe karakter desteği */
*, *::before, *::after {
    font-variant-ligatures: none;
    text-transform: none;
}

/* Touch active state */
.touch-active {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Float ve Shimmer animasyonları kaldırıldı - Performans optimizasyonu */

/* Animate In Class */
.animate-in {
    animation: fadeInScale 0.6s ease-out forwards;
}

/* Enhanced Glassmorphism for Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Glassmorphism for Forms */
.form-control, .form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition);
}

.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Enhanced Glassmorphism for Tables */
.data-table, .sepet-table {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.data-table th {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

/* Enhanced Glassmorphism for Modals */
.modal-content, .barkod-modal-content {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Sidebar */
.wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    min-width: 280px;
    width: 280px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: rgba(99, 102, 241, 0.25) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sidebar-header {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.sidebar ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar ul li a {
    padding: var(--spacing) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 4px solid transparent;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--spacing-xs) var(--spacing);
    font-weight: 500;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #fff;
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Area */
.content {
    width: calc(100% - 280px);
    margin-left: 280px;
    transition: all var(--transition);
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
}

.navbar-top {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: var(--spacing) var(--spacing-md);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #667eea;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

.firma-adi {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-left: 15px;
}

.main-content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
}

/* Page Container */
.page-container {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out;
    transition: all var(--transition);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
}

/* Page container hover - Basitleştirilmiş */
.page-container:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

/* Forms */
.form-container {
    max-width: 800px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: var(--spacing) var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-glow);
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

.required {
    color: #e74c3c;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: var(--spacing) var(--spacing-md);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-md), 0 0 20px rgba(102, 126, 234, 0.3);
    padding: 10px 20px;
    min-width: 80px;
    height: auto;
    line-height: 1.5;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    gap: 8px;
}

.btn-primary i {
    font-size: 16px;
    transition: transform var(--transition);
}

.btn-primary:hover i {
    transform: scale(1.2) rotate(90deg);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition);
    box-sizing: border-box;
    width: 100%;
    animation: fadeInScale 0.5s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: visible;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-md), 0 0 20px rgba(102, 126, 234, 0.3);
    transition: all var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Stat icon effects - Basitleştirilmiş (performans optimizasyonu) */
.stat-card:hover .stat-icon {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-icon.teal { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.stat-icon.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.stat-info p {
    margin: var(--spacing-xs) 0 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-info small {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Quick Actions */
.quick-actions {
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.quick-actions h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.action-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all var(--transition);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-btn:nth-child(1) { animation-delay: 0.1s; }
.action-btn:nth-child(2) { animation-delay: 0.2s; }
.action-btn:nth-child(3) { animation-delay: 0.3s; }
.action-btn:nth-child(4) { animation-delay: 0.4s; }

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

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

.action-btn span {
    font-size: 1rem;
    font-weight: 500;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Table Bordered Styles */
.table-bordered {
    border: 1px solid #ddd;
    border-collapse: collapse;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table-bordered th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

.table-bordered td {
    text-align: left;
}

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

.sepet-table.table-bordered {
    border: 1px solid #ddd;
}

.sepet-table.table-bordered th,
.sepet-table.table-bordered td {
    border: 1px solid #ddd;
    padding: 10px 8px;
}

.sepet-table.table-bordered th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.btn-icon {
    padding: 8px 12px;
    color: #667eea;
    text-decoration: none;
    margin: 0 3px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

.btn-icon.delete {
    color: #dc3545;
}

.btn-icon:hover,
.btn-icon:active {
    opacity: 0.7;
    background: rgba(0,0,0,0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state i {
    margin-bottom: 15px;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Page */
/* Login Tabs */
.login-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
    min-height: 50px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(102, 126, 234, 0.3);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: transparent;
    font-weight: 700;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    position: relative;
    z-index: 1;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

.tab-btn i {
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.tab-btn:hover i {
    transform: scale(1.15) rotate(5deg);
}

.tab-btn.active i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: block;
}

.page-header {
    margin-bottom: 20px;
}

.page-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 8px 0 8px;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow-md);
}

.bulk-import-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bulk-import-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.help-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Login Page Specific Styles */
body.login-page,
html.login-page {
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.login-page .wrapper,
.login-page .wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

body.login-page .content,
.login-page .content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
}

body.login-page .main-content,
.login-page .main-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: var(--shadow-2xl);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    min-height: 32px;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}

/* Sales Page */
.satis-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.satis-left {
    width: 100%;
    box-sizing: border-box;
}

.satis-right {
    width: 100%;
    box-sizing: border-box;
}

.barkod-section {
    width: 100%;
    box-sizing: border-box;
}

.barkod-section .form-group {
    width: 100%;
    box-sizing: border-box;
}

.barkod-section label {
    width: 100%;
    box-sizing: border-box;
}

.barkod-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.barkod-input-group .form-control,
.barkod-input-group .barkod-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.barkod-input-group .barkod-btn,
.barkod-input-group .btn-primary,
.barkod-input-group .btn {
    width: auto;
    min-width: 90px;
    padding: 12px 20px;
    box-sizing: border-box;
    height: 44px;
    line-height: 1.5;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 600;
}

.barkod-input-group .barkod-btn i,
.barkod-input-group .btn-primary i {
    font-size: 16px;
    margin-right: 6px;
}

.barkod-input-group .barkod-btn .btn-text,
.barkod-input-group .btn-primary span {
    display: inline;
}

.barkod-input {
    flex: 1;
    max-width: 100%;
}

.sepet-section {
    margin-top: 30px;
}

.sepet-table {
    font-size: 0.9rem;
    width: 100%;
    border-collapse: collapse;
}

.sepet-section {
    width: 100%;
    box-sizing: border-box;
}

.sepet-section h3 {
    width: 100%;
    box-sizing: border-box;
}

.miktar-input {
    width: 80px;
    text-align: center;
}

.odeme-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.odeme-bilgileri {
    margin-bottom: 20px;
}

.odeme-satir {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.odeme-satir.toplam {
    border-top: 2px solid #667eea;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.odeme-butonlari {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close,
.close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover,
.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Responsive - Mobil Optimizasyon */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Sidebar mobilde overlay olarak */
    .sidebar {
        margin-left: -280px;
        width: 280px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    /* Sidebar açıkken overlay */
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
    }
    
    .navbar-top {
        padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .main-content {
        padding: var(--spacing);
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .page-tabs {
        flex-direction: column;
        gap: 4px;
        padding: 4px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: var(--radius-sm);
    }
    
    .tab-btn.active {
        transform: none;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .page-container {
        padding: var(--spacing);
        padding-bottom: 0;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }
    
    .login-container {
        padding: 15px;
        min-height: 100vh;
        width: 100%;
    }
    
    .login-box {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 14px; /* Mobilde daha büyük touch area */
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .satis-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .satis-container > div {
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-card:hover {
        transform: none; /* Mobilde hover efekti yok */
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .stat-info {
        flex: 1;
        min-width: 0;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .stat-info p {
        font-size: 0.9rem;
        margin: 4px 0 0 0;
    }
    
    .quick-actions {
        margin-top: 20px;
    }
    
    .quick-actions h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .action-btn {
        padding: 16px;
        min-height: 60px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .action-btn i {
        font-size: 1.8rem;
    }
    
    .action-btn span {
        font-size: 0.95rem;
    }
    
    /* GridView mobil scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    .sepet-section .table-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        font-size: 0.85rem;
        table-layout: auto;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 4px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }
    
    .data-table th {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .data-table td {
        font-size: 0.85rem;
    }
    
    .table-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }
    
    /* Mobilde tablo scroll göstergesi kaldırıldı */
    
    @keyframes fadeOut {
        0% { opacity: 0.7; }
        100% { opacity: 0; }
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .barkod-input-group {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-sm);
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }
    
    .barkod-input-group .barkod-input,
    .barkod-input-group .form-control {
        flex: 1;
        min-width: 0;
        max-width: none;
        font-size: 16px;
        padding: var(--spacing);
        box-sizing: border-box;
    }
    
    .barkod-input-group .barkod-btn,
    .barkod-input-group .btn-primary,
    .barkod-input-group .btn {
        flex-shrink: 0;
        width: auto;
        min-width: 70px;
        padding: 12px 16px;
        white-space: nowrap;
        box-sizing: border-box;
        height: 44px;
        line-height: 1.5;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }
    
    .barkod-input-group .barkod-btn i,
    .barkod-input-group .btn-primary i {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .barkod-input-group .barkod-btn .btn-text {
        display: none;
    }
    
    .barkod-input-group .btn-primary span {
        display: inline;
    }
    
    .barkod-section {
        margin-bottom: 20px;
    }
    
    .barkod-section .form-group {
        margin-bottom: 0;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .filter-section {
        margin-bottom: 15px;
    }
    
    .filter-section .form-row {
        gap: 10px;
    }
    
    .filter-section .btn {
        width: auto;
        flex: 1;
    }
    
    .satis-left {
        order: 1;
        width: 100%;
        padding: 0;
        margin: 0 0 var(--spacing-md) 0;
        box-sizing: border-box;
        display: block;
        position: relative;
        z-index: 5;
    }
    
    .satis-right {
        order: 2;
        width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
        box-sizing: border-box;
        display: block;
        z-index: 1;
    }
    
    .page-title {
        font-size: 1.4rem;
        margin-bottom: var(--spacing-md);
        padding: 0;
    }
    
    .barkod-section {
        padding: var(--spacing);
        margin: 0 0 var(--spacing-md) 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-sizing: border-box;
        width: 100%;
        display: block;
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    
    .barkod-section label {
        font-size: 14px;
        margin-bottom: var(--spacing-sm);
        display: block;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    /* Desktop'ta ödeme paneli normal akışta */
    .satis-right .odeme-panel {
        position: relative;
        z-index: 1;
        margin-top: var(--spacing-md);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: var(--spacing);
        box-shadow: var(--shadow-md);
        border-radius: var(--radius-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobilde ödeme paneli sepet alanının altında */
    @media (max-width: 768px) {
        .odeme-panel {
            position: relative !important;
            bottom: auto !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            z-index: 1 !important;
            margin-top: var(--spacing-md) !important;
            margin-bottom: var(--spacing-md) !important;
            border-radius: var(--radius-lg) !important;
            border-top: 2px solid var(--primary) !important;
            box-shadow: var(--shadow-md) !important;
            max-height: none !important;
            overflow-y: visible !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        
        .satis-right .odeme-panel {
            position: relative !important;
            bottom: auto !important;
            left: auto !important;
            right: auto !important;
            z-index: 1 !important;
            margin-top: var(--spacing-md) !important;
            margin-bottom: var(--spacing-md) !important;
            border-radius: var(--radius-lg) !important;
            border-top: 2px solid var(--primary) !important;
            box-shadow: var(--shadow-md) !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        
        .sepet-section {
            margin-bottom: var(--spacing-md) !important;
        }
    }
    
    .satis-right {
        order: 2;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-bottom: 0;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        flex-shrink: 0;
    }
    
    .barkod-section {
        position: relative;
        z-index: 5;
    }
    
    .sepet-section {
        position: relative;
        z-index: 5;
    }
    
    .page-container {
        padding: var(--spacing);
        padding-bottom: 180px; /* Ödeme paneli için yeterli alan */
        margin: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
        z-index: 1;
    }
    
    .satis-container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        position: relative;
        z-index: 1;
    }
    
    .satis-left {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
        position: relative;
        z-index: 2;
    }
    
    .barkod-section {
        padding: var(--spacing);
        margin: 0 0 var(--spacing-md) 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        display: block;
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(255, 255, 255, 0.5);
        position: relative;
        z-index: 2;
    }
    
    .sepet-section {
        margin: 0;
        padding: var(--spacing);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(255, 255, 255, 0.5);
        display: block;
        position: relative;
        z-index: 2;
    }
    
    .sepet-section h3 {
        font-size: 1.2rem;
        margin: 0 0 var(--spacing) 0;
        padding: 0;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .odeme-bilgileri {
        margin-bottom: var(--spacing);
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-satir {
        padding: var(--spacing-sm) 0;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-satir.toplam {
        font-size: 1.2rem;
        padding-top: var(--spacing);
        font-weight: 700;
        border-top: 2px solid var(--border);
        margin-top: var(--spacing-sm);
    }
    
    .odeme-panel h3 {
        font-size: 1.1rem;
        margin: 0 0 var(--spacing) 0;
        padding: 0;
        font-weight: 600;
    }
    
    .odeme-butonlari {
        display: flex;
        flex-direction: row;
        gap: var(--spacing);
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-butonlari .btn {
        flex: 1;
        min-width: 0;
        margin: 0;
        padding: var(--spacing);
        font-size: 15px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        border-radius: var(--radius);
    }
    
    .odeme-butonlari .btn-success {
        flex: 1;
        width: auto;
    }
    
    .odeme-butonlari .btn-danger {
        flex: 1;
        width: auto;
    }
    
    .sepet-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .page-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .barkod-section {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        position: relative;
        z-index: 5;
        display: block;
        box-shadow: var(--shadow-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .barkod-section label {
        font-size: 14px;
        margin-bottom: var(--spacing-sm);
        display: block;
        font-weight: 600;
    }
    
    .satis-left {
        position: relative;
        z-index: 2;
        padding-bottom: 0;
        margin-bottom: var(--spacing-md);
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .sepet-section {
        margin: var(--spacing-md) auto;
        padding: var(--spacing);
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 2;
        text-align: center;
    }
    
    .sepet-section h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing);
        padding: 0;
        font-weight: 600;
        text-align: center;
    }
    
    .sepet-section .table-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    .sepet-section .sepet-table {
        font-size: 0.75rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        table-layout: auto;
    }
    
    .sepet-section .sepet-table th,
    .sepet-section .sepet-table td {
        padding: 6px 3px;
        font-size: 0.75rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .sepet-section .miktar-input {
        width: 50px;
        font-size: 0.8rem;
        padding: 6px 3px;
        text-align: center;
        margin: 0 auto;
        display: block;
    }
    
    .barkod-section {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: var(--spacing);
        border-radius: var(--radius-lg);
        margin-bottom: var(--spacing-md);
        display: block;
        width: 100%;
        box-sizing: border-box;
        box-shadow: var(--shadow-md);
    }
    
    .barkod-section label {
        margin-bottom: var(--spacing-sm);
        font-size: 14px;
        display: block;
    }
    
    .sepet-section {
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding: var(--spacing);
        display: block;
        width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }
}

/* Küçük ekranlar (480px ve altı) */
@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 5% auto;
        max-height: 90vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .page-container {
        padding: var(--spacing-sm);
        padding-bottom: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }
    
    .main-content {
        padding: var(--spacing-sm);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }
    
    .login-container {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .login-box {
        padding: 25px 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .stats-grid {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 14px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-card:hover {
        transform: none; /* Mobilde hover efekti yok */
    }
    
    .action-btn:hover {
        background: #fff;
        color: #667eea;
    }
    
    .action-btn:active {
        background: #667eea;
        color: #fff;
        transform: scale(0.98);
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .stat-info {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    
    .stat-info h3 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .stat-info p {
        font-size: 0.85rem;
        margin: 3px 0 0 0;
    }
    
    .quick-actions {
        margin-top: 15px;
    }
    
    .quick-actions h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .action-buttons {
        gap: 10px;
        margin-top: 12px;
    }
    
    .action-btn {
        padding: 14px;
        min-height: 55px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .action-btn i {
        font-size: 1.6rem;
    }
    
    .action-btn span {
        font-size: 0.9rem;
    }
    
    .data-table {
        font-size: 0.75rem;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        table-layout: auto;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 3px;
        font-size: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }
    
    .data-table th {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .table-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        text-align: center;
    }
    
    .btn-icon {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .sepet-section .sepet-table {
        font-size: 0.8rem;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        table-layout: auto;
    }
    
    .sepet-section .sepet-table th,
    .sepet-section .sepet-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .sepet-section .miktar-input {
        width: 60px;
        padding: 6px 4px;
        font-size: 0.85rem;
        text-align: center;
        margin: 0 auto;
        display: block;
    }
    
    .sepet-section .table-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .page-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .page-tabs {
        flex-direction: column;
        gap: 4px;
        padding: 4px;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-height: 42px;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .page-container {
        padding: var(--spacing-sm);
        padding-bottom: 170px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        position: relative;
        z-index: 1;
    }
    
    .barkod-section {
        padding: var(--spacing);
        margin-bottom: var(--spacing-md);
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 2;
    }
    
    .barkod-section label {
        font-size: 13px;
        margin-bottom: var(--spacing-xs);
        display: block;
    }
    
    .sepet-section {
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding: var(--spacing);
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 2;
    }
    
    .barkod-input-group {
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
    
    .barkod-input-group .barkod-input,
    .barkod-input-group .form-control {
        flex: 1;
        min-width: 0;
        max-width: none;
        font-size: 16px;
        padding: var(--spacing-sm);
        box-sizing: border-box;
    }
    
    .barkod-input-group .barkod-btn,
    .barkod-input-group .btn-primary,
    .barkod-input-group .btn {
        min-width: 50px;
        padding: 10px 12px;
        font-size: 14px;
        flex-shrink: 0;
        box-sizing: border-box;
        height: 44px;
        line-height: 1.5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }
    
    .barkod-input-group .barkod-btn i,
    .barkod-input-group .btn-primary i {
        margin: 0;
        font-size: 16px;
        margin-right: 4px;
    }
    
    .barkod-input-group .barkod-btn .btn-text {
        display: none;
    }
    
    .barkod-input-group .btn-primary span {
        display: inline;
    }
    
    .sepet-section {
        margin: var(--spacing-md) auto;
        padding: var(--spacing-sm);
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .sepet-section h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
        display: block;
        text-align: center;
    }
    
    .sepet-section .table-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    .sepet-section .sepet-table {
        font-size: 0.7rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        table-layout: auto;
    }
    
    .sepet-section .sepet-table th,
    .sepet-section .sepet-table td {
        padding: 5px 2px;
        font-size: 0.7rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .sepet-section .miktar-input {
        width: 45px;
        font-size: 0.75rem;
        padding: 4px 2px;
        text-align: center;
        margin: 0 auto;
        display: block;
    }
    
    .odeme-panel {
        padding: var(--spacing);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .odeme-panel h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing);
    }
    
    .odeme-bilgileri {
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-satir {
        font-size: 13px;
        padding: var(--spacing-xs) 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-satir.toplam {
        font-size: 1.1rem;
        padding: var(--spacing-sm) 0;
    }
    
    .odeme-satir.toplam span:first-child {
        font-size: 0.9rem;
    }
    
    .odeme-satir.toplam span:last-child {
        font-size: 1.15rem;
        font-weight: 700;
    }
    
    .odeme-butonlari {
        flex-direction: row;
        gap: var(--spacing-sm);
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-butonlari .btn {
        flex: 1;
        min-width: 0;
        padding: var(--spacing);
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }
    
    .odeme-butonlari .btn-success {
        flex: 1;
        width: auto;
    }
    
    .odeme-butonlari .btn-danger {
        flex: 1;
        width: auto;
    }
    
    .satis-right {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .page-container {
        padding-bottom: var(--spacing-md);
    }
    
    .satis-left {
        position: relative;
        z-index: 5;
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .sepet-section {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing);
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 5;
    }
    
    .barkod-section {
        padding: var(--spacing);
        margin-bottom: var(--spacing-md);
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 5;
    }
    
    .odeme-panel {
        z-index: 1;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: var(--spacing);
        margin: var(--spacing-md) 0;
        border-radius: var(--radius-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
    }
    
    .odeme-panel h3 {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .odeme-bilgileri {
        margin-bottom: var(--spacing-sm);
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-satir {
        width: 100%;
        box-sizing: border-box;
        font-size: 12px;
    }
    
    .odeme-satir.toplam {
        font-size: 1rem;
        padding: var(--spacing-xs) 0;
    }
    
    .odeme-satir.toplam span:first-child {
        font-size: 0.85rem;
    }
    
    .odeme-satir.toplam span:last-child {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .odeme-butonlari {
        flex-direction: row;
        gap: var(--spacing-xs);
        width: 100%;
        box-sizing: border-box;
    }
    
    .odeme-butonlari .btn {
        flex: 1;
        min-width: 0;
        padding: var(--spacing-sm);
        font-size: 13px;
        box-sizing: border-box;
    }
    
    .odeme-butonlari .btn-success {
        flex: 1;
        width: auto;
    }
    
    .odeme-butonlari .btn-danger {
        flex: 1;
        width: auto;
    }
    
    .satis-right {
        padding-bottom: 0;
    }
}

/* iOS özel optimizasyonlar */
@supports (-webkit-touch-callout: none) {
    .form-control,
    .btn,
    input,
    textarea,
    select {
        -webkit-appearance: none;
        border-radius: 5px;
    }
    
    input[type="number"] {
        -webkit-appearance: textfield;
    }
    
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}

/* Android özel optimizasyonlar */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form-control:focus {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
}

/* Barkod Okuma Modal */
.barkod-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.barkod-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 640px;
    position: relative;
}

.barkod-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.barkod-modal-header h3 {
    margin: 0;
    color: #333;
}

.barkod-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.barkod-close:hover,
.barkod-close:focus {
    color: #000;
    text-decoration: none;
}

#barkodScanner {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Tarama çizgisi animasyonu */
.tarama-cizgisi {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.8) 20%, 
        rgba(102, 126, 234, 1) 50%, 
        rgba(102, 126, 234, 0.8) 80%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                0 0 40px rgba(102, 126, 234, 0.6);
    top: 20%;
    animation: taramaHareket 2s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes taramaHareket {
    0% {
        top: 20%;
        opacity: 0.8;
    }
    50% {
        top: 60%;
        opacity: 1;
    }
    100% {
        top: 20%;
        opacity: 0.8;
    }
}

/* Başarı efekti - Yeşil çerçeve */
.basarili-cerceve {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    bottom: 20%;
    border: 4px solid #10b981;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8),
                0 0 60px rgba(16, 185, 129, 0.6),
                inset 0 0 30px rgba(16, 185, 129, 0.3);
    animation: basariliPulse 0.5s ease-out;
    z-index: 20;
    pointer-events: none;
}

@keyframes basariliPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* Barkod scanner overlay - Merkez hedef alanı */
#barkodScanner::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    bottom: 20%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    pointer-events: none;
    z-index: 5;
}

#barkodScanner::after {
    content: 'Barkodu bu alana hizalayın';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 6;
    pointer-events: none;
}

.barkod-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    margin-left: 10px;
}

.barkod-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.barkod-btn i {
    font-size: 16px;
}

.barkod-btn .btn-text {
    display: inline;
}

@media (max-width: 480px) {
    .barkod-btn .btn-text {
        display: none;
    }
    
    .barkod-btn,
    .barkod-input-group .btn-primary,
    .barkod-input-group .btn {
        min-width: 50px;
        padding: 10px 12px;
        height: 44px;
        line-height: 1.5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }
    
    .barkod-btn i,
    .barkod-input-group .btn-primary i {
        font-size: 16px;
        margin-right: 4px;
    }
    
    .barkod-btn .btn-text {
        display: none;
    }
    
    .barkod-input-group .btn-primary span {
        display: inline;
    }
}

.barkod-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.barkod-input-group .form-control {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .barkod-modal-content {
        width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .barkod-modal-header {
        margin-bottom: 15px;
    }
    
    #barkodScanner {
        height: calc(100vh - 150px);
        flex: 1;
        min-height: 300px;
    }
    
    .barkod-close {
        width: 44px;
        height: 44px;
        font-size: 32px;
    }
}

