/* ========================================================
 * 🧭 BESPOKE DYNAMIC EXPANDING PILL BOTTOM NAV
 * Material You Expressive & Flagship PWA
 * ======================================================== */

#bottomNavPill {
    width: calc(100% - 36px) !important;
    max-width: 344px !important;
    height: 56px !important;
    border-radius: 9999px !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    user-select: none !important;
    background: rgba(48, 51, 41, 0.94) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: none !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    z-index: 40 !important;
    overflow: visible !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

html.light #bottomNavPill {
    background: rgba(229, 227, 219, 0.95) !important;
    border: none !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

#bottomNavPill::after,
#bottomNavPill::before {
    display: none !important;
}

#bottomNavThumb {
    display: none !important;
}

/* TAB BUTTON ANATOMY */
.nav-tab-btn {
    height: 46px !important;
    width: 46px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
    color: var(--m3-on-surface-variant) !important;
    transition: width 0.32s cubic-bezier(0.2, 0.8, 0.25, 1),
                padding 0.32s cubic-bezier(0.2, 0.8, 0.25, 1),
                background-color 0.25s ease,
                box-shadow 0.25s ease,
                color 0.2s ease,
                transform 0.15s ease !important;
}

.nav-tab-btn:active {
    transform: scale(0.94) !important;
}

html.light .nav-tab-btn {
    color: var(--m3-on-surface-variant) !important;
}

.nav-tab-icon-wrap {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-tab-icon {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    display: block !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

.nav-tab-label {
    max-width: 0px !important;
    opacity: 0 !important;
    margin-left: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    pointer-events: none !important;
    line-height: 1 !important;
    color: currentColor !important;
    transition: max-width 0.32s cubic-bezier(0.2, 0.8, 0.25, 1),
                opacity 0.22s ease,
                margin 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) !important;
}

/* ACTIVE STATE: EXPANDING CAPSULE */
.nav-tab-btn.active {
    width: auto !important;
    padding: 0 16px !important;
    background: var(--m3-primary) !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--m3-on-primary-container) !important;
}

.nav-tab-btn.active .nav-tab-icon {
    transform: scale(1.05) !important;
    filter: none !important;
}

.nav-tab-btn.active .nav-tab-label {
    max-width: 90px !important;
    opacity: 1 !important;
    margin-left: 7px !important;
}

/* LIGHT MODE ACTIVE STATE */
html.light .nav-tab-btn.active {
    background: var(--m3-primary-container) !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--m3-on-primary) !important;
}

html.light .nav-tab-btn.active .nav-tab-icon {
    filter: none !important;
}
