.tree-card {
    max-width: 300px;
    margin: 5px;
}

.tree-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tree-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 80px;
}

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

/* Left text side */
.tree-card-text {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tree-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #222;
    margin-bottom: 3px;
    line-height: 1.1;
}

.tree-card-sub {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.1;
    margin-bottom: 4px;
}

.tree-card-date {
    font-size: 0.6rem;
    color: #999;
}

/* Right image side */
.tree-card-img {
    width: 80px;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}


/* NAV WRAPPER */
.navbar-top {
    background: #1A355B !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.6rem 0;
}

.nav-bar-inner {

}

/* Center brand + spacing */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Main nav list spacing */
.navbar-nav {
    gap: 22px; /* <-- space between items */
}

/* Beautiful modern nav link */
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.25s ease;
    color: #1BABA5 !important;
}

/* Smooth hover */
.navbar-nav .nav-link:hover {
    background: #f3f4f6;
    color: #0d6efd !important;
    transform: translateY(-2px);
}

/* Initial badge bubble */
.nav-initial-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    color: white !important;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.nav-initial-badge:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Profile Image */
.nav-profile-image {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: 0.25s;
}

.nav-profile-image:hover {
    transform: scale(1.06);
}

/* Dropdown */
.dropdown-menu {
    border-radius: 14px;
    padding: 10px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile: Add vertical spacing */
@media (max-width: 991px) {
    .navbar-nav {
        gap: 14px;
        padding: 20px 0;
        align-items: flex-start;
    }
}

.nav-item a i {
    font-size: 26px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.25); /* glass effect */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.3);

    align-items: center;
    justify-content: space-between;
}

/* Left Section */
.top-bar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    /* flex: 1 1 260px;*/
}

.primary-user {
    font-size: 1.05rem;
    color: darkred !important;
}

.timestamp {
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Center (search) */
.top-bar-center {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
}

/* Right section */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 260px;
    justify-content: flex-end;
}

.capture-buttons {
    display: flex;
    gap: 6px;
}

/* Buttons shrink for mobile */
.icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
}

.icon-btn span {
    display: inline-block;
}

/* Hide text on extra small screens */
@media (max-width: 480px) {
    .icon-btn span {
        display: none;
    }
}

/* Stack right section on small screens */
@media (max-width: 768px) {
    .top-bar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .capture-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Make search full-width on small screens */
@media (max-width: 650px) {
    .top-bar-center {
        order: 99;
        flex: 1 1 100%;
    }
}

.badge {
    /*color: black !important;*/
    color: grey;
}

.product-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.product-cards {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
}

.product-cards::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 150px;
    max-width: 150px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
    scroll-snap-align: start;
}

.product-card img {
    width: 100%;
    border-radius: 10px;
}

.scroll-btn {
    background: none !important;
    border: none !important;
    padding: 0;
    font-size: 30px;
    color: #1A355B; /* clean blue */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* nice hover effect */
.scroll-btn:hover {
    color: #0A4ECF;
    transform: scale(1.1);
}

/* subtle press effect */
.scroll-btn:active {
    transform: scale(0.95);
}

.button-11 {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    border-radius: 10px;
    color: #4f8bff; /* visible since background removed */

    background: transparent !important; /* removed */
    border: none;
    opacity: 1;
    box-shadow: none; /* optional to remove shadow */
    cursor: pointer;
    transition: 0.25s ease;
    user-select: none;
    touch-action: manipulation;
}

.button-11:hover {
    background: rgba(79, 139, 255, 0.08);
    border-color: rgba(79, 139, 255, 0.6); /* the new border */
}

.button-11:active {
    background: rgba(79, 139, 255, 0.15);
    border-color: rgba(79, 139, 255, 0.8);
}

.glass {
    align-items: center;
    appearance: none;
    border-radius: 5px;
    /*  border: 1px solid #dcdcdc;*/
    background: rgb(224 228 233/1);
    cursor: pointer;
    display: inline-flex;
    fill: currentcolor;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(130 138 147 / 1);
    height: 28px;
    justify-content: center;
    letter-spacing: .25px;
    line-height: normal;
    max-width: 100%;
    overflow: visible;
    padding: 2px 14px;
    position: relative;
    text-align: center;
    text-transform: none;
    transition: background 150ms ease, border-color 150ms ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto;
    will-change: transform, opacity;
    z-index: 0;
}


.glass:hover {
    background: #F6F9FE;
    color: #174ea6;
}

.glass:active {
    box-shadow: 0 4px 4px 0 rgb(60 64 67 / 30%), 0 8px 12px 6px rgb(60 64 67 / 15%);
    outline: none;
}

.glass:focus {
    outline: none;
    border: 2px solid #4285f4;
}

.glass:not(:disabled) {
    /*  box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;*/
}

.glass:not(:disabled):hover {
    box-shadow: rgba(60, 64, 67, .3) 0 2px 3px 0, rgba(60, 64, 67, .15) 0 6px 10px 4px;
}

.glass:not(:disabled):focus {
    box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}

.glass:not(:disabled):active {
    box-shadow: rgba(60, 64, 67, .3) 0 4px 4px 0, rgba(60, 64, 67, .15) 0 8px 12px 6px;
}

.glass:disabled {
    box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}

.cta-background {
    background-size: cover;
    background-position: center center;
    bottom: 0;
    filter: blur(50px);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: -1;
}

.container-cta {
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 0px;
    padding: 2px;
    /* background-color: #0d172a;*/
    box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.2);
}

.cta {
    background: #333;
    box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.2);
    height: 200px;
    overflow: hidden;
    position: relative;
    width: 250px;
}

.cta:hover img {
    top: -10%;
    filter: brightness(70%);
}

.cta:hover .text {
    bottom: 0;
    background-color: white;
}

.cta img {
    bottom: 0;
    filter: brightness(100%);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.5s ease-in-out;
    width: 115%;
}

.cta .text {
    bottom: -40%;
    padding: 10px;
    position: absolute;
    transition: 0.5s ease-in-out;
    width: 100%;
}

.cta .text h2 {
    color: #0a53be;
    display: inline-block;
    font-weight: 300;
    margin-bottom: 5px;
    position: relative;
}

.cta .text p {
    color: #000;
    font-weight: 300;
}

.bg-spouse {
    background-color: #ffe6f0 !important;
}

.toggle-btn {
    display: flex; /* instead of inline-flex */
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.2em; /* remove horizontal margin so it truly fills */
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    background: #f3f4f6;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%; /* full width */
    box-sizing: border-box; /* ensure padding doesn’t overflow */
}

.account-links a {
    color: white;
    margin: 0 5px;
    letter-spacing: 2px;
}

.dropdown {
    display: flex;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d0d0d0;
    border-radius: 6px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #2A9C52;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.tree-zoom-wrapper {
    width: 100%;
    height: 600px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: auto; /* makes it scrollable */
    position: relative;
    background: #fafafa;
}

.tree-zoom-container {
    transform-origin: 0 0;
    transition: transform 0.2s ease;
    display: inline-block;
}

.zoom-controls .zoom-btn {
    padding: 5px 12px;
    margin-right: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tree-viewport {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.tree-viewport:active {
    cursor: grabbing;
}

.tree-zoom-container {
    transform-origin: 0 0;
    transition: transform 0.25s ease-in-out; /* Smooth zoom */
}

/* Hide Scrollbars */
.tree-viewport::-webkit-scrollbar {
    display: none;
}

.tree-viewport {
    scrollbar-width: none;
}

.tree-viewport {
    width: 100%;
    height: 80vh;
    overflow: auto;
    position: relative;
    background: #fafafa;
    cursor: grab;
}

.tree-viewport.dragging {
    cursor: grabbing;
}

.tree-zoom-container {
    transform-origin: center center;
    transition: transform 0.25s ease;
}

.post-img {
    width: 100%;
    height: 100%;
    min-height: 180px; /* adjust as needed */
    /*background-size: cover;*/
    background-position: center;
    border-radius: 0; /* important if card has rounding */
}
.display-product {
    width: 100%;
    height: 130px;
    min-height: 180px; /* adjust as needed */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


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

.article-excerpt p {
    color: #444 !important;
}

.genealogy-map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    /*min-height: 400px;*/
    /* background: white;*/
    backdrop-filter: blur(6px);
}

.genealogy-map-scroll {
    width: 100%;
    height: auto; /* grow with tree */
    overflow: hidden; /* remove scrollbars completely */
    position: relative;
    touch-action: none;
    border: 1px solid rgba(255, 255, 255, 1);
}

.genealogy-map-zoom {
    transform-origin: center center;
    display: inline-block;
}

/* Optional: make the tree centered horizontally */
.genealogy-map-scroll,
.genealogy-map-zoom {
    text-align: center;
}

.genealogy-map-scroll {
    /*background-image: url('/img/old_texture_two.png');*/
    background-repeat: repeat;
    background-size: auto;
    border-radius: 10px;
    min-height: 400px;
    background-color: #f6f1e8; /* warm parchment */
}

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

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

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

.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: #d5b14c;
    transition: 0.5s;
}

/*----------------genealogy-tree----------*/
.genealogy-body {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
}

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

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

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

.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: #d5b14c;
    transition: 0.5s;
}

/*----------------genealogy-tree----------*/
.genealogy-body {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
}

.genealogy-tree {
    display: inline-block;
    min-width: max-content; /* 🔴 ensures tree expands horizontally */
}

.genealogy-tree ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    padding-left: 0;
}

.genealogy-tree li {
    list-style: none;
    position: relative;
    padding: 13px 0px 0;
    flex-shrink: 0;
}

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

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

.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:first-child::before,
.genealogy-tree li:last-child::after {
    border: 0 none;
}

.genealogy-tree li:last-child::before {
    border-right: 2px solid #000;
    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: -20px;
    left: 50%;
    border-left: 2px solid #000;
    width: 0;
    height: 22px;
}

.genealogy-tree li a {
    text-decoration: none;
    color: #666;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 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;
}

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

.member-image img {
    border-radius: 6px;
    background-color: #000;
    z-index: 1;
}

.drop-tree {
    background-image: url('/img/old_texture_two.png');
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* spacing between all items */
    padding: 0.5rem;
}

/* Style the links like buttons */
.zoom-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap; /* Prevent wrapping */
}

/* Optional: Make zoom +/- matching */
.zoom-in,
.zoom-out,
.zoom-reset {
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    min-width: 38px;
    text-align: center;
}

/* Glass effect (from earlier) */

.glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-close {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    opacity: 1;
    transition: 0.22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: #6b7280;
}

.btn-close:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-close:active {
    transform: translateY(1px);
    box-shadow: none;
}

.post-card {
    position: relative;
}

.action-link {
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 6px;
    text-decoration: none !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.4);
    transition: 0.2s ease;
}

.action-link:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.edit-link {
    color: #0d6efd;
}

.delete-link {
    color: #dc3545;
}

.read-more-link {
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    color: darkslategrey;
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.25s ease;
}

.read-more-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #4a8cff, #9b6dff);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.read-more-link:hover {
    color: #6b4dff;
}

.read-more-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tool-bar-link {
    display: inline-block;
    padding: 5px 5px !important;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.tool-bar-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.accepted {
    background-color: #d4edda;
    color: #155724;
}

.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.pending {
    background-color: #fff3cd;
    color: #856404;
}

.member-view-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-view-box.hovered,
.member-view-box:hover {
    /*transform: scale(1.05);*/
   /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);*/
    z-index: 10;
}

#hover-user {
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
   /* z-index: 9999;*/
}

#hover-user.show {
    opacity: 1;
    transform: translateY(0);
}

.hover-card {
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    display: flex;
}

.hover-card img {
    max-width: 100px;
    height: 150px;
    border-radius: 5%;
    object-fit: cover;
    align-self: center;
}

.hover-info strong {
    display: block;
    font-size: 15px;
}

.hover-info small {
    color: #777;
}

.hover-info p {
    font-size: 13px;
    margin: 6px 0;
    color: #555;
}

.tree-node.no-children {
    cursor: default;
}

.tree-toggle {
    cursor: pointer;
}

.member-view-box.has-children::after {
    content: '';
    display: inline-block;
    margin: 2px;
    margin-top: -17px;
    width: 0;
    height: 0;
    /* DOWN arrow */
    border-top: 7px solid #1A355B;
    border-left: 6px solid transparent;
    border-right: 5px solid transparent;

    vertical-align: middle;
    transition: transform 0.2s ease;
}
/* rotate arrow when expanded */
li.open > .member-view-box.has-children::after {
    transform: rotate(180deg);
}
li:not(.open) > .member-view-box.has-children::after {
    opacity: 0.6;
}
.member-view-box.has-children {
    cursor: pointer;
}

.member-view-box.no-children {
    cursor: default;
}
.relationship-Female {
    font-size: 10px;
    color: deeppink;
}
.relationship-Male {
    font-size: 10px;
    color: #1A355B;
}

.card-spouse {
    width: 85px;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    font-family: system-ui, sans-serif;
}

/* Image Top */
.card-spouse-img {
    height: 45px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* White Bottom Section */
.card-spouse-body {
    padding: 2px 2px;
    text-align: center;
}

/* Text Styles */
.card-spouse .tree-card-title {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
}

.card-spouse p {
    font-size: 11px;
    margin: 2px 0 0;
    color: #64748b;
}

/* Hover Effect */
.card-spouse:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}


.spouse-node .card-spouse {
    transform: scale(0.92);
    opacity: 0.95;
}
.spouse-node .card-spouse {
    border: 2px solid #d4af37; /* gold */
    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        0 0 10px rgba(212,175,55,0.4);
}
.hover-sidebar {
    width:100%;
    padding: 16px 14px;
   /* background: #f4f6f9;*/
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.08);*/
}

/* Profile section */
.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e6eb;
}

.sidebar-profile img {
    width: 150px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.sidebar-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Navigation links */
.sidebar-nav,
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav a,
.sidebar-actions a {
    text-decoration: none;
    text-align: left;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    color: #333;
    transition: background 0.2s ease;
    background-color:#C2E7FF;
}

.sidebar-nav a:hover,
.sidebar-actions a:hover {
    background: #e9edf5;
}

/* Switches */
.sidebar-switches {
    margin-top: 6px;

    gap: 4px;
    font-size: 12px;
}
.tree-collapse {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Header */
.tree-collapse-header {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: #1e293b;
}

/* Count badge */
.tree-collapse-header small {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

/* Arrow */
.collapse-arrow {
    transition: transform 0.25s ease;
}

/* Rotate arrow when open */
.tree-collapse-header:not(.collapsed) .collapse-arrow {
    transform: rotate(180deg);
}

/* Body */
.tree-collapse-body {
    padding: 12px 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
/* Container */
#hover-user {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
}

/* Top nav row */
#hover-user .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #eee;
}

/* Each nav item */
#hover-user .col {
    padding: 0;
}

/* Links styled as buttons */
#hover-user a {
    display: block;
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

#hover-user a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-1px);
}

/* Profile section */
.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    text-align: center;
}

/* Profile image */
.sidebar-profile img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f1f1;
    margin-bottom: 8px;
}

/* Name */
.sidebar-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Notes */
.notes {
    font-size: 12px;
    color: #777;
    max-width: 200px;
}
