<?php
if(session_status() === PHP_SESSION_NONE){
    session_start();
}
?>

<!DOCTYPE html>
<html>
<head>

<title>Digital Panchayat</title>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- MAIN CSS -->
<link rel="stylesheet" href="/digital_panchayat/assets/css/style.css?v=2">

<!-- FONT AWESOME -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">

<!-- BOOTSTRAP -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">

<style>

/* RESET */
body{
    margin:0;
    font-family: 'Segoe UI', Arial;
    background:#f4f6f9;
}

/* ===== MOBILE APP HEADER ===== */
.app-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:55px;
    background:#2c3e50;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 15px;
    z-index:1000;
}

.app-header h3{
    font-size:16px;
    margin:0;
}

.app-header .user{
    font-size:13px;
}

/* ===== CONTENT AREA ===== */
.app-content{
    padding:70px 15px 80px;
}

/* ===== CARD UI ===== */
.card-box{
    background:#fff;
    padding:15px;
    border-radius:12px;
    margin-bottom:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.card-box h2{
    margin:0;
    font-size:22px;
}

.card-box p{
    margin:5px 0 0;
    font-size:13px;
    color:#666;
}

/* ===== GRID ===== */
.card-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:60px;
    background:#fff;
    border-top:1px solid #ddd;
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:1000;
}

.bottom-nav a{
    text-decoration:none;
    color:#555;
    font-size:12px;
    text-align:center;
}

.bottom-nav a i{
    display:block;
    font-size:20px;
    margin-bottom:3px;
}

.bottom-nav a.active{
    color:#007bff;
}

</style>

</head>

<body>

<!-- APP HEADER -->
<div class="app-header">
    <h3>Digital Panchayat</h3>
    <div class="user">
        <?php echo $_SESSION['name'] ?? 'Admin'; ?>
    </div>
</div>

<!-- CONTENT START -->
<div class="app-content">