/* =========================================
   CUSTOM STYLES (Government/Union Aesthetic)
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar for a cleaner look */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* =========================================
   HIERARCHY TREE CHART STYLES
========================================= */
.org-tree {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.org-tree ul {
    padding-top: 20px; 
    position: relative;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.org-tree li {
    float: left; text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
}

/*We will use ::before and ::after to draw the connectors*/
.org-tree li::before, .org-tree li::after{
    content: '';
    position: absolute; top: 0; right: 50%;
    border-top: 2px solid #cbd5e1; /* slate-300 */
    width: 50%; height: 20px;
}
.org-tree li::after{
    right: auto; left: 50%;
    border-left: 2px solid #cbd5e1;
}

/*We need to remove left-right connectors from elements without any siblings*/
.org-tree li:only-child::after, .org-tree li:only-child::before {
    display: none;
}

/*Remove space from the top of single children*/
.org-tree li:only-child{ padding-top: 0;}

/*Remove left connector from first child and right connector from last child*/
.org-tree li:first-child::before, .org-tree li:last-child::after{
    border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.org-tree li:last-child::before{
    border-right: 2px solid #cbd5e1;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}
.org-tree li:first-child::after{
    border-radius: 5px 0 0 0;
    -webkit-border-radius: 5px 0 0 0;
    -moz-border-radius: 5px 0 0 0;
}

/*Time to add downward connectors from parents*/
.org-tree ul ul::before{
    content: '';
    position: absolute; top: 0; left: 50%;
    border-left: 2px solid #cbd5e1;
    width: 0; height: 20px;
}

.org-node {
    display: inline-block;
}
