<?php
include "../koneksi.php";
?>

<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>Tambah Kelas</title>

<style>
body{
    font-family: Arial, sans-serif;
    background:#f3f4f6;
    margin:0;
}

/* CARD */
.card{
    max-width:500px;
    background:#fff;
    margin:60px auto;
    padding:30px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.card h2{
    margin-top:0;
    margin-bottom:20px;
}

/* FORM */
.form-group{
    margin-bottom:16px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:bold;
}

.form-group input{
    width:100%;
    padding:10px 12px;
    border:1px solid #d1d5db;
    border-radius:10px;
    font-size:14px;
}

.form-group input:focus{
    outline:none;
    border-color:#3b82f6;
}

/* BUTTON */
.btn{
    padding:10px 16px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:14px;
}

.btn-simpan{
    background:#10b981;
    color:#fff;
}

.btn-simpan:hover{
    background:#059669;
}

.btn-kembali{
    background:#e5e7eb;
    color:#111827;
    text-decoration:none;
    margin-left:10px;
}
</style>
</head>

<body>

<div class="card">
    <h2>Tambah Kelas</h2>

    <form action="kelas_proses_tambah.php" method="post">
        <div class="form-group">
            <label>Nama Kelas</label>
            <input type="text" name="nama_kelas" placeholder="Contoh: Kelas 1" required>
        </div>

        <div class="form-group">
            <label>Wali Kelas</label>
            <input type="text" name="wali_kelas" placeholder="Nama Wali Kelas" required>
        </div>

        <button type="submit" class="btn btn-simpan">Simpan</button>
        <a href="kelas.php" class="btn btn-kembali">Kembali</a>
    </form>
</div>

</body>
</html>
