.tree {
        display: flex;
        justify-content: left;
        margin-top: 40px;
        text-align: center;
        overflow-x: auto;
        /* bikin scroll horizontal */
        padding-bottom: 20px;
        white-space: nowrap;
        /* biar gak patah baris */
    }

    .tree ul {
        padding-top: 20px;
        position: relative;
        display: inline-flex;
        /* biar child li nempel tanpa lebar fix */
        gap: 10px;
        /* jarak antar kotak anak */
    }

    .tree li {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        list-style: none;
        padding: 20px 5px 0 5px;
    }

    .tree li::before,
    .tree li::after {
        content: '';
        position: absolute;
        top: 0;
        border-top: 2px solid #ccc;
        width: 50%;
        height: 20px;
    }

    .tree li::before {
        right: 50%;
    }

    .tree li::after {
        left: 50%;
        border-left: 2px solid #ccc;
    }

    .tree li:only-child::before,
    .tree li:only-child::after {
        display: none;
    }

    .tree li:only-child {
        padding-top: 0;
    }

    .tree li:first-child::before,
    .tree li:last-child::after {
        border: 0 none;
    }

    .tree li:last-child::before {
        border-right: 2px solid #ccc;
        border-radius: 0 5px 0 0;
    }

    .tree li:first-child::after {
        border-radius: 5px 0 0 0;
    }

    .tree li div {
        border: 1px solid #ccc;
        padding: 8px 15px;
        border-radius: 10px;
        background: #f8f9fa;
        transition: .3s;
        white-space: nowrap;
        /* cegah teks pecah ke bawah */
        width: fit-content;
        /* biar ukuran pas konten */
        text-align: center;
    }

    .tree li div:hover {
        background: #e9ecef;
        transform: scale(1.05);
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* Container tombol melayang */
#floatingMenu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row; /* tombol sejajar horizontal */
    gap: 10px; /* jarak antar tombol */
}

    /* Tombol melayang */
.floatingBtn {
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

   .floatingBtn:hover {
    transform: scale(1.1);
    background-color: #e0a800;
}