* {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 400;
}

a,
button {
    cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #000;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

select {
    background-image: url("/assets/images/select-arrow.svg");
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 20px !important;
    padding-right: 16px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.blue-grad-bg {
    background: linear-gradient(96deg, #2477f1 7.62%, #0046ad 93.65%);
}

.light-blue {
    background: linear-gradient(86deg, #fff 0%, #d2e4ff 100%);
}

.menu-shadow {
    box-shadow: 0 10px 20px 0 rgba(36, 119, 241, 0.4);
}

.welcom-shadow {
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
}

.wb-grad {
    background: linear-gradient(88deg, #9ac3ff 0.18%, #2477f1 99.82%);
}

.iziToast {
    z-index: 9999 !important;
}

.dataTables_filter {
    position: absolute;
    top: 15px;
    right: 24px;
}

.dataTables_wrapper {
    position: unset !important;
    overflow: auto;
}

.dataTables_filter label,
.dataTables_length label {
    position: relative !important;
    z-index: 2 !important;
    font-size: 0px !important;
}

.dataTables_length {
    position: absolute;
    top: 15px;
    right: 344px;
}

.dataTables_length label::after {
    content: "Showing";
    position: absolute;
    left: -76px;
    top: -19px;

    color: #252525;
    font-size: 16px;
    font-weight: 600;
}

.dataTables_length select {
    font-size: 16px !important;
    font-weight: 600;
    border-radius: 12px !important;
    border: 1px solid #cdcdcd !important;
    background: rgba(241, 241, 241, 0.7) !important;
    outline: none;
    padding: 12px !important;
    line-height: 100%;
    height: 48px;
    cursor: pointer;
    width: 64px;
    background-image: url("/assets/images/select-arrow.svg") !important;
    background-position: right 0.35rem center !important;
    background-repeat: no-repeat !important;
    background-size: 20px !important;
    padding-right: 6px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.dataTables_filter input {
    border-radius: 12px !important;
    border: 1px solid #cdcdcd !important;
    background: rgba(241, 241, 241, 0.7) !important;
    outline: none !important;
    font-size: 16px !important;
    padding: 12px !important;
    line-height: 100%;
    height: 48px;
    font-weight: 600;
    width: 300px !important;
}

.dataTables_info,
.dataTables_paginate,
.paginate_button {
    color: #252525 !important;
    font-size: 16px;
    font-weight: 700;
    opacity: 1 !important;
    cursor: pointer !important;
}

table.dataTable thead .sorting {
    background-image: url("/assets/images/filterarrow.svg") !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-radius: 12px !important;
    border: 1px solid #cdcdcd !important;
    background: #fff !important;
    padding: 12px 20px !important;
    color: #252525 !important;
}

table {
    width: 100%;
    margin: 0 auto;
    clear: both;
    border-collapse: separate;
    border-spacing: 0;
}

/* 
.dataTables_filter label::after {
    content: "";
    position: absolute;
    background-image: url(/assets/images/serch-icon.svg);
    right: 12px;
   top: 50%;
   transform: translateY(-50%);
    width: 24px;
    height: 24px;
    z-index: 1;
    

}
 */

@media (max-width: 1440px) {
    aside {
        display: none;
        position: fixed;
        left: -365px;
        top: 0;
        transition: all 3s ease;
        z-index: 9999;
    }
}

@media (max-width: 768px) {
    .dataTables_filter input {
        width: 184px !important;
    }

    .dataTables_length {
        right: 216px;
    }

    .dataTables_wrapper .dataTables_filter {
        margin-top: 0 !important;
    }
}

@media (max-width: 440px) {
    .dataTables_filter input {
        height: 40px;
        padding: 8px !important;
    }

    .dataTables_filter input {
        width: 128px !important;
    }

    .dataTables_length {
        right: 160px;
    }

    .dataTables_length select {
        height: 40px;
        padding: 8px !important;
        width: 60px;
    }

    .dataTables_length label::after {
        font-size: 14px;
        left: -68px;
    }
}

canvas {
    width: 400px !important;
    height: 400px !important;
}

.menu_hover:hover svg path {
    stroke: var(--color-Primary-blue);
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border-radius: 50%;
    background: linear-gradient(0deg,
            rgb(0 0 0/50%) 30%,
            #0000 0 70%,
            rgb(0 0 0/100%) 0) 50%/8% 100%,
        linear-gradient(90deg, rgb(0 0 0/25%) 30%, #0000 0 70%, rgb(0 0 0/75%) 0) 50%/100% 8%;
    background-repeat: no-repeat;
    animation: l23 1s infinite steps(12);
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    border-radius: 50%;
    background: inherit;
    opacity: 0.915;
    transform: rotate(30deg);
}

.loader::after {
    opacity: 0.83;
    transform: rotate(60deg);
}

@keyframes l23 {
    100% {
        transform: rotate(1turn);
    }
}

.edit-buttom {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.8);
    opacity: 0;
}

.edit-buttom.show {
    transform: scale(1);
    opacity: 1;
}

.edit-buttom.hidden {
    display: none !important;
}

@keyframes l23 {
    100% {
        transform: rotate(1turn);
    }
}

.menu-sv.active svg path {
    stroke: white;
}

.genealogy-body {
    white-space: nowrap;
    padding-top: 10px !important;
    text-align: center;
    height: 100%;
    width: 100%;
}

.genealogy-scroll {
    white-space: nowrap;

    /* padding: 50px; */
    /* min-height: 500px; */
    /* padding-top: 10px; */
    text-align: center;
}

.genealogy-tree {
    display: inline-block;
}

.genealogy-tree ul {
    padding-top: 44px;
    position: relative;
    padding-left: 0px;
    display: flex;
    justify-content: center;
}

.genealogy-tree li:only-child {
    padding-top: 24px;
}

.genealogy-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 43px 0px 0 0px;
}

li {
    list-style: none;
}

.genealogy-tree li a {
    text-decoration: none;
    color: #666;
    font-family: arial, verdana, tahoma;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.member-view-box {
    padding: 16px;
    text-align: center;
    /* border-radius: 4px; */
    position: relative;
}

/* .border_shadow::after {
  content: "";
  position: absolute;
  top: 0;
  height: 4px;
  width: 100%;
  background-color: #1E74FD;
  border-radius: 12px;
}  */

.member-image {
    width: 130px;
}

.member-image .tree_user.active {
    background-color: #34a853;
}

.member-image .tree_user {
    padding: 2px;
    border-radius: 100%;
    background-color: #ff7c75;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.member-image img {
    width: 100%;
    border-radius: 100%;
    background-color: transparent;
    z-index: 1;
}

img,
svg {
    vertical-align: middle;
}

.align-items-center {
    align-items: center !important;
}

.member-details h3 {
    font-size: 12px;
}

.genealogy-tree ul ul.active::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    border-left: 2px solid #98bff8;
    width: 0;
    height: 56px;
}

.genealogy-tree li::before,
.genealogy-tree li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #98bff8;
    width: 50%;
    height: 18px;
}

.genealogy-tree li:first-child::before,
.genealogy-tree li:last-child::after {
    border: 0 none;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #98bff8;
}

.genealogy-tree li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #98bff8;
    width: 50%;
    height: 18px;
}

.genealogy-tree li:last-child::before {
    border-right: 2px solid #98bff8;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}

.genealogy-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;
}

.member-view-box:hover .tool_tip {
    visibility: visible;
}

.tool_tip {
    visibility: hidden;
    position: absolute;
    top: 216%;
    left: 50%;
    z-index: 99;
    transform: translateX(-50%);
    transition: all ease-in 0.1s;
    background: #FFF;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.10);
}

.tool_tip .table tbody tr :first-child {
    text-align: left;

    font-weight: bold;
    color: #111827;
}

.tool_tip .table tbody td {
    padding: 8px 10px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    background-color: transparent;
}

.tool_tip .table tbody tr :last-child {
    text-align: left;
}

.tool_tip::after {
    content: "";
    height: 6px;
    width: 15px;
    height: 15px;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    background-color: #fff;
    z-index: -1;
}

.light-mode .tool_tip::after {
    background-color: #fff;
    border-top: 1px;
    border-left: 1px;
    border-bottom: 0;
    border-right: 0;
    border-style: solid;
    border-color: #f5f5f5;
    height: 10px;
    width: 10px;
    top: -6px;
}

.genealogy-scroll::-webkit-scrollbar {
    width: 5px;
    height: 8px;
}

.genealogy-scroll::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
    transition: 0.5s;
}

.genealogy-scroll::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #e4e4e4;
}

.volume_count {
    display: inline-block;
    display: inline-block;
    margin-bottom: 0px;
    border-radius: 5px;
    padding: 2px 6px;
}

.flex-1 {
    flex: 1 0 0;
}

.tree,
.tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tree ul {
    margin-left: 12px;
    position: relative;
}

.tree ul:before {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background-color: #000;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

/* .main_tree :first-child> :not(:last-child) ul:before {
  height: 230%;
} */

.tree li {
    margin: 0;
    padding: 0.3rem 1em;
    line-height: 2em;
    font-size: 14px;
    color: #1a1d1f;
    font-weight: 500;
    position: relative;
}

.tree ul li:before {
    content: "";
    display: block;
    width: 14px;
    height: 0;
    border-top: 1px solid;
    margin-top: -1px;
    position: absolute;
    top: 19px;
    left: 0;
}

.tree>li {
    padding-left: 8px !important;
}

.tree li a {
    text-decoration: none;
    color: var(--white);
    position: relative;
}

.tree_color {
    height: 26px;
    width: 26px;
    border-radius: 50%;
    /* background-color: #20a49c; */
    background-color: #2477f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex: 0 0 auto;
}

.tree_color span {
    font-size: 20px !important;
}

.tree-member .tool_tip_h {
    left: 150px;
}

.tool_tip_h {
    max-width: 270px;
    min-width: 270px;
    width: 100%;
    display: none;
    background-color: #d1d6f5;
    border-radius: 8px;
    border: 1px dashed #b1b6de;
    position: absolute;
    top: 50%;
    left: 145px;
    transform: translatey(-50%);
    z-index: 99;
}

.tool_tip_h div span {
    color: #000 !important;
    font-size: 12px;
}

.tree-member:hover .tool_tip_h {
    display: block;
}

.tool_tip_h::after {
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    border-right: 10px solid #d1d6f5;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    /* background-color: #000; */
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.pluse_user {
    line-height: 12px;
    height: 17px;
    font-size: 22px;
    color: #fff;
}

.tree_card::-webkit-scrollbar {
    height: 8px;
}

.tree_card::-webkit-scrollbar-thumb,
.tree_card::-webkit-scrollbar-thumb:hover {
    background: #6c7be5;
}


.sidebar {
    transition: all 0.5s ease;
    width: 360px !important;
}

/* Only apply collapse styles above 1440px */
@media (min-width: 1440px) {
    .sidebar.collapsed {
        width: 110px !important;
    }

    .sidebar.collapsed .min-dash-v {
        display: none !important;
    }

    .sidebar.collapsed:hover {
        width: 360px !important;
    }

    .sidebar.collapsed:hover .min-dash-v {
        display: flex !important;
        text-wrap: nowrap;
    }

    .sidebar.collapsed .dropdown-container {
        display: none !important;
    }

    .sidebar.collapsed:hover .dropdown-container {
        display: block !important;
    }

    .sidebar.collapsed .dropdown-btn .arrow {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar.collapsed:hover .dropdown-btn .arrow {
        opacity: 1;
    }
}

/* Dropdown styles - always visible below 1440px */
.dropdown-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Menu items styling */
.menu-sv {
    transition: all 0.3s ease;
}

.sidebar.collapsed .menu-sv {
    padding: 1.25rem 0.5rem;
    justify-content: center;
}

.sidebar.collapsed:hover .menu-sv {
    padding: 1.25rem 1rem;
    justify-content: flex-start;
}

/* Menu active state */
.menu-sv.active,
.dropdown-btn.active {
    background-color: #2477F1;
    color: white;
    border-radius: 12px;
}

.menu-sv.active svg path,
.dropdown-btn.active svg path {
    stroke: white;
}

#sidebarToggle {
    color: #2477F1;
    transition: transform 0.3s ease;
}

.sidebar.collapsed~.main-content #sidebarToggle {
    transform: rotate(180deg);
}

/* Arrow rotation */
.arrow {
    transition: transform 0.3s ease;
}



.dt-buttons {
    position: absolute !important;
    top: 15px !important;
    right: 500px !important;

}

.dt-buttons .dt-button {

    border-radius: 12px !important;
    border: 1px solid #cdcdcd !important;
    background: rgba(241, 241, 241, 0.7) !important;
    outline: none !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    line-height: 100%;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.marquee-slider {
    width: 100%;
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}

@media (max-width: 768px) {

    .dt-buttons {

        right: 20px !important;
        bottom: 20px;
        top: unset !important;

    }


}

.introjs-skipbutton {
    width: unset;
    height: unset;
    font-size: 18px;
    padding-right: 14px;
}

.introjs-tooltip {
    min-width: 350px;
    max-width: 350px;
}

@media (max-width: 640px) {
    .introjs-tooltip {
        min-width: 280px;
        max-width: 280px;
    }

}

.marquee-container {
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Smooth gradient edges */
/* .marquee-container::before,
            .marquee-container::after {
                content: '';
                position: absolute;
                top: 0;
                width: 60px;
                height: 100%;
                z-index: 2;
                pointer-events: none;
            } */

/* .marquee-container::before {
                left: 0;
                background: linear-gradient(to right, 
                    rgba(37, 99, 235, 1) 0%, 
                    rgba(147, 51, 234, 0.8) 50%, 
                    transparent 100%);
            }
            
            .marquee-container::after {
                right: 0;
                background: linear-gradient(to left, 
                    rgba(37, 99, 235, 1) 0%, 
                    rgba(147, 51, 234, 0.8) 50%, 
                    transparent 100%);
            } */

/* Responsive adjustments */
@media (max-width: 768px) {


    .marquee-content {
        animation-duration: 20s;
    }
}