<div class="app-wrapper-footer">
    <div class="app-footer">
        <div class="app-footer__inner">
            <!-- <div class="app-footer-left">
                                    <ul class="nav">
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                                Footer Link 1
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                                Footer Link 2
                                            </a>
                                        </li>
                                    </ul>
                                </div> -->
            <!-- <div class="app-footer-right">
                                    <ul class="nav">
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                                Footer Link 3
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                                <div class="badge bg-success me-1 ms-0">
                                                    <small>NEW</small>
                                                </div>
                                                Footer Link 4
                                            </a>
                                        </li>
                                    </ul>
                                </div> -->
        </div>
    </div>
</div>

<?php
    // CI4의 환경 변수(env)를 체크하여 스타일 결정
    $is_local = (ENVIRONMENT === 'development');
    $status_color = $is_local ? '#ffc107' : '#007bff'; // 로컬은 노란색, 서버는 파란색
?>

<div class="app-wrapper-footer" style="border-top: 5px solid <?= $status_color ?>;">
    <div class="app-footer">
        <div class="app-footer__inner">
            <div class="app-footer-left">
                <strong>Current Mode:</strong> <?= strtoupper(ENVIRONMENT) ?>
            </div>
            
            <div class="app-footer-right">
                <small class="text-muted">IP: <?= $_SERVER['SERVER_ADDR'] ?></small>
            </div>
        </div>
    </div>
</div>