/* Navigation Container */
.nav-bar {
    position: fixed;
    bottom:  10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    height: 75px;
    background-color: #222121;
    border-radius: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

/* Hide active icon by default, show inactive */
.nav-item .icon-active {
    display: none;
}

.nav-item .icon-inactive {
    display: block;
}

/* When active: show filled, hide outline */
.nav-item.active .icon-active {
    display: block;
}

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

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 4px; */
    flex: 1;
    text-decoration: none;
    transition: opacity 0.2s ease;
    opacity: 0.6; /* Inactive state */
}

/* Active State */
.nav-item.active {
    opacity: 1;
}

.nav-item:hover {
    opacity: 1;
}

/* Icon Container */
.nav-icon-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-box img,
.nav-icon-box svg {
    width: 22px;
    height: 22px;
    filter: none;
}

.nav-label {
    font-size: 11px;
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
}
/* Prevent icon flicker on page load */
.nav-icon-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Add this */
}

.nav-icon-box img,
.nav-icon-box svg {
    width: 22px;
    height: 22px;
    filter: none;
    position: absolute; /* Add this */
}

@media (min-width: 768px) {
    .nav-bar {
        display: none;
    }
}