<?php
$current_url = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
?>
<!-- Bottom Navigation (Mobile First) -->
<nav class="fixed bottom-0 left-0 right-0 z-50 bg-white/80 backdrop-blur-xl border-t border-gray-100 px-6 py-3 flex items-center justify-between -[0_-8px_30px_rgb(0,0,0,0.04)]">
 <a href="<?php echo url('/dashboard'); ?>" class="flex flex-col items-center gap-1 group">
 <div class="h-10 w-10 rounded-2xl flex items-center justify-center transition-all <?php echo $current_url === '/dashboard' ? 'bg-blue-600 text-white -600/20' : 'text-gray-400 group-hover:bg-gray-50'; ?>">
 <i class="fa-solid fa-house-chimney text-sm"></i>
 </div>
 <span class="text-[9px] font-black uppercase tracking-tighter <?php echo $current_url === '/dashboard' ? 'text-blue-600' : 'text-gray-400'; ?>">Home</span>
 </a>

 <a href="<?php echo url('/student/courses'); ?>" class="flex flex-col items-center gap-1 group">
 <div class="h-10 w-10 rounded-2xl flex items-center justify-center transition-all <?php echo $current_url === '/student/courses' ? 'bg-blue-600 text-white -600/20' : 'text-gray-400 group-hover:bg-gray-50'; ?>">
 <i class="fa-solid fa-graduation-cap text-sm"></i>
 </div>
 <span class="text-[9px] font-black uppercase tracking-tighter <?php echo $current_url === '/student/courses' ? 'text-blue-600' : 'text-gray-400'; ?>">Courses</span>
 </a>

 <a href="<?php echo url('/student/materials'); ?>" class="flex flex-col items-center gap-1 group">
 <div class="h-10 w-10 rounded-2xl flex items-center justify-center transition-all <?php echo $current_url === '/student/materials' ? 'bg-blue-600 text-white -600/20' : 'text-gray-400 group-hover:bg-gray-50'; ?>">
 <i class="fa-solid fa-book-open-reader text-sm"></i>
 </div>
 <span class="text-[9px] font-black uppercase tracking-tighter <?php echo $current_url === '/student/materials' ? 'text-blue-600' : 'text-gray-400'; ?>">Study</span>
 </a>

 <a href="<?php echo url('/student/fees'); ?>" class="flex flex-col items-center gap-1 group">
 <div class="h-10 w-10 rounded-2xl flex items-center justify-center transition-all <?php echo $current_url === '/student/fees' ? 'bg-blue-600 text-white -600/20' : 'text-gray-400 group-hover:bg-gray-50'; ?>">
 <i class="fa-solid fa-wallet text-sm"></i>
 </div>
 <span class="text-[9px] font-black uppercase tracking-tighter <?php echo $current_url === '/student/fees' ? 'text-blue-600' : 'text-gray-400'; ?>">Fees</span>
 </a>

 <a href="<?php echo url('/student/profile'); ?>" class="flex flex-col items-center gap-1 group">
 <div class="h-10 w-10 rounded-2xl flex items-center justify-center transition-all <?php echo $current_url === '/student/profile' ? 'bg-blue-600 text-white -600/20' : 'text-gray-400 group-hover:bg-gray-50'; ?>">
 <i class="fa-solid fa-user-gear text-sm"></i>
 </div>
 <span class="text-[9px] font-black uppercase tracking-tighter <?php echo $current_url === '/student/profile' ? 'text-blue-600' : 'text-gray-400'; ?>">Profile</span>
 </a>
</nav>
