/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1030;
    padding: 0.5rem 0;
    border-top: 2px solid rgba(44, 95, 65, 0.2);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block !important;
    }
    
    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 75px !important;
    }
    
    /* Ensure main content doesn't overlap */
    main, .container {
        margin-bottom: 1rem;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Special styling for more than 5 items */
.bottom-nav-container.many-items .bottom-nav-item {
    padding: 0.4rem 0.5rem;
}

.bottom-nav-container.many-items .bottom-nav-item i {
    font-size: 1.1rem;
}

.bottom-nav-container.many-items .bottom-nav-item span {
    font-size: 0.65rem;
}
