<?php
session_start();
if (!isset($_SESSION['user_id'])) {
    header("Location: login.php");
    exit();
}
?>

<?php require_once 'includes/header.php'; ?>

<div class="mode-wrap">

    <h2>Choose Assessment Mode</h2>
    <p class="sub">
        Select how you want to conduct the learning style assessment.
    </p>

    <div class="mode-cards">

        <!-- Facilitated Mode -->
        <a href="student_details.php?mode=facilitated" class="mode-card">
            <h3>🧑‍🏫 Facilitated Mode</h3>
            <p>
                Conduct the assessment under teacher supervision.
                Student details will be entered by the facilitator.
            </p>
        </a>

        <!-- Self Assessment Mode -->
        <a href="student_details.php?mode=self" class="mode-card">
            <h3>💻 Self-Assessment Mode</h3>
            <p>
                Students independently attempt the assessment using
                their name or roll number.
            </p>
        </a>

    </div>

    <a href="dashboard.php" class="back-link">← Back to Dashboard</a>
</div>

</body>
</html>
