<div class="sidebar">
    <div class="sidebar-brand">
        <h2>VAULTIXAI</h2>
    </div>
    <nav>
        <ul>
            <li><a href="dashboard.php" class="<?php echo ($currentPage === 'dashboard') ? 'active' : ''; ?>"><span class="nav-icon">🏠</span><?php echo $t['admin_dashboard']; ?></a></li>
            <li><a href="pages.php" class="<?php echo ($currentPage === 'pages') ? 'active' : ''; ?>"><span class="nav-icon">📄</span><?php echo $t['admin_pages']; ?></a></li>
            <li><a href="certifications.php" class="<?php echo ($currentPage === 'certifications') ? 'active' : ''; ?>"><span class="nav-icon">🏆</span><?php echo $t['admin_certifications']; ?></a></li>
            <li><a href="services.php" class="<?php echo ($currentPage === 'services') ? 'active' : ''; ?>"><span class="nav-icon">⚙️</span><?php echo $t['admin_services']; ?></a></li>
            <li><a href="sliders.php" class="<?php echo ($currentPage === 'sliders') ? 'active' : ''; ?>"><span class="nav-icon">🖼️</span><?php echo $t['admin_sliders']; ?></a></li>
            <li><a href="messages.php" class="<?php echo ($currentPage === 'messages') ? 'active' : ''; ?>"><span class="nav-icon">✉️</span><?php echo $t['admin_messages']; ?><?php if ($unreadMessagesCount > 0): ?><span class="badge bg-danger ms-2"><?php echo $unreadMessagesCount; ?></span><?php endif; ?></a></li>
            <li><a href="users.php" class="<?php echo ($currentPage === 'users') ? 'active' : ''; ?>"><span class="nav-icon">👥</span><?php echo $t['admin_users']; ?></a></li>
            <li><a href="settings.php" class="<?php echo ($currentPage === 'settings') ? 'active' : ''; ?>"><span class="nav-icon">⚙️</span><?php echo $isRTL ? 'الإعدادات' : 'Settings'; ?></a></li>
        </ul>
    </nav>
    <a href="<?php echo lang_switch_url($t['lang_switch_code']); ?>" class="sidebar-lang-btn">
        🌐 <?php echo $t['lang_switch_label']; ?>
    </a>
    <div class="sidebar-footer">
        <a href="logout.php"><span class="nav-icon">🚪</span><?php echo $t['admin_logout']; ?></a>
    </div>
</div>