/* Modal açıldığında page-header-right-items'ı devre dışı bırak */
 


    .dataTables_length select {
    width: 65px !important;
}


element.style {
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear, .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {

    width: .5rem  !important;
 
    border: 0;
}

.btn-group-sm>.btn, .btn-sm {
    padding: 8px 10px;
    
}
 .modal-open .page-header-right-items {
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
    height: auto !important;
    width: auto !important;
    background-color: transparent !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Modal body padding fix */
body.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

/* Tablo stilleri */
.table-responsive > .table tr td
 {
    vertical-align: middle;
    padding: 5px;
    white-space: nowrap !important;
}


.table-responsive > .table tr th {
    vertical-align: middle;

    white-space: nowrap !important;
}



table.dataTable thead > tr > th {
    white-space: nowrap !important;
}

/* Readonly tablo stili */
.readonly-table {
    opacity: 0.7;
}

/* Disabled checkbox container stili */
.custom-control.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.custom-control.disabled .custom-control-label {
    color: #6c757d;
    cursor: not-allowed;
}

.custom-control.disabled .custom-control-input:disabled + .custom-control-label::before {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Disabled checkbox için tooltip eklemek isterseniz */
.custom-control.disabled {
    position: relative;
}

.custom-control.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: not-allowed;
}
    pointer-events: none;
}

/* Utility classes */
.d-none {
    display: none !important;
}

.bg-ozel {
    background: #ffff00;
    border-color: #dcdc0b;
    color: #000000;
}

/* Modal başlıklar */
.modal-title {
    color: #ffffff !important;
}

#table th {
    color: #ffffff !important;
}

/* Müşteri atama modal stilleri */
#musteriAtaModal .card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

#musteriAtaModal .card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Müşteri listesi öğeleri */
.musteri-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.musteri-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
    transform: translateY(-1px);
}

.musteri-item.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.musteri-item.atanan {
    border-color: #28a745;
    background-color: #e8f5e8;
}

.musteri-item.atanan:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40,167,69,0.15);
}

.musteri-item.atanan.selected {
    border-color: #28a745;
    background-color: #d4edda;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.25);
}

/* Müşteri bilgi gösterimi */
.musteri-info h6 {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.musteri-info small {
    color: #6c757d;
    font-size: 12px;
}

.musteri-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Müşteri listesi select box */
#musteriAtaMusteri {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#musteriAtaMusteri option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

#musteriAtaMusteri option:hover {
    background-color: #f8f9fa;
}

/* Atanan müşteriler tablosu */
#musteriAtananlarTable tbody tr {
    transition: all 0.3s ease;
}

#musteriAtananlarTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Liste konteynerleri */
.list-container {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Badge'ler */
.badge {
    font-size: 11px;
    font-weight: 500;
}

/* Transfer butonları */
.transfer-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.transfer-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar stilleri */
.list-group::-webkit-scrollbar,
.kategori-list::-webkit-scrollbar,
.soru-list::-webkit-scrollbar {
    width: 6px;
}

.list-group::-webkit-scrollbar-track,
.kategori-list::-webkit-scrollbar-track,
.soru-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.list-group::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.list-group::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Kategori ve soru scrollbar'ları için özel renkler */
.kategori-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.soru-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Animasyon sınıfları */
.fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.kategori-item {
    animation: slideInFromLeft 0.3s ease-out;
}

.soru-item {
    animation: slideInFromRight 0.3s ease-out;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Page Header Sticky Styles */
.page-header {
    background: #fff;
    z-index: 1020;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e5e5;
}

.page-header.sticky-top {
    position: sticky;
    top: 0;
}

/* Nav Tabs Sticky */
.customers-nav-tabs.sticky-tabs {
    position: fixed;
    display: flex;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1025;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 !important;
    padding-left: 135px;
    padding-right: 15px;
    padding-top: 15px;
}

.customers-nav-tabs.sticky-tabs .nav-item {
    flex: 1 1 auto;
}

.main-content.tabs-sticky {
    padding-top: 60px;
}

/* Tab step indicators */
.tab-step-indicator {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.tab-step-indicator.incomplete {
    background: #dc3545;
}

/* Activity Timeline Styles */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-item-primary .timeline-marker {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.timeline-item-secondary .timeline-marker {
    background: #6b7280;
    border-color: #6b7280;
    color: white;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #e5e7eb;
}

.timeline-item-primary .timeline-content {
    border-left-color: #3b82f6;
}

.timeline-title {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.timeline-date {
    font-size: 12px;
}

.timeline-body {
    margin-top: 10px;
}

/* Form Modal Geliştirmeleri */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

.step-content {
    min-height: 500px;
}

.step-indicator .badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    animation: bounceIn 0.5s ease-out;
}

/* Kategori ve Soru Listeleri */
.kategori-item, .soru-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    color: #000000;
}

.kategori-item:hover, .soru-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.kategori-item.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.soru-item.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Checkbox Stilleri */
.form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.soru-item .form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.form-check-input:disabled ~ .form-check-label,
.form-check-input[disabled] ~ .form-check-label {
    cursor: default;
    opacity: 0.5;
}

.form-check-input:disabled {
    filter: none;
    opacity: 0.5;
    background: #dddddd;
}

/* Arama Kutuları */
.search-box input {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Selection Summary */
.selection-summary .badge {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Kategori Başlıkları */
.kategori-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid #6366f1;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Soru Grupları */
.soru-group {
    border-left: 3px solid #10b981;
    padding-left: 15px;
    margin-bottom: 15px;
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .step-content {
        min-height: auto;
    }
    
    .col-lg-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    #musteriAtaModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #musteriAtaModal .row {
        flex-direction: column;
    }
    
    #musteriAtaModal .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .transfer-buttons {
        margin-top: 1rem;
    }

    .customers-nav-tabs.sticky-tabs {
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 15px;
        padding-top: 0;
    }

    .modal-open .page-header-right-items {
        display: none !important;
    }
}