<div class="col-md-3 col-lg-2 sidebar py-3">
    <div class="nav flex-column">
        <a href="{% url 'dashboard' %}" class="nav-link {% if request.path == '/dashboard/' %}active{% endif %}">
            <i class="bi bi-speedometer2"></i> Dashboard
        </a>
        
        <a href="{% url 'signals' %}" class="nav-link {% if '/signals' in request.path %}active{% endif %}">
            <i class="bi bi-lightning-charge"></i> Trading Signals
        </a>
        
        <a href="{% url 'coins' %}" class="nav-link {% if request.path == '/' or request.path == '/signals/' %}active{% endif %}">
            <i class="bi bi-currency-bitcoin"></i> Coins
        </a>
        
        <hr class="my-2">
        
        <a href="{% url 'wallet_overview' %}" class="nav-link {% if '/wallet' in request.path %}active{% endif %}">
            <i class="bi bi-wallet2"></i> Wallet
        </a>
        
        <a href="{% url 'deposit_request' %}" class="nav-link {% if '/deposits/request' in request.path %}active{% endif %}">
            <i class="bi bi-plus-circle"></i> Deposit
        </a>
        
        <a href="{% url 'deposit_history' %}" class="nav-link {% if '/deposits/history' in request.path %}active{% endif %}">
            <i class="bi bi-clock-history"></i> Deposit History
        </a>
        
        <hr class="my-2">
        
        <a href="{% url 'referral_dashboard' %}" class="nav-link {% if '/referrals' in request.path %}active{% endif %}">
            <i class="bi bi-people"></i> Referrals
        </a>
        
        <hr class="my-2">
        
        <a href="{% url 'profile' %}" class="nav-link {% if '/profile' in request.path %}active{% endif %}">
            <i class="bi bi-person"></i> My Profile
        </a>
        
        <a href="{% url 'password_change' %}" class="nav-link {% if '/password-change' in request.path %}active{% endif %}">
            <i class="bi bi-key"></i> Change Password
        </a>
        
        {% if user.is_staff %}
        <hr class="my-2">
        <div class="text-muted small px-3 py-1">Admin</div>
        
        <a href="{% url 'admin:index' %}" class="nav-link">
            <i class="bi bi-shield-lock"></i> Admin Panel
        </a>
        
        <a href="{% url 'admin_signals' %}" class="nav-link">
            <i class="bi bi-gear"></i> Manage Signals
        </a>
        
        <a href="{% url 'admin_deposits' %}" class="nav-link">
            <i class="bi bi-bank"></i> Manage Deposits
        </a>
        
        <a href="{% url 'admin_coins' %}" class="nav-link">
            <i class="bi bi-collection"></i> Manage Coins
        </a>
        {% endif %}
    </div>
</div>
