* {
    /* font-family: Arial, Helvetica, sans-serif; */
}


p {
    /* font-family: Arial, Helvetica, sans-serif; */
    font-weight: 400;
}

#tree-card {
    height: 100vh;
    /* max-height: 1000px; */
    overflow: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    flex-shrink: 0;
}

#content-card {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 20px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: auto;
}




.tree-item {
    list-style: none;
}

.tree-content {
    cursor: pointer;
    display: flex;
    padding: 4px 0;
}

    .tree-content:hover {
        background: #f0f0f0;
    }
/* Add these rules */
.content-container {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    min-width: 300px; /* Minimum width to prevent collapsing too much */
    max-width: 100%; /* Maximum width to prevent overflow */
    width: 100%; /* Ensure default width behavior */
}

#content-header {
    flex-shrink: 0; /* Keep header fixed */
}

#content-body {
    flex-grow: 1;
    overflow: auto;
    position: relative;
}

.content-main::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}


.content-main::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.content-main::-webkit-scrollbar-thumb {
    background: var(--bh-primary-bg-color);
    border-radius: 10px;
}

    .content-main::-webkit-scrollbar-thumb:hover {
        /* background: var(--bh-button-hover-bg-color); */
    }



.fixed-columns-scroller {
    height: calc(100% - 20px); /* Account for padding */
    overflow-x: auto;
}

.expander {
    width: 20px;
    display: inline-block;
}

.icon1 {
    margin: 3px;
    width: 30px;
    height: 30px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #000;
}

    .icon1.mssql-systems {
        background-image: url('https://img.icons8.com/?size=512&id=laYYF3dV0Iew&format=png');
        background-size: cover;
        width: 28px;
        height: 28px;
    }

    .icon1.postgresql-systems {
        background-image: url('https://wiki.postgresql.org/images/6/61/PostgreSQL_Logo.1_Color_Black.png');
        width: 21px;
        height: 21px;
    }


    .icon1.file-systems {
        background-image: url('https://www.iconpacks.net/icons/2/free-file-icon-1453-thumb.png');
        width: 23px;
        height: 23px;
    }

    .icon1.mongodb-systems {
        background-image: url('https://cdn.iconscout.com/icon/free/png-256/free-mongodb-logo-icon-download-in-svg-png-gif-file-formats--technology-social-media-company-vol-5-pack-logos-icons-3146884.png');
        width: 23px;
        height: 23px;
    }

    .icon1.kafka-systems {
        background-image: url('https://svn.apache.org/repos/asf/kafka/site/logos/originals/png/ICON%20-%20Black%20on%20Transparent.png');
        width: 23px;
        height: 23px;
    }

.count {
    margin-left: 8px;
    color: #666;
    font-size: 0.9em;
}

.children {
    padding-left: 20px;
    display: none;
}

.expanded1 > .children {
    display: block;
}

/* Add these to your CSS */
.icon1.datashape-system {
    background-image: url(https://static.thenounproject.com/png/1473724-200.png);
    width: 21px;
    height: 21px;
}

.icon1.hierarchy {
    background-image: url(https://static.vecteezy.com/system/resources/previews/032/415/574/non_2x/hierarchy-structure-outline-icon-hierarchy-icons-collection-hierarchy-silhouette-png.png);
    width: 21px;
    height: 21px;
}

.icon1.flat-structure {
    background-image: url(https://cdn-icons-png.flaticon.com/512/1387/1387599.png);
    width: 21px;
    height: 21px;
}

.icon1.invoice-icon {
    background-image: url(https://cdn.iconscout.com/icon/free/png-256/free-invoice-icon-download-in-svg-png-gif-file-formats--bill-receipt-shopping-pack-e-commerce-icons-1323850.png?f=webp&w=256);
    width: 21px;
    height: 21px;
}

.icon1.invoice-detail {
    background-image: url(https://cdn.iconscout.com/icon/free/png-256/free-invoice-icon-download-in-svg-png-gif-file-formats--bill-receipt-shopping-pack-e-commerce-icons-1323850.png?f=webp&w=256);
    width: 21px;
    height: 21px
}

.icon1.payment-icon {
    background-image: url(https://png.pngtree.com/png-vector/20230407/ourmid/pngtree-online-payment-line-icon-vector-png-image_6692959.png);
    width: 21px;
    height: 21px;
}

.icon1.filefeed-icon {
    background-image: url(https://cdn-icons-png.freepik.com/512/10819/10819277.png);
    width: 21px;
    height: 21px;
}

.icon1.table::before {
    font-family: 'FontAwesome';
    content: '\f0ce';
    color: #525151;
    font-size: 1.2em;
}

.icon1.view {
    position: relative;
    display: inline-block;
}

    .icon1.view::before {
        font-family: 'FontAwesome';
        content: '\f022'; /* Table icon */
        color: #303030;
        font-size: 1.2em;
    }


.icon1.file::before {
    font-family: 'FontAwesome';
    content: '\f15b';
    color: #525151;
    font-size: 1.2em;
}

.icon1.collection::before {
    font-family: 'FontAwesome';
    content: '\f187';
    color: #525151;
    font-size: 1.2em;
}

.icon1.stream::before {
    font-family: 'FontAwesome';
    content: '\f0e8';
    color: #525151;
    font-size: 1.2em;
}

.icon1.column::before {
    font-family: 'FontAwesome';
    content: '\f0db';
    color: #525151;
    font-size: 1.2em;
}

.icon1.database::before {
    font-family: 'FontAwesome';
    content: '\f1c0';
    color: #525151;
    font-size: 1.2em;
}

.icon1.datashape::before {
    font-family: 'FontAwesome';
    content: '\f1b2';
    color: #525151;
    font-size: 1.2em;
}

.icon1.entity::before {
    font-family: 'FontAwesome';
    content: '\f0c8';
    color: #525151;
    font-size: 1.2em;
}

.icon1.hierarchy::before {
    font-family: 'FontAwesome';
    content: '\f0e8';
    color: #525151;
    font-size: 1.2em;
}

.icon1.datashape::before {
    background-image: url('https://cdn-icons-png.flaticon.com/512/162/162893.png');
    content: '';
    display: inline-block;
    width: 21px;
    height: 21px;
    background-size: contain;
}

.icon1.entity::before {
    background-image: url('https://static.thenounproject.com/png/511540-200.png');
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-size: contain;
}

.icon1.hierarchy::before {
    background-image: url('your-image-link-here');
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
}

/* Content card styling */
#content-header {
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #213e71;
}

.data-grid {
    width: 100%;
    border-collapse: collapse;
}

    .data-grid th {
        /* background-color: #f0f0f0; */
        text-align: left;
        padding: 8px;
        border: 1px solid #ddd;
    }

    .data-grid td {
        padding: 12.5px;
        border: 1px solid #ddd;
    }

    .data-grid tr:nth-child(even) {
        /* background-color: #f9f9f9; */
    }

    .data-grid thead {
        position: sticky;
        top: 0;
        z-index: 10;
    }

.property {
    font-weight: bold;
    color: #444;
    padding-right: 10px;
}

.value {
    color: #666;
}

.properties-list {
    list-style: none;
    padding: 0;
}

    .properties-list li {
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }



#dataset-selector {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#dataset-choice {
    width: 100%;
    padding: 8px;
    border: 1px solid #213E71;
    border-radius: 4px;
    background-color: white;
    color: #213E71;
    font-weight: bold;
}

.icon-container button {
    background-color: #dcdcdc; /* Light blue background */
    border: none;
    transition: transform 0.2s ease-in-out;
}

    .icon-container button:hover {
        transform: scale(1.1);
        background-color: #335ca1; /* Darker blue on hover */
    }

    .icon-container button i {
        color: #000;
    }

    .icon-container button:hover i {
        color: white;
    }



.property-checkbox {
    margin-left: 8px;
    vertical-align: middle;
}

.tree-container::-webkit-scrollbar,
.content-container::-webkit-scrollbar,
.fixed-columns-scroller::-webkit-scrollbar {
    display: none;
}

.tree-container,
.content-container,
.fixed-columns-scroller {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Resizable divider adjustments */
.resizable-divider {
    right: 0; /* Adjusted position */
    background: rgba(33, 62, 113, 0.2);
    width: 3px;
    transition: background 0.2s;
}

    .resizable-divider:hover {
        background: #335ca1;
    }

/* Tree container adjustments */
.tree-container {
    overflow-x: hidden;
    resize: horizontal;
    /* min-width: 250px; */
    max-width: 600px;
    padding-right: 0; /* Remove padding for resizer */
}

/* Update existing styles to maintain layout */
.card-body {
    position: relative;
    overflow: hidden;
}

.tree-container, .content-container {
    height: calc(100vh - 1px);
}

/* Keep all headers stable */
.card-header {
    position: sticky;
    top: -0.5px;
    background: white;
    z-index: 1000;
    /* padding: 1rem; */
    margin: 0;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.05); */
}


#content-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    padding: 1rem;
    margin: 10px;
    /* border-bottom: 1px solid #ccc; */
}
/* First three columns sticky */
.data-grid th:nth-child(1),
.data-grid th:nth-child(2),
.data-grid th:nth-child(3),
.data-grid td:nth-child(1),
.data-grid td:nth-child(2),
.data-grid td:nth-child(3) {
    position: -webkit-sticky;
    position: sticky;
    background-color: white;
    z-index: 1;
}

/* First column */
.data-grid th:nth-child(1),
.data-grid td:nth-child(1) {
    left: 0;
    z-index: 2;
    min-width: 180px;
    max-width: 200px;
}

/* Second column */
.data-grid th:nth-child(2),
.data-grid td:nth-child(2) {
    left: 170px; /* Reduced from 150px */
    z-index: 2;
    min-width: 150px;
    max-width: 250px;
}

/* Third column */
.data-grid th:nth-child(3),
.data-grid td:nth-child(3) {
    left: 340px; /* Reduced from 350px (120 + 180) */
    z-index: 2;
    min-width: 150px;
    max-width: 250px;
}

/* Header styling */
.data-grid th:nth-child(1),
.data-grid th:nth-child(2),
.data-grid th:nth-child(3) {
    background-color: #F5F4F4;
    z-index: 3;
}

/* Alternating rows */
.data-grid tr:nth-child(even) td:nth-child(1),
.data-grid tr:nth-child(even) td:nth-child(2),
.data-grid tr:nth-child(even) td:nth-child(3) {
    /* background-color: #f9f9f9; */
}

/* Scroll container */
.scrollable-table {
    overflow-x: auto;
    max-width: calc(100vw - 60px); /* Accounts for padding/margins */
    min-width: 800px; /* Reduced minimum width */
}

/* Table sizing */
.data-grid {
    min-width: 1000px; /* Reduced from 1200px */
    max-width: 1400px;
    width: auto;
}

#dataDropdown {
    width: 340px;
    height: 37px;
    font-size: 14px;
}

/* Add this new CSS class for scrolling */
.fixed-columns-scroller {
    overflow-x: auto;
    max-width: calc(100vw - 60px);
    min-width: 800px;
    position: relative;
    background: linear-gradient(to right, white 550px, transparent 550px);
    background-attachment: local;
}

    .fixed-columns-scroller::-webkit-scrollbar {
        height: 8px;
        background: #f1f1f1;
    }

    .fixed-columns-scroller::-webkit-scrollbar-thumb {
        background: #213E71;
        border-radius: 4px;
    }

/* Keep existing sticky column styles, add shadow */
.data-grid th:nth-child(3),
.data-grid td:nth-child(3) {
    box-shadow: 2px 0 3px -1px rgba(0,0,0,0.1);
}
/* new sidebar functionality */
.item-checkbox, .parent-checkbox {
    width: 20px;
    height: 20px;
    min-width: 19px;
    min-height: 19px;
    vertical-align: middle;
    margin-right: 12px;
    margin-top: 4px;
    cursor: pointer;
    border-radius: 2px;
    accent-color: #213E71; /* Modern browser support for color */
}

    /* For better cross-browser consistency */
    .item-checkbox[type="checkbox"],
    .parent-checkbox[type="checkbox"] {
        /* Increase scale factor */
        /* margin: 8px 12px 8px 4px; */
    }

.checkbox-placeholder {
    width: 20px !important;
    height: 20px;
    min-width: 24px;
    min-height: 24px;
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
}
/* Rename #sidebarToggleBtn to a more unique name */
/* Style for the arrow icon */
#dataSidebarToggleBtn {
    position: absolute;
    top: 94%; /* Position vertically centered */
    /* left: 10px; */
    transform: translateY(-19%) translateX(-50%);
    z-index: 1000;
    /* padding: 8px 6px; */
    background: #213E71;
    border: none;
    border-radius: 0 4px 4px 0; /* Rounded on right side only */
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 35px;
    /* width: 20px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

/* Rotate arrow when sidebar is collapsed */
.tree-container.collapsed ~ #dataSidebarToggleBtn i,
.tree-container.collapsed + .content-container #dataSidebarToggleBtn i {
    transform: rotate(180deg);
}

/* Add transition for smooth rotation */
#dataSidebarToggleBtn i {
    transition: transform 0.3s ease;
}

#dataSidebarToggleBtn:hover {
    background: #335ca1;
}

/* Modify the existing .tree-container.collapsed rule */
.tree-container.collapsed {
    transform: translateX(-100%);
    position: absolute;
    z-index: -1; /* Ensures it goes behind other elements when collapsed */
    visibility: hidden; /* Helps prevent any potential interaction */
}

/* Add a transition for the content container */
.content-container {
    transition: flex 0.3s ease, width 0.3s ease;
}

/* Optional: Add a class for when the tree is collapsed to control content behavior */
.content-full-width {
    width: 100% !important;
    flex: 1 1 100% !important;
    margin-left: 0 !important;
}

/* Unique Control Panel Button Styles */
.data-panel-controls__btn {
    background: #213E71;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #1a3158;
    white-space: nowrap;
    flex-shrink: 0;
}

    .data-panel-controls__btn:hover {
        background: #335ca1;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        color: white;
    }

.data-panel-controls__search {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* width: 150px; */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .data-panel-controls__search:focus {
        border-color: #213E71;
        outline: none;
        box-shadow: 0 0 5px rgba(33, 62, 113, 0.3);
    }

.data-panel-controls__container {
    display: flex;
    align-items: center;
    gap: 12px;
    /* overflow-x: auto; */
    padding: 2px 2px;
    width: 100%;
}


    .data-panel-controls__container::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }


    .data-panel-controls__container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .data-panel-controls__container::-webkit-scrollbar-thumb {
        background: var(--bh-primary-bg-color);
        border-radius: 10px;
    }

.content-main::-webkit-scrollbar-thumb:hover {
    /* background: var(--bh-button-hover-bg-color); */
}



.properties-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px auto;
    padding: 20px 20px 20px 20px; /* Added top padding for close button */
    border: 1px solid #888;
    /* width: 600px;
  max-height: 80vh;  */
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-content1 {
    background-color: #fefefe;
    margin: 20px auto;
    padding: 20px 20px 20px 20px; /* Added top padding for close button */
    border: 1px solid #888;
    width: 50%;
    /* max-height: 80vh;  */
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.columns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .columns-table th, .columns-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: center;
    }

    .columns-table th {
        background-color: #f2f2f2;
        color: #213E71;
        font-weight: 600;
    }

    .columns-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .columns-table tr:hover {
        background-color: #f1f1f1;
    }

.close-btn {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1; /* Keep above content */
}


.modal-footer1 {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.close-btn1 {
    background-color: #213E71;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

    .close-btn1:hover {
        background-color: #335ca1;
    }

h4 {
    font-weight: bold;
    color: #3e4676;
    font-size: 18px;
    font-family: Arial, sans-serif
}

.column-item {
    display: block;
    margin: 10px 0;
    padding: 5px;
}

/* Add smooth scrolling behavior */
#columnList {
    max-height: 60vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

    /* Scrollbar styling */
    #columnList::-webkit-scrollbar {
        width: 8px;
    }

    #columnList::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    #columnList::-webkit-scrollbar-thumb {
        background: var(--bh-primary-bg-color);
        border-radius: 4px;
    }

        #columnList::-webkit-scrollbar-thumb:hover {
            /* background: var(--bh-button-hover-bg-color); */
        }

/* Larger checkboxes for both modals */
#propertiesModal input[type="checkbox"],
#columnsModal input[type="checkbox"] {
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    accent-color: #213E71;
    transform: scale(1.3);
    margin-right: 8px;
}




.custom-close-btn {
    background: none;
    border: none;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: auto;
}

    .custom-close-btn:hover {
        opacity: 1;
    }



#tree-root {
    height: 700px; /* Set a fixed height */
    overflow-y: auto; /* Enable vertical scrolling */

    padding: 10px; /* Optional: Add some padding */
}

    #tree-root::-webkit-scrollbar {
        width: 5px; /* Width of the scrollbar */
    }

    #tree-root::-webkit-scrollbar-track {
        background: #f1f1f1; /* Track color */
        border-radius: 4px;
    }

    #tree-root::-webkit-scrollbar-thumb {
        background: #213E71; /* Thumb color */
        border-radius: 4px;
    }
