/* Page Editor Styles */
.page-toolbar {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 240px;
}

.select-active {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 30px !important;
}

#pageSelector {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    height: 42px;
    padding: 0 15px;
    background-color: #fff;
    width: 240px
}

.page-editor-container {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Custom FancyTree Styles */
span.fancytree-expander:before {
    display: none !important;
}

span.fancytree-icon {
    background: none !important;
    font-family: "Font Awesome 5 Free" !important;
}

.fancytree-node {
    padding: 5px 0;
    position: relative;
}

span.fancytree-icon:before {
    content: "\f007";
    font-weight: 900;
    color: #333;
}

.fancytree-has-children > span.fancytree-icon:before {
    color: #0d6efd;
}

/* Kılavuz çizgileri için yeni stiller */
ul.fancytree-container {
    border: none;
    padding: 0;
}

.fancytree-container .fancytree-node {
    position: relative;
}

    .fancytree-container .fancytree-node:before {
        content: "";
        height: 100%;
        border-left: 1px dashed #ccc;
        position: absolute;
        left: -15px;
        top: -5px;
    }

    .fancytree-container .fancytree-node:after {
        content: "";
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-color: #2196F3;
        /* Mavi daire */
        position: absolute;
        left: -23px;
        top: 10px;
        cursor: pointer;
        z-index: 10;
        border: 2px solid #fff;
        /* Beyaz kenarlık */
    }

    .fancytree-container .fancytree-node.toggle-active:after {
        background-color: #2196F3;
        /* Aktif durumda da mavi kalsın */
    }

    .fancytree-container .fancytree-node:last-child:before {
        height: 20px;
    }

.fancytree-container ul {
    margin-left: 15px;
    padding-left: 15px;
}

/* Toggle düğmesi stil */
.toggle-circle {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ccc;
    /* Pasif durumda gri */
    position: absolute;
    left: -23px;
    top: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 10;
    border: 1px solid #bbb;
    /* Hafif kenarlık */
}

    .toggle-circle.active {
        background-color: #3BB77E;
        /* Aktif durumda yeşil */
        border-color: #2a9e68;
        /* Daha koyu bir kenarlık */
    }

    .toggle-circle:hover {
        transform: scale(1.1);
    }

/* Custom jQuery UI Tabs Styles */
.custom-tabs .ui-tabs-nav {
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
    border: none;
    padding: 10px 10px 0 10px;
    display: flex;
    justify-content: flex-start;
}

    .custom-tabs .ui-tabs-nav li {
        margin: 0 5px;
        border-radius: 4px 4px 0 0;
        border: 1px solid #dee2e6;
        background: #f8f9fa;
    }

        .custom-tabs .ui-tabs-nav li:first-child {
            margin-left: 0;
        }

        .custom-tabs .ui-tabs-nav li a {
            padding: 12px 20px;
            color: #495057;
            font-weight: 500;
            display: block;
            text-decoration: none;
        }

        .custom-tabs .ui-tabs-nav li.ui-tabs-active {
            background: #0d6efd;
            border-color: #0d6efd;
        }

            .custom-tabs .ui-tabs-nav li.ui-tabs-active a {
                color: white;
            }

.custom-tabs .ui-tabs-panel {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 20px;
    background: white;
}

/* OrgChart Custom Styles */
#tree-view-content {
    height: 700px;
    width: 100%;
    overflow: auto;
    text-align: center;
}

/* OrgChart Custom Styles */
#binary-tree-content {
    height: 700px;
    width: 100%;
    overflow: auto;
    text-align: center;
}

.orgchart {
    background: #fff;
    display: inline-block;
    margin: 0 auto;
}

    .orgchart .node {
        width: 150px;
    }

        .orgchart .node .title {
            background-color: #E57373;
            color: #fff;
            height: 30px;
            line-height: 30px;
        }

        .orgchart .node .content {
            height: 20px;
            line-height: 20px;
            border: 1px solid #E4E4E4;
            text-align: center;
            background-color: #fff;
            color: #333;
            font-size: 11px;
        }

    .orgchart .lines .downLine {
        background-color: #686868;
    }

    .orgchart .lines .rightLine {
        border-right: 1px solid #686868;
    }

    .orgchart .lines .leftLine {
        border-left: 1px solid #686868;
    }

    .orgchart .lines .topLine {
        border-top: 1px solid #686868;
    }

    /* Ensure the chart is centered */
    .orgchart table {
        margin: 0 auto;
    }

    /* Center the root node */
    .orgchart > table > tr:first-child {
        text-align: center;
    }

    /* Force center alignment for the root node */
    .orgchart tr.lines:first-child td {
        width: 50%;
    }

        .orgchart tr.lines:first-child td.right {
            border-left: 1px solid #686868;
        }

        .orgchart tr.lines:first-child td.left {
            border-right: 1px solid #686868;
        }

    /* Additional centering for root node */
    .orgchart tr:first-child {
        text-align: center;
    }

        .orgchart tr:first-child .node {
            margin: 0 auto !important;
            display: inline-block !important;
        }

/* Fix for OrgChart container */
#tree-view-content .orgchart {
    transform-origin: center top !important;
}
#binary-tree-content .orgchart {
    transform-origin: center top !important;
}

/* Modern Toggle Switch Stili */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .3s;
        border-radius: 50%;
    }

input:checked + .toggle-slider {
    background-color: #10d876;
}

    input:checked + .toggle-slider:before {
        transform: translateX(22px);
    }

/* Network Setup Toggle Ayarları */
.network-setup-list .toggle-switch {
    margin-top: 5px;
    vertical-align: middle;
}

/* Modal-bottom stillerini kaldır */
/* Referans Kademeli modal stil */
#referansKademeliModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #referansKademeliModal.active {
        bottom: 0;
    }

    #referansKademeliModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }

    #referansKademeliModal h4 {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        font-weight: 600;
    }

    #referansKademeliModal .card {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
    }

    #referansKademeliModal .card-title {
        font-size: 0.95rem;
        font-weight: 600;
    }

/* Modal arka planı */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none;
}

#referansKademeliModal + .modal-backdrop {
    display: none;
}

#referansKademeliModal.active + .modal-backdrop {
    display: block;
}

#referansKademeliModal .form-group {
    margin-bottom: 15px;
}

#referansKademeliModal .card {
    margin-bottom: 15px;
}

/* MÜŞTERİ(E-TİCARET) modal stili */
#musteriTicaretModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #musteriTicaretModal.active {
        bottom: 0;
    }

.modal-content .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
}

.modal-content h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

    #musteriTicaretModal .card {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
    }

/* Toggle switch stili */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .toggle-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* KARİYER BONUSU modal stili */
#kariyerBonusuModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #kariyerBonusuModal.active {
        bottom: 0;
    }

    #kariyerBonusuModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }

    #kariyerBonusuModal h4 {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        font-weight: 600;
    }

    #kariyerBonusuModal .card {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
    }

.form-group input {
    height: 45px;
}

/* OrgChart özel CSS stilleri */

/* Hover durumunda ok görünümünü engelleme (her zaman görünsün) */
.orgchart .node:hover .bottomEdge {
    visibility: visible !important;
}

.orgchart .bottomEdge {
    visibility: visible !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: none !important;
    display: block;
    color: #E57373;
    font-size: 18px;
}

/* Aşağı ok simgelerini + ve - olarak değiştir */
.orgchart .oci.oci-menu.parentNodeSymbol:before {
    content: '+' !important;
    font-size: 16px;
    color: #000 !important;
}

.orgchart .node.expanded .oci.oci-menu.parentNodeSymbol:before {
    content: '−' !important;
    font-size: 16px;
    color: #000 !important;
}

/* Simgeleri düğümün altında ortala */
.orgchart .oci.oci-menu.parentNodeSymbol {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #E57373;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

/* Düğüm bağlantı çizgilerini düzenle */
.orgchart .lines .downLine {
    background-color: #aaa;
    margin-left: 0px;
    z-index: 1;
}

/* Düğümleri üstten biraz boşluk bırak */
.orgchart .nodes {
    padding-top: 20px;
}

/* Düğüm stillerini düzenle */
.orgchart .title {
    background-color: #E57373;
    color: #fff;
    height: 30px;
    line-height: 30px;
    border-radius: 0px;
}

.orgchart .content {
    border: 1px solid #E4E4E4;
    height: 20px;
    line-height: 20px;
    background-color: #fff;
    color: #333;
    font-size: 11px;
}

/* Sol, sağ ve üst okları gizle */
.orgchart .leftEdge,
.orgchart .rightEdge,
.orgchart .topEdge {
    display: none;
}

/* AKTİFLİK AYARLARI modal stili */
#aktiflikAyarlariModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 85vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #aktiflikAyarlariModal.active {
        bottom: 0;
    }

    #aktiflikAyarlariModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }

    #aktiflikAyarlariModal h4 {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        font-weight: 600;
    }

     .form-switch {
        padding-left: 0;
    }

     .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
        margin-right: 10px;
    }

       .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

     .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
    }

         .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

     input:checked + .toggle-slider {
        background-color: #2196F3;
    }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

/* 2+1 AKTİFLİK Bottom Sheet Modal */
#ikiArtiBirAktiflikModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #fff;
    max-height: 80vh;
    overflow-y: auto;
    transition: bottom 0.3s ease-in-out;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1051;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 20px;
}

    #ikiArtiBirAktiflikModal.active {
        bottom: 0;
    }

    #ikiArtiBirAktiflikModal .modal-header {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 15px;
        margin-bottom: 15px;
        position: relative;
    }

    #ikiArtiBirAktiflikModal .close-button {
        position: absolute;
        right: 0;
        top: 0;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }


      

  

       

   

/* 4+1 HEDİYE Bottom Sheet Modal */
#dortArtiBirHediyeModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #fff;
    max-height: 80vh;
    overflow-y: auto;
    transition: bottom 0.3s ease-in-out;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1051;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 20px;
}

    #dortArtiBirHediyeModal.active {
        bottom: 0;
    }

    #dortArtiBirHediyeModal .modal-header {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 15px;
        margin-bottom: 15px;
        position: relative;
    }

   

       


/* Disabled toggle switch stili - disabled görünümünü iyileştir */
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.8;
    cursor: not-allowed;
}

.toggle-switch input:disabled:checked + .toggle-slider {
    background-color: #2196F3;
    opacity: 0.8;
}

    .toggle-switch input:disabled:checked + .toggle-slider:before {
        transform: translateX(26px);
    }

/* Bottom-sheet modallardaki toggle switch'lerin disabled özelliğini geçersiz kıl */
#kariyerBonusuModal .toggle-switch input:disabled + .toggle-slider,
#referansKademeliModal .toggle-switch input:disabled + .toggle-slider,
#musteriTicaretModal .toggle-switch input:disabled + .toggle-slider,
#aktiflikAyarlariModal .toggle-switch input:disabled + .toggle-slider,
#ikiArtiBirAktiflikModal .toggle-switch input:disabled + .toggle-slider,
#dortArtiBirHediyeModal .toggle-switch input:disabled + .toggle-slider {
    opacity: 1;
    cursor: pointer;
}

#kariyerBonusuModal .toggle-switch input:disabled:checked + .toggle-slider,
#referansKademeliModal .toggle-switch input:disabled:checked + .toggle-slider,
#musteriTicaretModal .toggle-switch input:disabled:checked + .toggle-slider,
#aktiflikAyarlariModal .toggle-switch input:disabled:checked + .toggle-slider,
#ikiArtiBirAktiflikModal .toggle-switch input:disabled:checked + .toggle-slider,
#dortArtiBirHediyeModal .toggle-switch input:disabled:checked + .toggle-slider {
    background-color: #2196F3;
    opacity: 1;
}

/* MÜŞTERİ(E-TİCARET) modal stili */
#sahaDestekModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #sahaDestekModal.active {
        bottom: 0;
    }

    #sahaDestekModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }

#eslesmeModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #eslesmeModal.active {
        bottom: 0;
    }

    #eslesmeModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }

#derinlikkolModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #derinlikkolModal.active {
        bottom: 0;
    }

    #derinlikkolModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }
    #liderlikModal {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        height: 80vh;
        background: white;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        transition: bottom 0.3s ease-in-out;
        z-index: 1050;
        overflow-y: auto;
        padding: 30px;
        border-radius: 15px 15px 0 0;
    }
    
        #liderlikModal.active {
            bottom: 0;
        }
    
        #liderlikModal .close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            z-index: 1;
        }
#sponsorKariyerBonusuModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #sponsorKariyerBonusuModal.active {
        bottom: 0;
    }

    #sponsorKariyerBonusuModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }
#kariyerHavuzuModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #kariyerHavuzuModal.active {
        bottom: 0;
    }

    #kariyerHavuzuModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }

#kariyerIndirimiModal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

    #kariyerIndirimiModal.active {
        bottom: 0;
    }

    #kariyerIndirimiModal .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }