/*
 * Servispanel MVC CSS
 * Rules dosyasına göre iOS/Apple tasarım tarzı
 */

/* iOS Color Variables */
:root {
    --ios-blue: #007AFF;
    --ios-purple: #5856D6;
    --ios-green: #34C759;
    --ios-orange: #FF9500;
    --ios-red: #FF3B30;
    --ios-gray: #F2F2F7;
    --ios-light-gray: #F8F8F8;
    --ios-dark-gray: #8E8E93;
    --ios-text: #000000;
    --ios-secondary-text: #8E8E93;
}

/* SF Pro Font */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--ios-gray);
    color: var(--ios-text);
    line-height: 1.6;
}

/* iOS-style buttons */
.btn-ios {
    border-radius: 25px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    font-size: 16px;
}

.btn-ios:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-ios:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-ios.btn-primary {
    background-color: var(--ios-blue);
    color: white;
}

.btn-ios.btn-primary:hover {
    background-color: #0056CC;
}

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

.btn-ios.btn-danger {
    background-color: var(--ios-red);
    color: white;
}

.btn-ios.btn-warning {
    background-color: var(--ios-orange);
    color: white;
}

.btn-ios.btn-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* iOS-style cards */
.card-ios {
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
    background-color: white;
}

.card-ios:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.card-ios .card-header {
    background-color: transparent;
    border-bottom: 1px solid #E5E5EA;
    padding: 20px 24px 16px;
    border-radius: 16px 16px 0 0;
}

.card-ios .card-body {
    padding: 24px;
}

.card-ios .card-title {
    font-weight: 600;
    font-size: 20px;
    color: var(--ios-text);
    margin-bottom: 0;
}

/* iOS-style inputs */
.form-control-ios {
    border-radius: 12px;
    border: 1px solid #E5E5EA;
    padding: 12px 16px;
    transition: all 0.2s ease;
    background-color: white;
    font-size: 16px;
}

.form-control-ios:focus {
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    outline: none;
}

.form-control-ios::placeholder {
    color: var(--ios-secondary-text);
}

/* iOS-style select */
.select-ios {
    border-radius: 12px;
    border: 1px solid #E5E5EA;
    padding: 12px 16px;
    transition: all 0.2s ease;
    background-color: white;
    font-size: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 9L2 5h8z" fill="%23999"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-ios:focus {
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    outline: none;
}

/* iOS-style tables */
.table-ios {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-color: white;
    width: 100%;
}

.table-ios th {
    background-color: var(--ios-light-gray);
    border: none;
    font-weight: 600;
    color: var(--ios-text);
    padding: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-ios td {
    border: none;
    border-bottom: 1px solid #E5E5EA;
    padding: 16px;
    vertical-align: middle;
}

.table-ios tbody tr:last-child td {
    border-bottom: none;
}

.table-ios tbody tr:hover {
    background-color: #F8F9FA;
}

/* iOS-style navigation */
.navbar-ios {
    background-color: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #E5E5EA;
    padding: 8px 0;
}

.navbar-ios .navbar-brand {
    font-weight: 600;
    font-size: 20px;
    color: var(--ios-text);
}

.navbar-ios .nav-link {
    color: var(--ios-blue);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-ios .nav-link:hover {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--ios-blue);
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, white 0%, #F8F9FA 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #E5E5EA;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ios-text);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--ios-secondary-text);
    font-weight: 500;
}

.stat-card.stat-primary .stat-value {
    color: var(--ios-blue);
}

.stat-card.stat-success .stat-value {
    color: var(--ios-green);
}

.stat-card.stat-warning .stat-value {
    color: var(--ios-orange);
}

.stat-card.stat-danger .stat-value {
    color: var(--ios-red);
}

/* Loading spinner */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #E5E5EA;
    border-top: 3px solid var(--ios-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert styles */
.alert-ios {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    font-weight: 500;
}

.alert-ios.alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--ios-green);
}

.alert-ios.alert-danger {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--ios-red);
}

.alert-ios.alert-warning {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--ios-orange);
}

.alert-ios.alert-info {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--ios-blue);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .card-ios {
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .card-ios .card-body {
        padding: 20px;
    }
    
    .btn-ios {
        border-radius: 20px;
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .form-control-ios {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .stat-card {
        padding: 20px;
        text-align: center;
    }
    
    .stat-card .stat-value {
        font-size: 20px;
        line-height: 1.1;
    }
    
    .table-ios {
        font-size: 14px;
    }
    
    .table-ios th,
    .table-ios td {
        padding: 12px 8px;
    }
    
    /* 5 kartlı grid için mobil */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-5 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet için 2 kart yan yana, son kart ortada */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    /* Son kart (genel toplam) tam genişlik */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-5 > div:last-child {
        grid-column: 1 / -1;
        max-width: 60%;
        margin: 0 auto;
    }
}

/* Small screen optimizations */
@media (max-width: 576px) {
    .container-fluid {
        padding: 12px;
    }
    
    .card-ios .card-body {
        padding: 16px;
    }
    
    .btn-ios {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --ios-gray: #1C1C1E;
        --ios-light-gray: #2C2C2E;
        --ios-text: #FFFFFF;
        --ios-secondary-text: #98989D;
    }
    
    body {
        background-color: var(--ios-gray);
        color: var(--ios-text);
    }
    
    .card-ios {
        background-color: var(--ios-light-gray);
    }
    
    .form-control-ios {
        background-color: var(--ios-light-gray);
        color: var(--ios-text);
        border-color: #3A3A3C;
    }
    
    .table-ios {
        background-color: var(--ios-light-gray);
    }
    
    .table-ios th {
        background-color: var(--ios-gray);
    }
}

/* Print styles */
@media print {
    .navbar-ios,
    .btn-ios,
    .no-print {
        display: none !important;
    }
    
    .card-ios {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

/* Ek renk utilityleri */
.bg-cyan-100 { background-color: #cffafe; }
.bg-cyan-200 { background-color: #a5f3fc; }
.text-cyan-600 { color: #0891b2; }
.hover\:border-cyan-300:hover { border-color: #67e8f9; }
.hover\:text-cyan-600:hover { color: #0891b2; }
.hover\:text-cyan-500:hover { color: #06b6d4; }

.bg-pink-100 { background-color: #fce7f3; }
.bg-pink-200 { background-color: #fbcfe8; }
.text-pink-600 { color: #db2777; }
.hover\:border-pink-300:hover { border-color: #f9a8d4; }
.hover\:text-pink-600:hover { color: #db2777; }
.hover\:text-pink-500:hover { color: #ec4899; }

.bg-teal-100 { background-color: #ccfbf1; }
.bg-teal-200 { background-color: #99f6e4; }
.text-teal-600 { color: #0d9488; }
.hover\:border-teal-300:hover { border-color: #5eead4; }
.hover\:text-teal-600:hover { color: #0d9488; }
.hover\:text-teal-500:hover { color: #14b8a6; }

.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-200 { background-color: #a7f3d0; }
.text-emerald-600 { color: #059669; }
.hover\:border-emerald-300:hover { border-color: #6ee7b7; }
.hover\:text-emerald-600:hover { color: #059669; }
.hover\:text-emerald-500:hover { color: #10b981; }

/* Modern Office Cards */
.modern-office-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-office-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.office-header {
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, var(--bg-color, #f9fafb) 0%, rgba(255,255,255,0.8) 100%);
}

.office-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-bg, #3b82f6) 0%, var(--icon-bg-light, #60a5fa) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--icon-shadow, rgba(59, 130, 246, 0.3));
}

.office-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.office-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0 0;
    font-weight: 500;
}

.office-summary {
    text-align: right;
}

.summary-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--summary-color, #059669);
    line-height: 1;
    display: block;
}

.summary-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.products-grid {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.product-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-color, #3b82f6);
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.product-badge {
    background: var(--badge-bg, #dbeafe);
    color: var(--badge-text, #1e40af);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-cost {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cost-value {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.cost-currency {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.product-date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.office-actions {
    padding: 16px 24px 24px 24px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.btn-detail {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Office Color Variants */
.bg-green-50 {
    --bg-color: #f0fdf4;
    --icon-bg: #059669;
    --icon-bg-light: #10b981;
    --icon-shadow: rgba(5, 150, 105, 0.3);
    --summary-color: #059669;
    --accent-color: #059669;
    --accent-light: #10b981;
    --badge-bg: #dcfce7;
    --badge-text: #166534;
}

.bg-blue-50 {
    --bg-color: #eff6ff;
    --icon-bg: #3b82f6;
    --icon-bg-light: #60a5fa;
    --icon-shadow: rgba(59, 130, 246, 0.3);
    --summary-color: #3b82f6;
    --accent-color: #3b82f6;
    --accent-light: #60a5fa;
    --badge-bg: #dbeafe;
    --badge-text: #1e40af;
}

.bg-pink-50 {
    --bg-color: #fdf2f8;
    --icon-bg: #ec4899;
    --icon-bg-light: #f472b6;
    --icon-shadow: rgba(236, 72, 153, 0.3);
    --summary-color: #ec4899;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --badge-bg: #fce7f3;
    --badge-text: #be185d;
}

.bg-cyan-50 {
    --bg-color: #ecfeff;
    --icon-bg: #06b6d4;
    --icon-bg-light: #22d3ee;
    --icon-shadow: rgba(6, 182, 212, 0.3);
    --summary-color: #06b6d4;
    --accent-color: #06b6d4;
    --accent-light: #22d3ee;
    --badge-bg: #cffafe;
    --badge-text: #155e75;
}

/* Mobile responsive için office cards */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }
    
    .office-header {
        padding: 20px 20px 16px 20px;
    }
    
    .office-actions {
        padding: 12px 20px 20px 20px;
    }
    
    .office-icon {
        width: 40px;
        height: 40px;
    }
    
    .office-title {
        font-size: 18px;
    }
    
    .summary-value {
        font-size: 20px;
    }
    
    .product-card {
        padding: 14px;
    }
    
    .product-name {
        font-size: 15px;
    }
}

/* Modern Summary Cards */
.modern-summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.modern-summary-card .summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8));
    color: white;
    box-shadow: 0 6px 20px var(--icon-shadow, rgba(59, 130, 246, 0.4));
    flex-shrink: 0;
}

.modern-summary-card .summary-content {
    flex: 1;
}

.modern-summary-card .summary-number {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
    margin-bottom: 4px;
}

.modern-summary-card .summary-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary Card Variants */
.modern-summary-card.blue {
    --summary-gradient: linear-gradient(90deg, #3b82f6, #1d4ed8);
    --icon-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --icon-shadow: rgba(59, 130, 246, 0.4);
}

.modern-summary-card.green {
    --summary-gradient: linear-gradient(90deg, #059669, #047857);
    --icon-gradient: linear-gradient(135deg, #059669, #047857);
    --icon-shadow: rgba(5, 150, 105, 0.4);
}

.modern-summary-card.orange {
    --summary-gradient: linear-gradient(90deg, #ea580c, #dc2626);
    --icon-gradient: linear-gradient(135deg, #ea580c, #dc2626);
    --icon-shadow: rgba(234, 88, 12, 0.4);
}

/* Mobile responsive için summary cards */
@media (max-width: 768px) {
    .modern-summary-card {
        padding: 20px;
        gap: 16px;
    }
    
    .modern-summary-card .summary-icon {
        width: 48px;
        height: 48px;
    }
    
    .modern-summary-card .summary-number {
        font-size: 24px;
    }
    
    .modern-summary-card .summary-text {
        font-size: 13px;
    }
}

/* iOS Tarzı Modern Filtre Kartı ve Formu */
.modern-filter-card {
    background: #f9fafb;
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.08);
    padding: 0 0 28px 0;
    margin-bottom: 36px;
    border: none;
    width: 100%;
    transition: box-shadow 0.2s;
}
.modern-filter-header {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    padding: 22px 36px 10px 36px;
    border-bottom: 1px solid #f1f1f1;
    background: #f4f6fb;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    letter-spacing: 0.01em;
}
.modern-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 40px;
    padding: 28px 36px 0 36px;
    width: 100%;
}
.modern-filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}
.modern-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}
.modern-filter-label {
    font-size: 15px;
    color: #6e6e73;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
.modern-filter-select {
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 18px;
    background: #f1f4fa;
    color: #222;
    font-weight: 500;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.modern-filter-select:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #007aff33;
}
.modern-filter-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.modern-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 18px;
    padding: 15px 36px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 2px 10px rgba(0,122,255,0.07);
    letter-spacing: 0.01em;
}
.modern-btn-blue {
    background: linear-gradient(90deg, #007aff 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 2px 10px #007aff22;
}
.modern-btn-blue:hover {
    background: linear-gradient(90deg, #2563eb 0%, #007aff 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px #007aff33;
}
.modern-btn-green {
    background: linear-gradient(90deg, #34c759 0%, #30b34a 100%);
    color: #fff;
    box-shadow: 0 2px 10px #34c75922;
}
.modern-btn-green:hover {
    background: linear-gradient(90deg, #30b34a 0%, #34c759 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px #34c75933;
}

.modern-btn-success {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 10px #10b98122;
}
.modern-btn-success:hover {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px #10b98133;
}

.modern-btn-danger {
    background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 2px 10px #ef444422;
}
.modern-btn-danger:hover {
    background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px #ef444433;
}

.modern-btn-warning {
    background: linear-gradient(90deg, #f59e42 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 2px 10px #f59e4222;
}
.modern-btn-warning:hover {
    background: linear-gradient(90deg, #f97316 0%, #f59e42 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px #f59e4233;
}

@media (max-width: 1024px) {
    .modern-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 20px 0;
        padding: 20px 16px 0 16px;
    }
    .modern-filter-fields {
        flex-direction: column;
        gap: 18px;
    }
    .modern-filter-actions {
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start;
    }
}
@media (max-width: 600px) {
    .modern-filter-card {
        padding: 0 0 8px 0;
    }
    .modern-filter-header {
        font-size: 16px;
        padding: 12px 8px 6px 8px;
    }
    .modern-filter-form {
        padding: 8px 4px 0 4px;
        gap: 10px 0;
    }
    .modern-filter-field {
        min-width: 90px;
    }
    .modern-btn {
        padding: 10px 14px;
        font-size: 15px;
    }
    .modern-filter-select {
        font-size: 16px;
        padding: 12px 10px;
    }
}

/* Cari Hareketleri Tablosu Özel Stilleri */
.cari-hareket-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-size: 13px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.cari-hareket-table thead {
    background: #f8f9fa;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.cari-hareket-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.3px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cari-hareket-table .tarih-col { width: 100px; min-width: 100px; }
.cari-hareket-table .saat-col { width: 70px; min-width: 70px; }
.cari-hareket-table .musteri-col { width: 180px; min-width: 160px; }
.cari-hareket-table .semt-col { width: 100px; min-width: 90px; }
.cari-hareket-table .hareket-col { width: 100px; min-width: 100px; }
.cari-hareket-table .aciklama-col { width: 150px; min-width: 130px; }
.cari-hareket-table .stok-col { width: 150px; min-width: 130px; }
.cari-hareket-table .borc-col { width: 100px; min-width: 100px; text-align: right; }
.cari-hareket-table .alacak-col { width: 100px; min-width: 100px; text-align: right; }
.cari-hareket-table .odeme-col { width: 120px; min-width: 110px; }
.cari-hareket-table .taksit-col { width: 60px; min-width: 60px; text-align: center; }
.cari-hareket-table .fatura-col { width: 70px; min-width: 70px; text-align: center; }

.cari-hareket-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.cari-hareket-table tbody tr:hover {
    background-color: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cari-hareket-table tbody tr:last-child {
    border-bottom: none;
}

.cari-hareket-table td {
    padding: 12px 12px;
    vertical-align: middle;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hücre Stilleri */
.tarih-cell {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.saat-cell {
    color: #718096;
    font-size: 13px;
}

.musteri-cell {
    color: #2d3748;
    font-weight: 500;
    font-size: 13px;
}



.semt-badge {
    background: #e6fffa;
    color: #234e52;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.hareket-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hareket-borc {
    background: #fed7d7;
    color: #c53030;
}

.hareket-alacak {
    background: #c6f6d5;
    color: #276749;
}



.aciklama-content {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a5568;
    font-size: 12px;
}

.stok-content {
    font-size: 11px;
    color: #2d3748;
    line-height: 1.3;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount-borc {
    font-weight: 700;
    color: #e53e3e;
    font-size: 14px;
}

.amount-alacak {
    font-weight: 700;
    color: #38a169;
    font-size: 14px;
}

.currency-symbol {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 2px;
}

.odeme-havale-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odeme-text {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

.havale-durum {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 8px;
    text-align: center;
}

.havale-bekliyor {
    background: #fef3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.havale-onaylandı {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.fatura-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.fatura-evet {
    background: #fed7d7;
    color: #c53030;
}

.fatura-hayir {
    background: #c6f6d5;
    color: #276749;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: #cbd5e0;
}

.empty-text {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.empty-subtext {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* Badge Stilleri */
.badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background: #bee3f8;
    color: #2c5282;
}

/* Flexbox Yardımcı Sınıfları */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mb-0 {
    margin-bottom: 0;
}

.text-muted {
    color: #6c757d !important;
}

/* Responsive Tasarım */
@media (max-width: 1600px) {
    .cari-hareket-table {
        font-size: 9px;
        min-width: 750px;
    }
    
    .cari-hareket-table th {
        padding: 4px 2px;
        font-size: 8px;
    }
    
    .cari-hareket-table td {
        padding: 4px 2px;
    }
    
    .aciklama-content {
        max-width: 60px;
    }
    
    .stok-content {
        max-width: 50px;
    }
}

@media (max-width: 1400px) {
    .cari-hareket-table {
        font-size: 8px;
        min-width: 700px;
    }
    
    .cari-hareket-table th {
        padding: 3px 1px;
        font-size: 7px;
    }
    
    .cari-hareket-table td {
        padding: 3px 1px;
    }
    
    .aciklama-content {
        max-width: 40px;
    }
    
    .stok-content {
        max-width: 30px;
    }
    
    .hareket-badge,
    .fatura-badge {
        font-size: 6px;
        padding: 1px 2px;
    }
    
    .amount-borc,
    .amount-alacak {
        font-size: 8px;
    }
    
    /* Bazı sütunları gizle */
    .taksit-col {
        display: none;
    }
}

@media (max-width: 1200px) {
    .cari-hareket-table {
        font-size: 9px;
        min-width: 800px;
    }
    
    .cari-hareket-table th {
        padding: 4px 2px;
        font-size: 8px;
    }
    
    .cari-hareket-table td {
        padding: 4px 2px;
    }
    
    .aciklama-content {
        max-width: 40px;
    }
    
    .stok-content {
        max-width: 40px;
    }
    
    /* Daha fazla sütun gizle */
    .semt-col,
    .aciklama-col {
        display: none;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cari-hareket-table {
        min-width: 600px;
        font-size: 8px;
    }
    
    .cari-hareket-table th {
        padding: 3px 1px;
        font-size: 7px;
    }
    
    .cari-hareket-table td {
        padding: 3px 1px;
    }
    
    /* Sadece temel sütunları göster */
    .stok-col,
    .fatura-col {
        display: none;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* iOS Tarzı Sayfalama */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pagination-ios {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.pagination-ios .page-item {
    display: flex;
}

.pagination-ios .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination-ios .page-link:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination-ios .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-ios .page-item.active .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Sayfalama Bilgisi */
.pagination-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
}

.pagination-info .text-muted {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
    background: transparent;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background: #28a745;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Responsive Sayfalama */
@media (max-width: 768px) {
    .pagination-ios {
        gap: 4px;
    }
    
    .pagination-ios .page-link {
        min-width: 32px;
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .pagination-info .d-flex {
        flex-direction: column;
        gap: 8px;
    }
}