<?php
// Debugging: Lihat apa isi session
// var_dump($_SESSION); 

if (isset($_SESSION['id_guru'])) {
    $id = $_SESSION['id_guru'];
    // ... dst
}
?>
<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SIAKAD GURU</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
    .sidebar { width: 260px; height: 100vh; background: #002147; color: white; position: fixed; overflow-y: auto; }
    .sidebar a { color: #dee2e6; text-decoration: none; padding: 12px 20px; display: block; transition: 0.3s; }
    .sidebar a:hover { background: #003366; color: white; }
    
    /* MODIFIKASI DISINI */
    .main-content { 
        margin-left: 260px; 
        padding: 20px 20px 20px 0px; /* Padding kiri jadi 0 */
    }
</style>
</head>
<body>
<div class="sidebar">
    <div class="p-3 text-center">
        <img src="/sias/assets/img/favicon.png" style="width: 60px; height: auto; margin-bottom: 10px;">
        <h5>SIAKAD GURU</h5>
        <small>SDN CIPUTAT 04</small>
    </div>
    <hr>
    
    <a href="dashboard.php" class="nav-link"><i class="bi bi-speedometer2"></i> Dashboard</a>
    <a href="tujuan_pembelajaran.php" class="nav-link"><i class="bi bi-book"></i> Input TP</a>
    <a href="input_nilai.php" class="nav-link"><i class="bi bi-pencil-square"></i> Input Nilai</a>
    <a href="siswa.php" class="nav-link"><i class="bi bi-person-badge"></i> Data Siswa</a>
    <a href="absensi_siswa.php" class="nav-link"><i class="bi bi-calendar-check"></i> Absensi</a>
    <a href="leger.php" class="nav-link"><i class="bi bi-table"></i> Leger Nilai</a>
    <a href="catatan_siswa.php" class="nav-link"><i class="bi bi-journal-text"></i> Catatan Siswa</a>
    <a href="input_nilai_ekskul.php" class="nav-link"><i class="bi bi-award"></i> Input Ekskul</a>
    
    <hr>
    <a href="../logout.php" class="nav-link text-danger"><i class="bi bi-box-arrow-right"></i> Keluar</a>
</div>

<div class="main-content">