/* ============================================
   Lyphera - Profesyonel Stok Satış Sistemi
   Ultra Modern & Mobil Öncelikli Tasarım
   ============================================ */

:root {
    /* Özel Renk Paleti */
    --primary: #dc6b00;
    --primary-dark: #b85700;
    --primary-light: #ff8a1a;
    --secondary: #dc6b00;
    --secondary-dark: #b85700;
    --secondary-light: #ff8a1a;
    --dark: #000000;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #dc6b00;
    --success: #10b981;
    --info: #06b6d4;
    
    /* Nötr Renkler */
    --dark: #000000;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Gradientler */
    --gradient-primary: linear-gradient(135deg, #dc6b00 0%, #ff8a1a 100%);
    --gradient-success: linear-gradient(135deg, #104eb9 0%, #347cd3 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-warm: linear-gradient(135deg, #dc6b00 0%, #ff8a1a 100%);
    --gradient-cool: linear-gradient(135deg, #dc6b00 0%, #ff8a1a 100%);
    
    /* Gölgeler */
    --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 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Animasyonlar */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Link underline reset (özellikle <a> ile kullanılan butonlar için) */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}

.btn-modern {
    text-decoration: none !important;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   NAVIGATION - Modern Bottom Nav
   ============================================ */

/* ============================================
   SIDEBAR NAVIGATION - Left Sidebar
   ============================================ */

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 90px;
    background: #000000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5), 2px 0 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-logo {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo-fallback {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu {
    flex: 1;
    padding: 0.75rem 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Sidebar Scrollbar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-footer {
    padding: 0.75rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-date-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.25rem;
}

.nav-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

.nav-date-icon {
    font-size: 0.85rem;
    color: var(--secondary);
    opacity: 0.9;
    margin-right: 0;
    margin-bottom: 0.25rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    position: relative;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 107, 0, 0.45);
}

.btn-modern.active {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.btn-modern.active::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
}

.nav-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-bounce);
    display: block;
    color: inherit;
    opacity: 0.95;
    text-align: center;
    flex-shrink: 0;
}

.nav-item:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    display: block;
    color: inherit;
    opacity: 0.95;
    text-align: center;
    line-height: 1.2;
}

.nav-item:hover .nav-label {
    opacity: 1;
}

.nav-item.active .nav-label {
    opacity: 1;
    font-weight: 700;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.main-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    padding-left: calc(90px + 1rem); /* Sidebar genişliği + padding */
}

#sales.page-section {
    padding-bottom: 0;
}

.page-section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CARDS - Modern Glassmorphism
   ============================================ */

.card-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(220, 107, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-modern:hover {
    /* Hover efekti kaldırıldı */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 107, 0, 0.12);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   FORMS - Ultra Modern Inputs
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    transition: all var(--transition-base);
    font-family: inherit;
}

.form-control-modern select,
select.form-control-modern {
    padding-right: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.form-control-modern textarea {
    resize: vertical;
    min-height: 80px;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 107, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.form-control-modern::placeholder {
    color: var(--gray-400);
}

.form-control-modern textarea,
textarea.form-control-modern {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* ============================================
   BUTTONS - Premium Buttons
   ============================================ */

.btn-modern {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: white;
}

.btn-success-modern {
    background: var(--gradient-success);
    color: white;
}

.btn-danger-modern {
    background: var(--gradient-danger);
    color: white;
}

.btn-secondary-modern {
    background: var(--gray-700);
    color: white;
}

.btn-info-modern {
    background: var(--gradient-cool);
    color: white;
}

.btn-warning-modern {
    background: var(--gradient-warm);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-modern:hover {
    background: var(--primary);
    color: white;
}

.btn-sm-modern {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg-modern {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   SALES - Payment type buttons alignment
   ============================================ */

.payment-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.payment-type-grid .btn-modern {
    width: 100%;
    min-width: 0;
    border: 2px solid transparent;
}

/* Payment buttons: active görünüm sabit kalsın (genişliyormuş gibi hissettirmesin) */
.payment-type-grid .btn-modern.active {
    transform: none !important;
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
}

.payment-type-grid .btn-modern.active::after {
    content: none !important;
}

/* Seçili olmayan ödeme butonu daha nötr görünsün */
.payment-type-grid .btn-modern:not(.active) {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--gray-800) !important;
    border-color: rgba(0, 0, 0, 0.10) !important;
    box-shadow: none !important;
    filter: saturate(0.8);
}

.payment-type-grid .btn-modern:hover {
    transform: none;
}

.payment-type-grid .btn-modern:not(.active):hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

/* ============================================
   TABLES - Modern Data Tables
   ============================================ */

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead {
    background: var(--gradient-primary);
    color: white;
}

.table-modern thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--gray-200);
}

.table-modern tbody tr:hover {
    background: var(--gray-50);
}

.table-modern tbody td {
    padding: 1rem;
    color: var(--gray-700);
    vertical-align: middle;
}

.table-modern tbody td code {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.table-modern tbody tr:last-child {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.table-responsive .table-modern {
    margin-bottom: 0;
    min-width: 800px;
}

.product-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.product-stock-badge.low {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.product-stock-badge.medium {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.product-stock-badge.good {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.product-actions-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge-modern {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--gradient-success);
    color: white;
}

.badge-danger {
    background: var(--gradient-danger);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.badge-info {
    background: var(--gradient-cool);
    color: white;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

/* ============================================
   STATS CARDS - Dashboard Metrics
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(220, 107, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.stat-card:hover {
    /* Hover efekti kaldırıldı */
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 107, 0, 0.35);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   SEARCH & FILTER
   ============================================ */

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    padding-left: 3rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
    z-index: 10;
    pointer-events: none;
}

/* ============================================
   CUSTOMER PICKER (touch friendly search)
   ============================================ */

.customer-picker {
    width: 100%;
}

.customer-picker-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.customer-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 10;
}

.customer-search-input {
    padding-left: 3rem;
    padding-right: 3rem;
}

.customer-clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.customer-clear-btn:hover {
    background: rgba(220, 107, 0, 0.14);
    color: var(--primary);
}

.customer-results {
    margin-top: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
}

.customer-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-result-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.customer-result-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.customer-action-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.customer-action-btn:hover {
    background: rgba(220, 107, 0, 0.14);
    border-color: rgba(220, 107, 0, 0.22);
    color: var(--primary);
}

.customer-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--danger);
}

.customer-result-item:last-child {
    border-bottom: none;
}

.customer-result-item:hover {
    background: rgba(220, 107, 0, 0.10);
}

.customer-result-title {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.customer-result-meta {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
    line-height: 1.2;
}

.customer-result-badge {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(220, 107, 0, 0.16);
    border: 1px solid rgba(220, 107, 0, 0.25);
    color: var(--primary);
}

.customer-results-empty {
    padding: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================
   CUSTOMER DISPLAY (sales screen)
   ============================================ */

.customer-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.customer-display-input[disabled] {
    opacity: 1;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.10);
    color: var(--gray-900);
    font-weight: 700;
}

.customer-display-actions {
    display: flex;
    gap: 0.75rem;
}

.customer-display-actions .btn-modern {
    flex: 1;
    min-width: 0;
}

/* ============================================
   CUSTOMER PICKER MODAL
   ============================================ */

.customer-picker-modal-search {
    position: relative;
    margin-bottom: 1rem;
}

.customer-picker-modal-search .customer-search-input {
    width: 100%;
}

.customer-picker-modal-search .customer-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 10;
}

/* ============================================
   PRODUCT LIST - Modern Grid
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* PRODUCTS - List View (Yeni) */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-list-item {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.product-list-left {
    flex: 1;
    min-width: 0;
}

.product-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-list-name {
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-list-meta {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.product-list-meta code {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
}

.product-list-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-actions {
    display: flex;
    gap: 0.4rem;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background: rgba(220, 107, 0, 0.14);
    border-color: rgba(220, 107, 0, 0.22);
    color: var(--primary);
}

.product-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--danger);
}

.category-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(220, 107, 0, 0.14);
    border: 1px solid rgba(220, 107, 0, 0.22);
    color: var(--primary);
    white-space: nowrap;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.category-row-name {
    font-weight: 700;
    color: var(--gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-row-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.category-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.category-action-btn:hover {
    background: rgba(220, 107, 0, 0.14);
    border-color: rgba(220, 107, 0, 0.22);
    color: var(--primary);
}

.category-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--danger);
}

@media (max-width: 576px) {
    .product-list-item {
        align-items: flex-start;
        flex-direction: column;
    }
    .product-list-right {
        width: 100%;
        justify-content: space-between;
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 24px rgba(220, 107, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    /* Hover efekti kaldırıldı */
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.product-barcode {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-family: 'Poppins', monospace;
    margin-bottom: 1rem;
}

.product-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 107, 0, 0.12);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-stock.low {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.product-stock.medium {
    background: rgba(255, 128, 0, 0.15);
    color: #cc6600;
    border: 1px solid rgba(255, 128, 0, 0.2);
}

.product-stock.high {
    background: rgba(220, 107, 0, 0.15);
    color: var(--primary);
    border: 1px solid rgba(220, 107, 0, 0.22);
}

/* ============================================
   CART - Shopping Cart
   ============================================ */

.cart-item {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(220, 107, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.quantity-value {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    color: var(--gray-900);
}

.quantity-control-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.quantity-control-inline .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.quantity-control-inline .quantity-value {
    min-width: 25px;
    font-size: 0.9rem;
}

.stock-warning {
    background: rgba(245, 158, 11, 0.08) !important;
}

.stock-badge-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-top: 0.25rem;
}

.stock-badge-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-top: 0.25rem;
}

.stock-badge-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    margin-top: 0.25rem;
}

/* ============================================
   SALE DETAIL MODAL
   ============================================ */

.sale-detail-body {
    padding: 0;
}

.sale-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 107, 0, 0.12);
}

.sale-detail-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.sale-detail-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.sale-detail-info p {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.sale-detail-items {
    margin-bottom: 1.5rem;
}

.sale-detail-items h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.sale-detail-total {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border-top: 3px solid var(--primary);
}

.sale-detail-total hr {
    margin: 1rem 0;
    border-color: rgba(0, 0, 0, 0.1);
}

.cart-total {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 0;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.cart-total-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 600;
}

.cart-total-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.5rem;
}

.cart-total .d-flex {
    font-size: 0.9rem;
    opacity: 0.95;
}

.cart-divider {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
    opacity: 0.5;
}

.discount-section {
    margin-bottom: 1rem;
    text-align: left;
}

.discount-label {
    display: block;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.discount-label i {
    margin-right: 0.4rem;
    font-size: 0.7rem;
}

.discount-inputs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.discount-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-900);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.discount-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.discount-input::placeholder {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.discount-info {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MODAL - Modern Overlay
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   SWEETALERT2 - Always on top of our modals
   ============================================ */

.swal2-container {
    z-index: 6000 !important;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    padding-right: calc(2rem - 8px);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(220, 107, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

/* Custom Scrollbar for Modal - Inside the rounded corners */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 24px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(220, 107, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    background-clip: padding-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 107, 0, 0.5);
    background-clip: padding-box;
}

/* Firefox scrollbar */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 107, 0, 0.3) transparent;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 107, 0, 0.12);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1.25rem;
    color: var(--gray-600);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

/* ============================================
   RESPONSIVE - Mobile First
   ============================================ */

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        padding-left: calc(80px + 1rem);
    }
    
    .card-modern {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-total-value {
        font-size: 2rem;
    }
    
    .table-modern {
        font-size: 0.875rem;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-responsive {
        border-radius: 12px;
    }
    
    .table-responsive .table-modern {
        min-width: 700px;
    }
    
    .product-actions-inline {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .product-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .sidebar-nav {
        width: 90px;
    }
    
    .main-container {
        padding-left: calc(90px + 1rem);
    }
}

@media (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 1rem; }

.w-100 { width: 100%; }

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   INPUT FOCUS ANIMATIONS
   ============================================ */

.form-control-modern:focus {
    animation: inputPulse 0.3s ease-out;
}

@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 107, 0, 0.45);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(220, 107, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-modern.loading {
    position: relative;
    color: transparent;
}

.btn-modern.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 576px) {
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .cart-total {
        padding: 1.5rem;
    }
    
    .cart-total-value {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        padding-right: calc(1.5rem - 8px);
        border-radius: 20px;
    }
    
    .btn-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .sidebar-nav,
    .btn-modern {
        display: none !important;
    }
    
    .main-container {
        padding-left: 1rem;
    }
    
    body {
        background: white;
    }
    
    .card-modern {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

