/* Tablo Yükseklik Sınırlama Stilleri */

/* Ana tablo container'ları için yükseklik sınırlaması */
.table-height-limited {
    max-height: 500px; /* Desktop için maksimum yükseklik */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    border-radius: 8px;
    scroll-behavior: smooth;
}

/* Mobil cihazlar için daha düşük yükseklik */
@media (max-width: 1023px) {
    .table-height-limited {
        max-height: 400px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    .table-height-limited {
        max-height: 350px;
    }
}

/* Scroll bar'ı özelleştir */
.table-height-limited::-webkit-scrollbar {
    width: 6px;
}

.table-height-limited::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.table-height-limited::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.table-height-limited::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

/* Sticky header için */
.table-height-limited table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-height-limited table thead th {
    background: white;
    border-bottom: 2px solid #e2e8f0;
}

/* Fade effect için alt ve üst kısımda gradient */
.table-height-limited::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 5;
}

.table-height-limited::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 5;
}

/* Scroll position göstergesi */
.table-container-wrapper {
    position: relative;
}

.scroll-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 15;
}

.scroll-indicator.show {
    opacity: 1;
}

/* Modern scroll yapısı için animasyonlar */
.table-height-limited {
    scroll-behavior: smooth;
}

/* Tablo içeriği için padding ayarlaması */
.table-height-limited .overflow-x-auto {
    overflow-x: visible;
    padding-bottom: 20px;
}

/* Responsive scroll göstergesi */
@media (max-width: 768px) {
    .scroll-indicator {
        right: 8px;
        padding: 6px 10px;
        font-size: 11px;
    }
} 