<div class="sidebar" id="sidebarMenu">
    <div class="sidebar-header text-center">
        <h5 class="fw-bold text-white mb-0" style="letter-spacing: 1px;">TEACHER PORTAL</h5>
        <small style="color: var(--theme-gold); font-weight: 700; opacity: 0.8; text-transform: uppercase; font-size: 10px;">Ahmad Online Academy</small>
    </div>
    
    <nav class="mt-4">
        <a href="dashboard.php" class="<?= ($current_page == 'dashboard') ? 'active' : '' ?>">
            <i class="fas fa-th-large"></i> Dashboard
        </a>

        <a href="manage_classes.php" class="<?= (in_array($current_page, ['manage_classes', 'add_class', 'edit_class'])) ? 'active' : '' ?>">
            <i class="fas fa-video"></i> Live Classes
        </a>

        <a href="manage_materials.php" class="<?= (in_array($current_page, ['manage_materials', 'add_material', 'edit_material'])) ? 'active' : '' ?>">
            <i class="fas fa-file-pdf"></i> Course Materials
        </a>

        <a href="assignments.php" class="<?= (in_array($current_page, ['assignments', 'add_assignment', 'edit_assignment'])) ? 'active' : '' ?>">
            <i class="fas fa-tasks"></i> Assignments
        </a>

        <a href="my_students.php" class="<?= (in_array($current_page, ['my_students', 'view_student'])) ? 'active' : '' ?>">
            <i class="fas fa-user-graduate"></i> My Students
        </a>

        <a href="attendance.php" class="<?= ($current_page == 'attendance') ? 'active' : '' ?>">
            <i class="fas fa-calendar-check"></i> Attendance
        </a>

        <a href="class_notices.php" class="<?= (in_array($current_page, ['class_notices', 'add_notice', 'edit_notice'])) ? 'active' : '' ?>">
            <i class="fas fa-bullhorn"></i> Class Notices
        </a>

        <a href="profile.php" class="<?= ($current_page == 'profile') ? 'active' : '' ?>">
            <i class="fas fa-user-circle"></i> My Profile
        </a>

        <div style="margin-top: 30px; margin-bottom: 30px;">
            <hr class="mx-4" style="background-color: rgba(255,255,255,0.1); height: 1px; border: none;">
            <a href="logout.php" class="text-danger fw-bold">
                <i class="fas fa-power-off"></i> Logout
            </a>
        </div>
    </nav>
</div>