﻿/*.demo {
    font-family: 'Noto Sans', sans-serif;
}*/

html * {
    -webkit-font-smoothing: antialiased;
}

header {
    position: sticky; /* Keep the header fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    background: #f9e79f !important;
    background-image: linear-gradient( 109.6deg, rgba(112,246,255,0.33) 11.2%, rgba(221,108,241,0.26) 42%, rgba(229,106,253,0.71) 71.5%, rgba(123,183,253,1) 100.2% ) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1); /* Light shadows for depth */
    z-index: 1000;
}

.modal-header {
    background: #f9e79f !important;
    background-image: linear-gradient( 109.6deg, rgba(112,246,255,0.33) 11.2%, rgba(221,108,241,0.26) 42%, rgba(229,106,253,0.71) 71.5%, rgba(123,183,253,1) 100.2% ) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1) !important; /* Light shadows for depth */
}

.modal-body {
    background: #f5eef8 !important;
    text-align: center;
}

footer {
    /*background: #f9e79f !important;*/
    background-image: linear-gradient( 109.6deg, rgba(112,246,255,0.33) 11.2%, rgba(221,108,241,0.26) 42%, rgba(229,106,253,0.71) 71.5%, rgba(123,183,253,1) 100.2% ) !important;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3), 0 -1px 3px rgba(0, 0, 0, 0.1); /* Shadows at the top */
    text-align: center;
    border-top: 2px solid rgba(0, 0, 0, 0.1); /* Subtle top border */
}

.modal-footer {
    background: #f5eef8 !important;
    padding: 0 1rem 0 0 !important;
    border-top: none !important;
}

header::after
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

body {
    /*background: #ebf5fb !important;*/
    background: #f5eef8 !important;
}

a {
    color: #3e3947 !important;
    text-decoration: none;
}

    a:hover {
        color: #89229b !important;
        text-decoration: none !important;
    }

    a:focus {
        color: #89229b !important;
        text-decoration: none !important;
    }

.container {
    font-weight: 300 !important;
}

    .container h3 {
        font-size: 25px;
        margin-top: 20px;
        margin-bottom: 10px;
        font-weight: 300;
        color: #3c4858;
    }

    .container h4 {
        font-size: 18px;
        line-height: 1.5;
        margin: 10px 0;
        font-weight: 300;
        color: #3c4858;
    }

small {
    font-size: 75% !important;
    color: #777;
}

.btn-group {
    position: relative;
    margin: 10px 1px;
    display: inline-flex;
    vertical-align: middle;
}

    .btn-group .btn {
        padding: 6.5px 20px !important;
    }

.btn.btn-round {
    border-radius: 30px !important;
}

.btn-group .btn.btn-round {
    border-radius: 30px !important;
}

.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-group > .btn:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.btn {
    padding: 12px 30px !important;
    margin: 5px 1px;
    font-size: 12px !important;
    box-shadow: 0 2px 2px 0 hsla(0,0%,60%,.14), 0 3px 1px -2px hsla(0,0%,60%,.2), 0 1px 5px 0 hsla(0,0%,60%,.12);
}

    .btn .material-icons {
        position: relative;
        display: inline-block;
        top: 0;
        margin-top: -1.2em;
        margin-bottom: -1em;
        font-size: 1.1rem;
        vertical-align: middle;
    }

    .btn.btn-sm {
        border-radius: 3px !important;
    }

    .btn.btn-just-icon.btn-sm {
        height: 30px;
        min-width: 30px;
        width: 30px;
    }

    .btn.btn-just-icon {
        font-size: 24px;
        height: 41px;
        min-width: 41px;
        width: 41px;
        padding: 0 !important;
        overflow: hidden;
        position: relative;
        line-height: 41px;
    }

        .btn.btn-just-icon.btn-round {
            border-radius: 50% !important;
        }

    .btn.btn-link {
        background: transparent;
        box-shadow: none;
        color: #999;
    }

    .btn.btn-info {
        color: #fff !important;
        background-color: #85c1e9 !important;
        border-color: #85c1e9;
        box-shadow: 0 2px 2px 0 rgba(0,188,212,.14), 0 3px 1px -2px rgba(0,188,212,.2), 0 1px 5px 0 rgba(0,188,212,.12) !important;
    }

        .btn.btn-info:hover {
            box-shadow: 0 14px 26px -12px rgba(0,188,212,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,188,212,.2) !important;
            background: #00aec5 !important;
        }

        .btn.btn-info.btn-link {
            background-color: transparent !important;
            color: #00bcd4 !important;
            box-shadow: none !important;
        }

        .btn.btn-info.selected {
            color: #fff !important;
            background-color: #00bcd4 !important;
            border-color: #00bcd4 !important;
            box-shadow: none !important;
        }

    .btn.btn-submit {
        color: #fff !important;
        background-color: #c39bd3 !important;
        border-color: #c39bd3;
        box-shadow: 0 2px 2px 0 rgba(142,68,173,.14), 0 3px 1px -2px rgba(142,68,173,.2), 0 1px 5px 0 rgba(142,68,173,.12) !important;
    }

        .btn.btn-submit:hover {
            box-shadow: 0 14px 26px -12px rgba(142,68,173,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(142,68,173,.2) !important;
            background: #89229b !important;
        }

        .btn.btn-submit.btn-link {
            background-color: transparent !important;
            color: #00bcd4 !important;
            box-shadow: none !important;
        }

        .btn.btn-submit.selected {
            color: #fff !important;
            background-color: #00bcd4 !important;
            border-color: #00bcd4 !important;
            box-shadow: none !important;
        }

    .card-header.btn-submit {
        color: #fff !important;
        background-color: #c39bd3 !important;
        border-color: #c39bd3;
        box-shadow: 0 2px 2px 0 rgba(142,68,173,.14), 0 3px 1px -2px rgba(142,68,173,.2), 0 1px 5px 0 rgba(142,68,173,.12) !important;
    }

        .card-header.btn-submit:hover {
            box-shadow: 0 14px 26px -12px rgba(142,68,173,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(142,68,173,.2) !important;
            background: #89229b !important;
        }

        .card-header.btn-submit.btn-link {
            background-color: transparent !important;
            color: #00bcd4 !important;
            box-shadow: none !important;
        }

        .card-header.btn-submit.selected {
            color: #fff !important;
            background-color: #00bcd4 !important;
            border-color: #00bcd4 !important;
            box-shadow: none !important;
        }

    .btn.btn-success {
        color: #fff !important;
        background-color: #a9dfbf !important;
        border-color: #a9dfbf;
        box-shadow: 0 2px 2px 0 rgba(76,175,80,.14), 0 3px 1px -2px rgba(76,175,80,.2), 0 1px 5px 0 rgba(76,175,80,.12) !important;
    }

        .btn.btn-success:hover {
            box-shadow: 0 14px 26px -12px rgba(76,175,80,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(76,175,80,.2) !important;
            background: #47a44b !important;
        }

        .btn.btn-success.btn-link {
            background-color: transparent !important;
            color: #4caf50 !important;
            box-shadow: none !important;
        }

    .btn.btn-danger {
        color: #fff !important;
        background-color: #f1948a !important;
        border-color: #f1948a;
        box-shadow: 0 2px 2px 0 rgba(244,67,54,.14), 0 3px 1px -2px rgba(244,67,54,.2), 0 1px 5px 0 rgba(244,67,54,.12) !important;
    }

        .btn.btn-danger:hover {
            box-shadow: 0 14px 26px -12px rgba(244,67,54,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(244,67,54,.2) !important;
            background-color: #f33527 !important;
        }

        .btn.btn-danger.btn-link {
            background-color: transparent !important;
            color: #f44336 !important;
            box-shadow: none !important;
        }

    .btn.btn-just-icon .material-icons {
        margin-top: 0;
        position: absolute;
        width: 100%;
        transform: none;
        left: 0;
        top: 0;
        height: 100%;
        line-height: 41px;
        font-size: 20px;
    }

    .btn.btn-just-icon.btn-sm .material-icons {
        font-size: 17px;
        line-height: 29px;
    }


.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    background-color: transparent;
}

    .table thead {
        background: #d7bde2
    }

        .table thead tr th {
            font-size: 17px;
            font-weight: 300;
        }

    .table > thead > tr > th {
        padding: 12px 8px;
        vertical-align: middle;
        border-color: #ddd;
        font-weight: 300;
    }

    .table > tbody > tr > td {
        padding: 12px 8px;
        vertical-align: middle;
        border-color: #ddd;
        font-weight: 300;
        font-size: 14px;
        color: #3c4858;
    }

    .table .td-actions .btn {
        margin: 0;
        padding: 5px;
    }

    .table .form-check {
        margin: 0;
        padding-left: 0;
    }

    .table .td-total {
        font-weight: 500;
        font-size: 17px;
        padding-top: 20px;
        text-align: right;
    }

    .table .td-price {
        font-size: 26px;
        font-weight: 300;
        margin-top: 5px;
        text-align: right;
    }

.table-shopping > thead > tr > th {
    font-size: 12px;
    text-transform: uppercase;
    color: #555;
}

.table-shopping .td-name {
    min-width: 200px;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.42857143;
}

    .table-shopping .td-name small {
        color: #999;
        font-size: 18px;
        font-weight: 300;
    }

.table-shopping .img-container {
    width: 120px;
    max-height: 160px;
    overflow: hidden;
    display: block;
}

    .table-shopping .img-container img {
        width: 100%;
    }

.table-shopping > tbody > tr > td {
    font-size: 14px;
}

.table-shopping .td-number {
    text-align: right;
    min-width: 150px;
    font-size: 18px;
}

    .table-shopping .td-number small {
        margin-right: 3px;
    }

.form-check {
    padding-left: 0;
}

    .form-check .form-check-label {
        cursor: pointer;
        padding-left: 0px;
        position: relative;
        margin-bottom: 0;
    }

        .form-check .form-check-label span {
            display: block;
            left: -1px;
            top: -1px;
            transition-duration: .2s;
        }

    .form-check .form-check-input {
        opacity: 0;
        height: 0;
        width: 0;
        overflow: hidden;
        position: absolute;
        margin: 0;
        z-index: -1;
        left: 0;
        pointer-events: none;
    }

    .form-check .form-check-sign:before {
        display: block;
        position: absolute;
        left: 0;
        content: "";
        background-color: rgba(0,0,0,.84);
        height: 20px;
        width: 20px;
        border-radius: 100%;
        z-index: 1;
        opacity: 0;
        margin: 0;
        top: 0;
        transform: scale3d(2.3,2.3,1);
    }

    .form-check .form-check-sign .check {
        position: relative;
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 1px solid rgba(0,0,0,.54);
        overflow: hidden;
        z-index: 1;
        border-radius: 3px;
        top: 3px;
    }

        .form-check .form-check-sign .check:before {
            position: absolute;
            content: "";
            transform: rotate(45deg);
            display: block;
            margin-top: -3px;
            margin-left: 7px;
            width: 0;
            color: #fff;
            height: 0;
            box-shadow: 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, inset 0 0 0 0;
            animation: checkbox-off .3s forwards;
        }

    .form-check .form-check-input:checked + .form-check-sign .check:before {
        color: #fff;
        box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
        animation: checkbox-on .3s forwards;
    }

    .form-check .form-check-input:checked + .form-check-sign .check {
        background: #9c27b0;
    }

.table .form-check .form-check-sign {
    top: -13px;
    left: 0;
    padding-right: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9 !important;
}

footer {
    width: 100%;
    /*margin-top: 200px;*/
    /*color: #555;*/
    background: #fff;
    /*padding: 25px;*/
    /*font-weight: 300;
    display: block;
    position: absolute;
    float: left;
    vertical-align: middle;*/
}


.footer p {
    margin-bottom: 0;
}

footer p a {
    color: #555;
    font-weight: 400;
}

    footer p a:hover {
        color: #9f26aa;
        text-decoration: none;
    }

/*animation*/

@keyframes checkbox-on {
    0% {
        box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px;
    }

    50% {
        box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px 2px 0 11px;
    }

    100% {
        box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
    }
}

.tooltip-arrow {
    display: none;
}

.tooltip.show {
    display: block;
    opacity: 1;
    -webkit-transform: translate3d(0, 0px, 0);
    -moz-transform: translate3d(0, 0px, 0);
    -o-transform: translate3d(0, 0px, 0);
    -ms-transform: translate3d(0, 0px, 0);
    transform: translate3d(0, 0px, 0);
}

.tooltip {
    opacity: 0;
    transition: opacity, transform .2s ease;
    -webkit-transform: translate3d(0, 5px, 0);
    -moz-transform: translate3d(0, 5px, 0);
    -o-transform: translate3d(0, 5px, 0);
    -ms-transform: translate3d(0, 5px, 0);
    transform: translate3d(0, 5px, 0);
    font-size: 0.75rem;
}

    .tooltip.bs-tooltip-top .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
        border-top-color: #fff;
    }

    .tooltip.bs-tooltip-right .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before {
        border-right-color: #fff;
    }

    .tooltip.bs-tooltip-left .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before {
        border-left-color: #fff;
    }

    .tooltip.bs-tooltip-bottom .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
        border-bottom-color: #fff;
    }

.tooltip-inner {
    padding: 10px 15px !important;
    min-width: 130px;
}

.tooltip-inner {
    line-height: 1.5em;
    background: #fff !important;
    border: none;
    border-radius: 3px;
    box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
    color: #555 !important;
}

.page-item .page-link.active {
    background: #d7bde2;
}

.page-item .page-link.disabled {
    pointer-events: none;
}

@media (max-width: 767px) {
    .mobile-view {
        opacity: 1;
        visibility: visible;
        display: block;
    }
    .table-view {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: none;
    }
}

@media (min-width: 768px) {
    .table-view {
        opacity: 1;
        visibility: visible;
        display: block;
    }
    .mobile-view {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: none;
    }
}

.horizontal-scroll-container {
    width: 100%; /* Adjust to the desired width */
    max-width: 100%; /* Optional: Set max width for the container */
    overflow-x: auto; /* Enable horizontal scroll */
    overflow-y: hidden;
    white-space: nowrap; /* Prevent items from wrapping to the next line */
    /*border: 1px solid #ccc;*/ /* Optional: Add border around the container */
    padding: 10px; /* Optional: Add padding */
    -webkit-overflow-scrolling: touch;
}

.item {
    display: inline-block; /* Make items appear inline */
    margin-right: 10px; /* Optional: Add spacing between items */
    background-color: #d7bde2; /* Optional: Add background color */
    padding: 10px; /* Optional: Add padding inside items */
    border-radius: 5px; /* Optional: Add rounded corners */
}

/* Optional: Add styles to make it visually appealing */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

    .horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }

.td-actions {
    width:185px;
}

.td-actions-md {
    width: 120px;
}

.td-actions-sm {
    width: 90px;
}

.scroll-textarea {
    width: 100%; /* Adjust width */
    overflow: auto; /* Enables both vertical and horizontal scroll bars */
    white-space: nowrap; /* Ensures text doesn't wrap and forces horizontal scrolling */
    resize: both; /* Allows the user to resize the textarea */
}

.next-div {
    background-color: lightblue;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    clear: both; /* Ensures this div does not get hidden or overlap */
}

/* Slider container */
/* Container to center the slider */
.slider-container {
    width: 100%;
    max-width: 1200px; /* Limit width on large screens */
    margin: 0 auto;
    padding: 10px;
    position: relative; /* Ensures elements inside are positioned correctly */
}

/* Swiper container */
.swiper-container {
    width: 100%;
    height: auto;
    position: relative;
    padding-bottom: 40px; /* Extra space for pagination */
    overflow: hidden; /* Ensures no extra content is shown */
}

/* Wrapper for slides */
.swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Ensure images fit screen size */
.swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 600px; /* Adjust as needed */
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive height adjustments */
@media (max-width: 768px) {
    .swiper-slide img {
        max-height: 300px; /* Adjust for smaller screens */
    }
}

/* Swiper navigation buttons */
.swiper-button-next, .swiper-button-prev {
    color: white !important; /* Change to match your theme */
    /*background: rgba(0, 0, 0, 0.5);*/ /* Semi-transparent background */
    /*padding: 15px;*/
    /*border-radius: 50%;*/
    width: 40px !important;
    height: 40px !important;
    transition: all 0.3s ease-in-out;
}

/* Reduce button size on smaller screens */
@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .swiper-button-next, .swiper-button-prev {
        width: 25px !important;
        height: 25px !important;
        padding: 5px !important;
    }
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    /*background: rgba(0, 0, 0, 0.8);*/
    color: black!important;
}

/* Swiper pagination (dots) */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 12px;
    height: 12px;
    
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.swiper-pagination-bullet-active {
    background: #89229b !important; /* Change to your theme color */
    opacity: 1;
    transform: scale(1.2);
}

.jeevani ul {
    margin-left: 40px;
}

.jeevani ol {
    margin-left: 40px;
}

note-modal-footer {
    height: 60px!important;
}

.card-title {
    margin-top: .5rem;
}

.card-subtitle {
    margin-top: 1.0rem;
    margin-bottom: 0;
    font-weight : bold;
}

.border-primary {
    border-color: #c39bd3 !important;
    position: relative;
    border: 2px solid transparent; /* Thick border */
    border-radius: 10px; /* Smooth corners */
    background-clip: padding-box;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}
    /* Add a glow effect on hover */
    .border-primary:hover {
        box-shadow: 0 14px 26px -12px rgba(142, 68, 173, .42), 0 4px 23px 0 rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(142, 68, 173, .2) !important;        
    }

ins {
    background-color: #c8e6c9;
    text-decoration: none;
}
/* Green highlight for additions */
del {
    background-color: #ffcdd2;
    text-decoration: line-through;
}
/* Red highlight for deletions */

/* New mobile footer styles */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%; /* Ensure it spans the full width */
    background-color: #f8f9fa; /* Match existing footer background */
    z-index: 1030; /* Ensure it stays above other elements */
    padding: 0.5rem 0;
}

    .mobile-footer .container-fluid {
        max-width: 100%; /* Remove any width restrictions */
        padding: 0 1rem; /* Add padding for spacing */
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-footer a {
        text-decoration: none;
        color: #6c757d; /* Match existing footer text color */
        font-size: 0.875rem;
    }

        .mobile-footer a .material-icons {
            font-size: 1.5rem;
            display: block;
        }


/* Tree Container */
.tree {
    padding: 0;
    margin: 0 auto;
    list-style: none;
    position: relative;
    text-align: center;
    min-width: max-content;
    display: inline-block;
}

    /* Level container */
    .first-level-multi-nodes {
        list-style: none;
        padding-left: 0;
        position: relative;
        margin: 0 auto;
        margin-top: 20px !important;
    }

    .tree ul {
        list-style: none;
        padding-left: 0;
        position: relative;
        margin: 0 auto;
    }

        .tree ul ul {
            margin-top: 20px !important;
        }

    /* Nodes */
    .tree li {
        position: relative;
        padding: 20px 5px 0 5px;
        display: inline-block;
        text-align: center;
        vertical-align: top;
        white-space: nowrap;
    }

        /* Horizontal connectors for middle nodes (not first or last) */
        .tree li:has(ul) > ul > li:not(:first-child):not(:last-child)::before,
        .tree li:has(ul) > ul > li:not(:first-child):not(:last-child)::after {
            content: '';
            position: absolute;
            top: 0;
            width: 50%;
            height: 20px;
            border-top: 2px solid #89229b;
        }

        /* Left line for non-first children only */
        .tree li:has(ul) > ul > li:not(:first-child)::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 20px;
            border-top: 2px solid #89229b;
            border-right: 2px solid #89229b;
        }

        /* Right line for non-last children only */
        .tree li:has(ul) > ul > li:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            height: 20px;
            border-top: 2px solid #89229b;
            border-left: 2px solid #89229b;
        }



     /* Only draw vertical line down from parent to children group */
    .tree ul:has(> li:only-child)::after {
        content: '';
        position: absolute;
        top: -20px;
        left: 50%;
        width: 0;
        height: 40px;
        border-left: 3px solid #89229b;
        z-index : -1;
    }

     /* Handle single child nodes: draw vertical line and fix spacing */
    .tree ul:has(> li:nth-child(2))::after {
        content: '';
        position: absolute;
        top: -20px;
        left: 50%;
        width: 0;
        height: 20px;
        border-left: 3px solid #89229b;
        transform: translateX(-50%);
        z-index: -1;
    }

/* Node box */
.tree-node {
    background: #f9f9f9;
    border: 1px solid #ccc;    
    border-radius: 8px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}
    .tree-node .node-group {
        padding: 8px 24px 0px 8px;
    }
    .tree-node .view-icon {
        position: absolute;
        top: 0px;
        right: 8px;
        font-size: 1rem;
        color: #89229b !important;
        text-decoration: none;
        z-index: 1;
    }

        .tree-node .view-icon:hover {
            color: #5e1573;
        }

/* Toggle button styling */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

/* Arrow */
button.toggle-btn span.arrow {
    color: #89229b !important;
    font-family: Arial, sans-serif;
}

.arrow {
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.3s ease;
    text-decoration: none;
}   

.rotated {
    transform: rotate(90deg);
}

/* Hide on collapse */
.child-list.hidden {
    display: none;
}

/* Avatar image */
.tree-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 5px auto;
    background-color: #89229b;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
}

    /* When initials are used instead of image */
    .tree-avatar.initials {
        background-color: #89229b;
    }

/* Wrapper for all node content */
.tree-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Name styling */
.tree-name {
    font-weight: bold;
    font-size: 14px;
    margin-top: 4px;
    color: #333;
}

/* Lifespan styling */
.tree-lifespan {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
    margin-bottom: 2px;
}


/* Flashy Free Trial Badge */
.flashy-free-trial {
    color: #fff;
    animation: pulse 1.5s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.flashy-free-trial::before {
    content: "🎁 ";
}

.editable-card {
    position: relative;
    padding: 16px;
    border-radius: 8px;
}

.edit-image-icon {
    position: absolute;
    color: #89229b !important;
    font-size: 1rem;
    text-decoration: none;
    z-index: 10;
}
    .edit-image-icon:hover {
        color: #5e1573;
    }

.edit-icon {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #89229b !important;
    font-size: 1rem;
    text-decoration: none;
    z-index: 10;
}

    .edit-icon:hover {
        color: #5e1573;
    }

.edit-inline-icon {
    color: #89229b!important;
    margin-top : 10px;
    font-size: 1.25rem;
    text-decoration: none;
}

    .edit-inline-icon:hover {
        color: #5e1573;
        text-decoration: none;
    }


   




