        </div><!-- /.md-content -->
    </main>

    <!-- Confirm Delete Dialog -->
    <dialog class="md-dialog" id="confirmDeleteDialog">
        <div class="md-dialog__container">
            <div class="md-dialog__header">
                <?= icon('delete_forever', 'md-dialog__icon') ?>
                <h2 class="md-dialog__title">Confirm Deletion</h2>
            </div>
            <div class="md-dialog__content">
                <p>Are you sure you want to delete this item? This action cannot be undone.</p>
            </div>
            <div class="md-dialog__actions">
                <button class="md-button md-button--text" id="cancelDelete">Cancel</button>
                <a class="md-button md-button--filled md-button--error" id="confirmDeleteBtn" href="#">Delete</a>
            </div>
        </div>
    </dialog>
    <div class="md-dialog__scrim" id="dialogScrim"></div>

    <script src="js/app.js"></script>
    <?php
    // Snackbar notifications based on status parameter
    if (isset($_GET['status'])) {
        $statusMessages = [
            '1' => ['message' => 'Successfully updated!', 'type' => 'success'],
            '2' => ['message' => 'Successfully deleted!', 'type' => 'error'],
            '3' => ['message' => 'Welcome!', 'type' => 'info'],
            '4' => ['message' => 'Please fill out all required fields.', 'type' => 'warning'],
        ];
        $status = $_GET['status'];
        if (isset($statusMessages[$status])) {
            $msg = $statusMessages[$status];
            echo "<script>document.addEventListener('DOMContentLoaded', function() { showSnackbar('" . htmlspecialchars($msg['message'], ENT_QUOTES) . "', '" . $msg['type'] . "'); });</script>";
        }
    }
    ?>
</body>
</html>
