/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    height: auto;
    min-height: 65px;
}

/* Navigation Items */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s ease;
    padding: 4px 8px;
    position: relative;
}

.mobile-nav-item:hover {
    text-decoration: none;
    color: #374151;
}

.mobile-nav-item.active {
    color: var(--main-color-one, #1DBF73);
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Center Add Button */
.mobile-nav-center {
    position: relative;
    top: -8px;
}

.mobile-nav-center .center-button {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--main-color-one, #1DBF73) 0%, var(--main-color-two, #47C8ED) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 191, 115, 0.3);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-center .center-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(29, 191, 115, 0.4);
}

.mobile-nav-center .center-button i {
    color: #ffffff;
    font-size: 24px;
    margin: 0;
}

.mobile-nav-center span {
    color: var(--main-color-one, #1DBF73);
    font-weight: 600;
}

/* Active state for center button */
.mobile-nav-center.active .center-button {
    background: linear-gradient(135deg, #16a864 0%, #3ab8d9 100%);
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

/* Prevent body content from being hidden behind nav */
body {
    padding-bottom: 0;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 75px;
    }
}

/* Hide on tablet and desktop */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Smaller screens optimization */
@media (max-width: 360px) {
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
    
    .mobile-nav-center .center-button {
        width: 50px;
        height: 50px;
    }
    
    .mobile-nav-center .center-button i {
        font-size: 22px;
    }
}

/* Fix back-to-top button - place it above filter button on mobile */
@media (max-width: 767px) {
    .progressParent {
        right: 20px !important;
        left: auto !important;
        bottom: 155px !important;
    }
    
    .progressParent.rn-backto-top-active {
        right: 20px !important;
        left: auto !important;
        bottom: 155px !important;
    }
}
