<?php
session_start();

if (!isset($_SESSION["umail"]) || empty($_SESSION["umail"])) {
	header('Location: AdminLogin.php');
	exit();
}
$userid = $_SESSION["umail"];
?>
<!DOCTYPE HTML>
<html lang="en">

<head>
	<?php include('adminhead.php'); ?>
	<style>
		.admin-container {
			min-height: 100vh;
			/* Full height of the viewport */
			display: flex;
			align-items: center;
			/* Vertically center the content */
			justify-content: center;
			/* Horizontally center the content */
		}

		.admin-buttons {
			width: 100%;
			/* Full width of parent container */
			max-width: 400px;
			/* Optional: Set a max width for the buttons area */
		}

		.admin-buttons .btn {
			padding: 20px;
			/* Increase button padding for a larger appearance */
			margin-bottom: 20px;
			/* Add space between buttons */
		}
	</style>
</head>

<body>
	<div class="container admin-container">
		<div class="text-center admin-buttons">
			<!-- Welcome message for admin -->
			<h3>Welcome, <a href="welcomeadmin" class="text-decoration-none">Admin</a></h3>

			<!-- Buttons -->
			<div class="d-grid gap-4">
				<a href="studentdetails" class="btn btn-success btn-lg" style="border-radius: 8px;">
					<i class="fa fa-graduation-cap me-2"></i>Student Details
				</a>
				<a href="facultydetails" class="btn btn-success btn-lg" style="border-radius: 8px;">
					<i class="fa fa-users me-2"></i>Teachers Details
				</a>
				<a href="guestdetails" class="btn btn-success btn-lg" style="border-radius: 8px;">
					<i class="fa fa-user me-2"></i>Guest Details
				</a>
				<a href="logoutadmin" class="btn btn-danger btn-lg" style="border-radius: 8px;">
					Logout
				</a>
			</div>
		</div>
	</div>

	<?php include('allfoot.php'); ?>
</body>

</html>