/* --- Floating Glassmorphism Navigation Container --- */
.floating-nav-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    padding: 0 16px 20px 16px;
    z-index: 1000;
    pointer-events: none;
}

/* Glassmorphism Effect (Solusi Gambar 2) */
.floating-nav {
    pointer-events: auto;
    position: relative;
    /* Transparan putih + Blur untuk efek kaca buram */
    background: rgba(255 255 255 / 30%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border-radius: 40px; /* Sangat bulat memanjang sesuai figma */
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Indicators Biru yang Bergeser & Melebar (Solusi Gambar 1) */
.nav-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background-color: var(--brand-blue, #064CAD);
    border-radius: 30px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Menu Item */
.nav-item-link {
    position: relative;
    z-index: 2; /* Di atas indicator */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #444444;
    padding: 10px 16px;
    border-radius: 30px;
    transition: color 0.3s ease;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.nav-item-link i {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* Teks Label hanya muncul jika menu AKTIF */
.nav-item-link span {
    display: none;
    color: #ffffff;
}

.nav-item-link.active {
    color: #ffffff;
}

.nav-item-link.active span {
    display: inline-block;
}

/* Spacing bawah agar halaman tidak tertutup navbar */
.has-floating-nav {
    padding-bottom: 110px !important;
}

.nav-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Default state (Tidak teraktifkan): Tampilkan icon-default, sembunyikan icon-active */
.nav-item-link .icon-default {
    display: block;
}

.nav-item-link .icon-active {
    display: none;
}

/* Active state (Terpilih): Sembunyikan icon-default, tampilkan icon-active */
.nav-item-link.active .icon-default {
    display: none;
}

.nav-item-link.active .icon-active {
    display: block;
}