/* Mobile Navigation Fix - Ensures proper horizontal layout on small screens */

/* Force horizontal layout for bottom navigation on all screen sizes */
.bottom-navigation {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e0e0e0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 8px 4px max(8px, env(safe-area-inset-bottom)) 4px !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    height: 70px !important;
    width: 100% !important;
}

/* Ensure nav items are displayed horizontally */
.bottom-navigation .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #666666 !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    min-width: 50px !important;
    max-width: 70px !important;
    flex: 1 !important;
    text-align: center !important;
}

.bottom-navigation .nav-item i {
    font-size: 1.3rem !important;
    margin-bottom: 2px !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.bottom-navigation .nav-item span {
    font-size: 0.65rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.bottom-navigation .nav-item:hover,
.bottom-navigation .nav-item.active {
    color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.1) !important;
}

.bottom-navigation .nav-item:hover i,
.bottom-navigation .nav-item.active i {
    transform: translateY(-2px) !important;
}

/* Responsive adjustments for very small screens */
@media (max-width: 360px) {
    .bottom-navigation .nav-item {
        min-width: 45px !important;
        padding: 4px 6px !important;
    }
    
    .bottom-navigation .nav-item i {
        font-size: 1.1rem !important;
    }
    
    .bottom-navigation .nav-item span {
        font-size: 0.6rem !important;
    }
}

/* Fix for any conflicting mobile styles */
@media (max-width: 768px) {
    /* Ensure bottom nav is always visible and horizontal */
    .bottom-navigation {
        display: flex !important;
        flex-direction: row !important;
    }
    
    /* Ensure no vertical stacking */
    .bottom-navigation .nav-item {
        flex-direction: column !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Ensure footer is visible but doesn't interfere with navigation */
    footer.bg-dark {
        display: block !important;
        margin-bottom: 70px !important;
    }
    
    /* Add bottom padding to main content */
    .main-content {
        padding-bottom: 80px !important;
        margin-bottom: 0 !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .bottom-navigation {
        display: none !important;
    }
}