/* Neon aqua-cyan glow for SVG or outer ring */
.glow-blue-ring {
    filter: drop-shadow(0 0 10px #4df9ff) drop-shadow(0 0 14px #00eaff) drop-shadow(0 0 18px #00ffd5) drop-shadow(0 0 22px #7dfbff);
    animation: pulse-blue-glow 2s infinite ease-in-out;
}
/* Neon border highlight */
.glow-blue-ring-border {
    stroke: #4df9ff !important;
    stroke-width: 4px !important;
    animation: pulse-blue-glow 2s infinite ease-in-out;
}
/* Pulse animation */
@keyframes pulse-blue-glow {
    0% {
        filter: drop-shadow(0 0 6px #4df9ff) drop-shadow(0 0 10px #00eaff);
    }
    50% {
        filter: drop-shadow(0 0 18px #00ffd5) drop-shadow(0 0 14px #7dfbff);
    }
    100% {
        filter: drop-shadow(0 0 10px #4df9ff) drop-shadow(0 0 14px #00eaff);
    }
}
/* Subtle gray-white glow fading into darkness */
.glow-dark-ring {
    filter: drop-shadow(0 0 5px #555) drop-shadow(0 0 15px #333) drop-shadow(0 0 10px #CCCC) drop-shadow(0 0 15px #CCCC);
    animation: pulse-dark-glow 3s infinite ease-in-out;
    opacity: 0.9;
}
/* Border highlight for SVG outline */
.glow-dark-ring-border {
    stroke: #444 !important;
    stroke-width: 3px !important;
    animation: pulse-dark-glow 3s infinite ease-in-out;
}
/* Dark pulse animation */
@keyframes pulse-dark-glow {
    0% {
        filter: drop-shadow(0 0 5px #666) drop-shadow(0 0 10px #CCCC);
    }
    50% {
        filter: drop-shadow(0 0 10px #111) drop-shadow(0 0 10px #CCCC);
    }
    100% {
        filter: drop-shadow(0 0 5px #666) drop-shadow(0 0 10px #333);
    }
}
/* Gold glow for SVG image or SVG root */
.glow-gold-ring {
    filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px gold) drop-shadow(0 0 30px goldenrod) drop-shadow(0 0 40px orange);
    animation: pulse-glow 2s infinite ease-in-out;
}
/* Gold border highlight on the outer ring circle */
.glow-gold-ring-border {
    stroke: gold !important;
    stroke-width: 4px !important;
    animation: pulse-glow 2s infinite ease-in-out;
}
/* Pulse animation */
@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px gold) drop-shadow(0 0 10px gold);
    }
    50% {
        filter: drop-shadow(0 0 25px goldenrod) drop-shadow(0 0 40px orange);
    }
    100% {
        filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px goldenrod);
    }
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background-color: var(--background-color);
    border: 1px solid #e1e5ee;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--animation-speed) ease;
}

.clear-image {
    max-height: 300px;
}

.filter-button:hover {
    background-color: #ebf1fd;
}
.content-wrapper {
    position: relative; /* Create a stacking context for your content */
    z-index: 0; /* Ensure content is above the background */
    padding-bottom: 320px; /* Adjust this to match the height of your SVG wave to create space for it */
}

.cssscan {
    padding: 2.5rem;
    background: #EBF6F9;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, .1) 0 1px 2px 0;
    cursor: pointer;
    margin-top: 1em;
    font-size: 19px;
    text-align: left;
}
.bg-light {
    background-color: #EBF6F9 !important;
    color: #212529 !important;
}
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: true;
}
/* general styling */
html {
    color-scheme: dark light;
}

img {
    max-width: 100%;
}
/* Hide radio buttons */
input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.story-cards {
    --img-w: 500px;
    --duration: 300ms;
    --img-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    width: min(100% - 4rem, 900px);
    margin-inline: auto;
    display: grid;
    counter-reset: my-counter;
}

.story-card {
    --cards-grid-cols: auto;
    --cards-grid-rows: var(--img-w) auto;
    --cards-grid-gap: 2rem;
    --cards-footer-justify: center;
    grid-area: 1/1;
    display: grid;
    place-items: center;
    grid-template-columns: var(--cards-grid-cols);
    grid-template-rows: var(--cards-grid-rows);
    gap: var(--cards-grid-gap);
}

@media (600px < width) {
    .story-card {
        --cards-grid-cols: var(--img-w) auto;
        --cards-grid-rows: auto;
        --cards-grid-gap: 4rem;
        --cards-footer-justify: start;
    }
}

.story-card-img {
    width: 800px;
    height: 400px;
    aspect-ratio: 1 / 1;
    rotate: var(--angle, 0deg);
    border-radius: 10px;
    border: 3px solid #fff;
    overflow: hidden;
    transform-origin: center;
    object-fit: cover;
    box-shadow: 0 0 5px 3px rgba(0 0 0 / 0.05);
}

input:nth-of-type(1):checked + .card ~ .story-card > .story-card-img {
    animation: straighten-img-1 calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}

.story-card:has(~ input:nth-of-type(2):checked) > .story-card-img,
input:nth-of-type(2):checked + .story-card ~ .story-card > .story-card-img {
    animation: straighten-img-2 calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}

.story-card:has(~ input:nth-of-type(3):checked) > .story-card-img,
input:nth-of-type(3):checked + .card ~ .story-card > .story-card-img {
    animation: straighten-img-3 calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}

.story-card:has(~ input:nth-of-type(4):checked) > .story-card-img,
input:nth-of-type(4):checked + .story-card ~ .card > .story-card-img {
    animation: straighten-img-4 calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}

.story-card:has(~ input:nth-of-type(5):checked) > .card-img,
input:nth-of-type(5):checked + .card ~ .card > .card-img {
    animation: straighten-img-5 calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}

.story-card:has(~ input:nth-of-type(6):checked) > .story-card-img,
input:nth-of-type(6):checked + .story-card ~ .card > .story-card-img {
    animation: straighten-img-6 calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}

.story-card:has(~ input:nth-of-type(7):checked) > .story-card-img,
input:nth-of-type(7):checked + .story-card ~ .card > .story-card-img {
    animation: straighten-img-7 calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}
/* as CSS can't remove animations, we change the animation according to which checkbox is checked  - all animations are the same (would be simpler with SCSS) */
@keyframes straighten-img-1 {
    50% {
        --angle: 0deg;
    }
}

@keyframes straighten-img-2 {
    50% {
        --angle: 0deg;
    }
}

@keyframes straighten-img-3 {
    50% {
        --angle: 0deg;
    }
}

@keyframes straighten-img-4 {
    50% {
        --angle: 0deg;
    }
}

@keyframes straighten-img-5 {
    50% {
        --angle: 0deg;
    }
}

@keyframes straighten-img-6 {
    50% {
        --angle: 0deg;
    }
}

@keyframes straighten-img-7 {
    50% {
        --angle: 0deg;
    }
}

.card-data {
    display: grid;
    gap: 1rem;
}

.card-data > .card-num {
    opacity: var(--data-opacity, 0);
    font-size: 0.8rem;
    color: #666;
}

.card-data > p {
    /*font-size: 0.9rem;*/
}

.card-data > h2,
.card-data > p {
    transition: var(--duration) ease-in-out;
    transition-delay: var(--data-delay, 0ms);
    opacity: var(--data-opacity, 0);
    translate: 0 var(--data-y, 20px);
}

.card-data > footer {
    display: flex;
    justify-content: var(--cards-footer-justify);
    gap: 80%;
}

.card-data > footer label {
    margin-block-start: auto;
    cursor: pointer;
    pointer-events: var(--card-events, none);
    opacity: var(--data-opacity, 0);
    transition: color var(--duration) ease-in-out;
    color: var(--label-clr-txt, #000);
    background-color: var(--label-clr-bg, #eee);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
    display: grid;
    place-content: center;
    transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
}

input:checked:focus-visible + .story-card > .card-data > footer label,
.card-data > footer label:hover {
    --label-clr-txt: #fff;
    --label-clr-bg: steelblue;
}

input:checked + .story-card {
    --data-opacity: 1;
    --data-y: 0;
    --data-delay: var(--duration);
    --card-events: auto;
    transition: z-index;
    transition-delay: 300ms;
    /*z-index: 1;*/
}

input:checked + .story-card > .story-card-img {
    animation: reveal-img calc(var(--duration) * 2) forwards;
}

@keyframes reveal-img {
    50% {
        translate: -150% 0;
        --angle: 0deg;
    }
}

#start-tree-box {
    transition: opacity 0.3s ease;
}

.d-none {
    display: none !important;
    opacity: 0;
}

.lead {
    color: var(--color-theme-button);
    font-weight: 600;
    font-size: 0.85rem;
}

.scroll-container {
    touch-action: none; /* Prevent default touch actions */
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.zoom-wrapper {
    transform-origin: 0 0;
    touch-action: none;
    user-select: none;
}

.scroll-container:active {
    cursor: grabbing;
}

.post-card {
    width: 100%;
    /* background: #F4F2EE;*/
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(70, 130, 255, 0.06), rgba(155, 80, 255, 0.07));
    transition: 0.3s;
    font-family: "Segoe UI", sans-serif;
    margin: 2px auto;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    /*    border: 1px solid #F4F2EE;*/
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(
        to right,
        rgba(194, 251, 215, 1) 0%,
        rgba(194, 251, 215, 1) 44%,
        rgba(194, 251, 215, 1) 100%
    );
    color: #0f172a;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.tilt {
    overflow: hidden;
    margin-left: -0.5rem; /* matches px-2 */
}

.post-img {
    height: 180px;
    overflow: hidden;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .img img {
    transform: scale(1.05);
}

.cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 5px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    color: #18181b;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.post-desc {
    font-size: 13px;
    color: #52525b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.feats {
    display: flex;
    gap: 6px;
}

.feat {
    font-size: 10px;
    background: #f4f4f5;
    color: #71717a;
    padding: 6px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price {
    display: flex;
    flex-direction: column;
}

.old {
    font-size: 13px;
    text-decoration: line-through;
    color: #a1a1aa;
    margin-bottom: 2px;
}

.new {
    font-size: 20px;
    font-weight: 700;
    color: #18181b;
}


.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f4f4f5;
    padding-top: 12px;
}


.rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rcount {
    margin-left: 6px;
    font-size: 11px;
    color: #71717a;
}

.stock {
    font-size: 11px;
    font-weight: 600;
    color: #22c55e;
}

@media (max-width: 400px) {
    .post-card {
        width: 90%;
    }

    .title {
        font-size: 16px;
    }

    .post-img {
        height: 120px;
    }

    .bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price {
        margin-bottom: 5px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

.social {
    /* border: 1px solid #dddddd;*/
    color: var(--color-theme-button);
}

.g-recaptcha {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.modal-header {
    border-bottom: 0 !important;
}

.pedigree-hero {
    min-height: 70vh;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    text-align: center;
}

.post-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* background-color: black;*/
}

.post-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInBg {
    to {
        opacity: 1;
    }
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    transition: background 0.3s;
}

.drop-zone.bg-light {
    background-color: #f8f9fa;
}

.fade-in-updated {
    animation: fadeInHighlight 1s ease-in-out;
}

@keyframes fadeInHighlight {
    0% {
        opacity: 0;
        transform: scale(0.95);
        background-color: #e6f7ff;
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
        background-color: #d0ebff;
    }
    100% {
        transform: scale(1);
        background-color: white;
    }
}


.accepted {
    color: #155724 !important;
}

.rejected {
    color: #721c24 !important;
}

.pending {
    color: #856404 !important;
}

.bottom-dashed {
    border-bottom: 1px dashed #D9D9DF;
}

.grid-square {
    display: inline-block;
    background-color: #fff;
    /*border: solid 1px rgb(0, 0, 0, 0.2);*/
    padding: 10px;
    margin: 2px;
    cursor: pointer;
    /*border: 1px dashed var(--span-color);*/
    border-radius: .2em;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    min-height: 150px;
    min-width: 80px;
}

.facebook-login-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    background-color: #3b5998;
    cursor: pointer;
}

.facebook-login-btn .icon {
    display: inline-flex;
    height: 100%;
    padding: 15px 20px;
    align-items: center;
    justify-content: center;
    background-color: #344e86;
    margin-right: 15px;
}

.facebook-login-btn .icon svg {
    fill: #fff;
}

.facebook-login-btn:hover {
    background-color: #385591;
}

.facebook-login-btn:hover .icon {
    background-color: #314a7e;
}

.profile-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 25px 0;
}

.profile-picture img {
    width: 100%;
    max-width: 100px;
    border-radius: 50%;
}

.profile-details {
    display: flex;
    flex-flow: column;
    padding: 10px 0;
}

.profile-details > div {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f2f5;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.profile-details > div .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #9196a5;
    margin-right: 15px;
    font-size: 14px;
}

.profile-details > div .icon svg {
    fill: #fff;
}

.profile-details > div strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.profile-details > div:last-child {
    border-bottom: none;
}

.logout-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    background-color: #db5d36;
    cursor: pointer;
}

.logout-btn .icon {
    display: inline-flex;
    height: 100%;
    padding: 15px 20px;
    align-items: center;
    justify-content: center;
    background-color: #d24e26;
    margin-right: 15px;
}

.logout-btn .icon svg {
    fill: #fff;
}

.logout-btn:hover {
    background-color: #d9562d;
}

.logout-btn:hover .icon {
    background-color: #c94b24;
}

#imageTooltip {
    position: absolute;
    display: none;
    border: 1px solid #ccc;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

#imageTooltip img {
    max-width: 300px;
    max-height: 300px;
    display: block;
}

.grid-square {
    width: 120px;
    height: auto;
}

[data-level] {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.sticky-col {
    position: sticky;
    top: 70px; /* adjust for navbar height */
    align-self: flex-start; /* important inside flex (row) */
    z-index: 1;
    /* background: #fff; !* avoid transparent overlay *!*/
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    border: 2px solid var(--color-theme-button); /* Yahoo purple */
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-container .search-input {
    flex: 1;
    padding: 6px 20px;
    font-size: 16px;
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background-color: var(--color-theme-button);
    color: #fff;
    padding: 0 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #539EE7;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .checkbox-wrapper-14 input[type=checkbox] {
        --active: var(--color-theme-button);
        --active-inner: #fff;
        --focus: 2px rgba(39, 94, 254, .3);
        --border: #BBC1E1;
        --border-hover: #275EFE;
        --background: #fff;
        --disabled: #F6F8FF;
        --disabled-inner: #E1E6F9;
        -webkit-appearance: none;
        -moz-appearance: none;
        height: 21px;
        outline: none;
        display: inline-block;
        vertical-align: top;
        position: relative;
        margin: 0;
        cursor: pointer;
        border: 1px solid var(--bc, var(--border));
        background: var(--b, var(--background));
        transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    }

    .checkbox-wrapper-14 input[type=checkbox]:after {
        content: "";
        display: block;
        left: 0;
        top: 0;
        position: absolute;
        transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
    }

    .checkbox-wrapper-14 input[type=checkbox]:checked {
        --b: var(--active);
        --bc: var(--active);
        --d-o: .3s;
        --d-t: .6s;
        --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
    }

    .checkbox-wrapper-14 input[type=checkbox]:disabled {
        --b: var(--disabled);
        cursor: not-allowed;
        opacity: 0.9;
    }

    .checkbox-wrapper-14 input[type=checkbox]:disabled:checked {
        --b: var(--disabled-inner);
        --bc: var(--border);
    }

    .checkbox-wrapper-14 input[type=checkbox]:disabled + label {
        cursor: not-allowed;
    }

    .checkbox-wrapper-14 input[type=checkbox]:hover:not(:checked):not(:disabled) {
        --bc: var(--border-hover);
    }

    .checkbox-wrapper-14 input[type=checkbox]:focus {
        box-shadow: 0 0 0 var(--focus);
    }

    .checkbox-wrapper-14 input[type=checkbox]:not(.switch) {
        width: 21px;
    }

    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):after {
        opacity: var(--o, 0);
    }

    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):checked {
        --o: 1;
    }

    .checkbox-wrapper-14 input[type=checkbox] + label {
        cursor: pointer;
    }

    .checkbox-wrapper-14 input[type=checkbox]:not(.switch) {
        border-radius: 7px;
    }

    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):after {
        width: 5px;
        height: 9px;
        border: 2px solid var(--active-inner);
        border-top: 0;
        border-left: 0;
        left: 7px;
        top: 4px;
        transform: rotate(var(--r, 20deg));
    }

    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):checked {
        --r: 43deg;
    }

    .checkbox-wrapper-14 input[type=checkbox].switch {
        width: 38px;
        border-radius: 11px;
    }

    .checkbox-wrapper-14 input[type=checkbox].switch:after {
        left: 2px;
        top: 1px;
        border-radius: 50%;
        width: 17px;
        height: 17px;
        background: var(--ab, var(--border));
        transform: translateX(var(--x, 0));
    }

    .checkbox-wrapper-14 input[type=checkbox].switch:checked {
        --ab: var(--active-inner);
        --x: 17px;
    }

    .checkbox-wrapper-14 input[type=checkbox].switch:disabled:not(:checked):after {
        opacity: 0.6;
    }
}

.checkbox-wrapper-14 * {
    box-sizing: inherit;
}

.checkbox-wrapper-14 {
    padding: 3px;
}

.checkbox-wrapper-14 *:before,
.checkbox-wrapper-14 *:after {
    box-sizing: inherit;
}

.selected-tree:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* border: 2px solid var(--color-theme-button);*/
    border-radius: 10px;
    padding: 5px;
    background-color: white;
    z-index: 1;
}

@media screen and (max-width: 700px) {
    .box {
        width: 70%;
    }

    .popup {
        width: 70%;
    }
}

.wrapper {
    margin: 0 0.9em;
}

.navbar-nav a, a:visited, a:active {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: relative;
    transition: 0.5s color ease;
    text-decoration: none;
    /*   font-size: 1.2em;*/
    /* color: #1BAB99;*/
}

a:hover {
    text-decoration: none;
}

nav a:hover {
    color: #151837;
}

.navbar-nav a.before:before, a.after:after {
    content: "";
    transition: 0.5s all ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
}

.navbar-nav a.before:before {
    top: -0.25em;
}

.navbar-nav a.after:after {
    bottom: -0.25em;
}

.navbar-nav a.before:before, a.after:after {
    height: 0.35rem;
    width: 0;
    background: #151837;
}

.navbar-nav a.first:after {
    left: 0;
}

.navbar-nav a.second:after {
    right: 0;
}

.navbar-nav a.third:after, a.sixth:before, a.sixth:after {
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.navbar-nav a.fourth:before, a.fourth:after {
    left: 0;
}

.navbar-nav a.fifth:before, a.fifth:after {
    right: 0;
}

.navbar-nav a.seventh:before {
    right: 0;
}

.navbar-nav a.seventh:after {
    left: 0;
}

.navbar-nav a.eigth:before {
    left: 0;
}

.navbar-nav a.eigth:after {
    right: 0;
}

.navbar-nav a.before:hover:before, a.after:hover:after {
    width: 100%;
}

.square {
    box-sizing: border-box;
    margin-left: -0.4em;
    position: relative;
    font-size: 23px;
    overflow: hidden;
}

.square a {
    position: static;
    font-size: 100%;
    padding: 0.2em 0.4em;
}

.square:before, .square:after {
    content: "";
    box-sizing: border-box;
    transition: 0.25s all ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    width: 0.35rem;
    height: 0;
    background: #151837;
}

.square:before {
    left: 0;
    bottom: -0.2em;
}

.square.individual:before {
    transition-delay: 0.6s;
}

.square:after {
    right: 0;
    top: -0.2em;
}

.square.individual:after {
    transition-delay: 0.2s;
}

.square a:before {
    left: 0;
    transition: 0.25s all ease;
}

.square a:after {
    right: 0;
    transition: 0.25s all ease;
}

.square.individual a:after {
    transition: 0.25s all ease 0.4s;
}

.square:hover:before, .square:hover:after {
    height: calc(100% + 0.4em);
}

.square:hover a:before, .square:hover a:after {
    width: 100%;
}

.bigger-bi {
    font-size: 20px;
    font-weight: bold;
    margin: 0 5px;
}

.genealogy-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.genealogy-scroll:active {
    cursor: grabbing;
}

/* Your scrollbar styling */
.genealogy-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

.genealogy-scroll::-webkit-scrollbar-thumb {
    background: var(--connector-color) !important;
    border-radius: 10px;
    transition: 0.5s;
}

.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-theme-button);
    transition: 0.5s;
}

/*----------------genealogy-tree----------*/
.genealogy-body {
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: scroll;
    padding: 5px;
}

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

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

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

.genealogy-tree li::before,
.genealogy-tree li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--connector-color);
    width: 50%;
    height: 8px;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--connector-color);
}

.genealogy-tree li:only-child::after,
.genealogy-tree li:only-child::before {
    display: none;
}

.genealogy-tree li:only-child {
    /* padding-top: 0;*/
}

.genealogy-tree li:only-child::before {
    /* padding-top: 0;*/
}

.genealogy-tree li:only-child::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--connector-color);
    width: 0;
    height: 2px;
}

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

.genealogy-tree li:last-child::before {
    border-right: 2px solid var(--connector-color);
    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;
}

.genealogy-tree ul ul::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--connector-color);
    width: 0;
    height: 2px;
}

.show-after {
    margin: 0;
}

.union {
    background-color: #E8EFFF;
    margin-bottom: 17px;
}

.union::after {
    content: "";
    position: absolute;
    top: 37px;
    left: 50%;
    border-left: 2px solid var(--connector-color);
    width: 0;
    height: 17px;
}
.spouse-link:before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 17px;
}

.genealogy-tree li a {
    text-decoration: none;
    color: black;
    font-family: arial, verdana, tahoma;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    /* background-color: #6f42c1;*/
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    width: max-content;
    padding: 0 5px;
}

.genealogy-tree li a:hover + ul li::after,
.genealogy-tree li a:hover + ul li::before,
.genealogy-tree li a:hover + ul::before,
.genealogy-tree li a:hover + ul ul::before {
    border-color: #fbba00;
}

/*--------------memeber-card-design----------*/
.member-view-box {
    /* padding: 0px 20px;*/
    text-align: center;
    border-radius: 4px;
    position: relative;
}

.member-image {
    min-width: 80px;
    position: relative;
}


.member-female img {
    border-color: #7532F9;
}

.border-left {
    box-shadow: 0 8px 32px 0 rgba(209, 142, 98, 0.1);
    /* backdrop-filter: blur(100px);*/
}

.slider-container {
    position: relative;
    width: 100%;
    /* background-color: #F0F4F9;*/
    border-radius: 10px;
}

.slider-content {
    scroll-behavior: smooth;
    white-space: nowrap;
    overflow-x: auto;
    padding: 0 40px; /* space for arrows */
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
}

.slider-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.slider-arrow {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(0, 0, 0, 0.5);*/
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 7px 14px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.left {
    left: 5px;
}

.slider-arrow.right {
    right: 5px;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.2rem 0.2rem;
    background: #f8f9fa;
    color: #000000;
    transition: all 0.2s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
}

.action-tile i {
    font-size: 1.0rem;
    margin-bottom: 0.1rem;
}

.action-tile span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.action-tile:hover {
    /*color: #000;
    transform: translateY(-3px);*/
    box-shadow: 2px 2px 2px 2px rgba(117, 50, 249, 0.3);
    /* box-shadow: rgba(244, 243, 240, 0.8) 0px 1px 3px 0px inset;*/
    background-color: #ffffff !important;
    color: #0d172a !important;
    border-color: var(--color-theme-button) !important;
}

.action-tile-menu {
    color: #1A355B;
    box-shadow: rgba(244, 243, 240, 1) 0 1px 3px 0 inset;
}

.action-tile-menu:hover {
    /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px 0px inset;*/
    /* background-color: var(--color-theme-button-hover) !important;*/
    color: rgb(255, 255, 255) !important;
    border-color: var(--color-theme-button) !important;
    box-shadow: 2px 2px 2px 2px rgba(117, 50, 249, 0.3);
}

.name-image {
    width: 55px;
    height: 55px;
    border: 1px solid gray;
    background-size: cover; /* fill the box, crop if needed */
    background-position: center; /* keep focus centered */
    background-repeat: no-repeat;
    border-radius: 10%; /* optional: avatar-style rounded */
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
}

.mrpaper {
    background-color: #f9f9f4;
}

.paperheader {

    border-bottom: 1px solid #ccc;
    text-align: center;
}

/* CSS */
.button-89 {
    --b: 1px; /* border thickness */
    --s: .45em; /* size of the corner */
    --color: #373B44;
    padding: calc(.2em + var(--s)) calc(.9em + var(--s));
    color: var(--color);
    --_p: var(--s);
    background: conic-gradient(from 90deg at var(--b) var(--b), #0000 90deg, var(--color) 0) var(--_p) var(--_p)/calc(100% - var(--b) - 2 * var(--_p)) calc(100% - var(--b) - 2 * var(--_p));
    transition: .3s linear, color 0s, background-color 0s;
    outline: var(--b) solid #0000;
    outline-offset: .6em;
    font-size: 16px;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-89:hover,
.button-89:focus-visible {
    --_p: 0px;
    outline-color: var(--color);
    outline-offset: .05em;
}

.button-89:active {
    background: var(--color);
    color: #fff;
}

.highlighted {
    box-shadow: 0 0 10px 3px plum;
    transition: box-shadow 0.3s ease;
}

.grid-square {
    width: 120px;
}

.sortable-level {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

/* Custom Tooltip Styling */
.custom-tooltip.bs-tooltip-auto[data-popper-placement^=top] > .tooltip-arrow::before,
.custom-tooltip.bs-tooltip-top > .tooltip-arrow::before {
    border-top-color: #fff;
}

.custom-tooltip .tooltip-inner {
    background-color: #fff;
    color: #222;
    max-width: 280px;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    padding: 12px;
    font-size: 13px;
}

.custom-tooltip img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 6px;
}

.custom-tooltip strong {
    display: block;
    margin-bottom: 4px;
    color: #0d6efd;
}

.custom-tooltip p {
    margin: 0;
    color: #444;
    font-size: 13px;
    line-height: 1.4;
}

.upload-box {
    text-align: center;
    cursor: pointer;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-label {
    font-family: sans-serif;
    color: #555;
    margin-bottom: 1px;
    font-size: 13px;
}

.tab-label a {
    color: #23AE9D;
}
.toggle-btn:hover {
    background: #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: #111827;
}
.toggle-btn:active {
    transform: scale(0.97);
}
/* Arrow Icon */
.toggle-btn .arrow {
    margin-left: 0.5rem;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #374151; /* dark gray */
    border-bottom: 2px solid #374151;
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
}
/* Arrow rotates when dropdown is open */
.dropdown.show .toggle-btn .arrow,
.toggle-btn[aria-expanded="true"] .arrow {
    transform: rotate(-135deg);
}
/* Container styling */
.mode-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937; /* dark text */
}
/* Link styling */
.mode-link a {
    color: #3b82f6 !important; /* blue link color */
    text-decoration: none;
    position: relative;
    padding: 0.2rem 0.4rem;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
    font-weight: 300;
    background-color: rgba(243, 244, 246, 0.4);
    margin: 5px 2px;
}

.mode-link a::after {
    content: '';
    display: block;
    height: 2px;
    background: #3b82f6;
    transition: width 0.2s;
    width: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.mode-link a:hover::after {
    width: 100%;
}

.mode-link a:hover {
    color: #1e40af; /* darker blue on hover */
}

.mode-link a:active {
    transform: scale(0.97);
}

/* Make sidebar look modern */
#sidebarMenu {
    width: 167px;
}

.nav-link {
    color: #333;
    font-weight: 300;
}

.nav-link:hover {
    /* background: #e9ecef; */
    border-radius: 5px;
    color: indianred;
    font-weight: 500;
}

.offcanvas-md {
    top: 0;
    height: 100vh;
}
