<!-- Sidebar for Super Admin -->
<aside class="sidebar" id="sidebar">
    <div class="logo">
        <img src="images/logo.svg" alt="Divine Logo" onerror="this.style.display='none'">
        <h8>DIVINE REPORTS</h8>
    </div>
    <nav>
        <ul>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_dashboard.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_dashboard.php"><i class="fas fa-th-large"></i> Dashboard</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_schools.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_schools.php"><i class="fas fa-school"></i> Schools</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_add_school.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_add_school.php"><i class="fas fa-plus-circle"></i> Add School</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_broadcast.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_broadcast.php"><i class="fas fa-bullhorn"></i> Broadcast</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_invoices.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_invoices.php"><i class="fas fa-file-invoice-dollar"></i> Invoices</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_payments.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_payments.php"><i class="fas fa-credit-card"></i> Payments</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_surveys.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_surveys.php"><i class="fas fa-poll"></i> Surveys</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_backups.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_backups.php"><i class="fas fa-database"></i> Backups</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_reports_real_data.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_reports_real_data.php"><i class="fas fa-chart-line"></i> Reports</a>
            </li>
            <li <?php echo (basename($_SERVER['PHP_SELF']) == 'super_admin_settings.php') ? 'class="active"' : ''; ?>>
                <a href="super_admin_settings.php"><i class="fas fa-cog"></i> Settings</a>
            </li>
            <li><a href="logout.php" class="logout-btn"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
        </ul>
    </nav>
</aside>