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

<!DOCTYPE html>
<html>
<head>
<title>Tambah Ustadz</title>

<style>
body{
    font-family:Arial, sans-serif;
    background:#f3f4f6;
    margin:0;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.card{
    width:100%;
    max-width:600px;
    background:#fff;
    padding:30px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

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

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

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

.form-group input,
.form-group textarea{
    width:100%;
    padding:10px;
    border:1px solid #d1d5db;
    border-radius:10px;
}

.btn{
    padding:10px 16px;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

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

.btn-kembali{
    background:#e5e7eb;
    text-decoration:none;
    padding:10px 16px;
    border-radius:10px;
    margin-left:10px;
}
</style>
</head>

<body>

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

<form action="ustadz_proses_tambah.php" method="post">

<div class="form-group">
    <label>Nama Ustadz</label>
    <input type="text" name="nama" required>
</div>

<div class="form-group">
    <label>Bidang</label>
    <input type="text" name="bidang" required>
</div>

<div class="form-group">
    <label>Alamat</label>
    <textarea name="alamat" required></textarea>
</div>

<button class="btn btn-simpan">Simpan</button>
<a href="ustadz.php" class="btn-kembali">Kembali</a>

</form>
</div>

</body>
</html>
