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

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

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

/* CARD */
.card{
    max-width:600px;
    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,
.form-group textarea{
    width:100%;
    padding:10px 12px;
    border:1px solid #d1d5db;
    border-radius:10px;
    font-size:14px;
}

.form-group textarea{
    resize:vertical;
    min-height:120px;
}

.form-group input:focus,
.form-group textarea: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 Kegiatan</h2>

    <form action="kegiatan_proses_tambah.php" method="post" enctype="multipart/form-data">

        <div class="form-group">
            <label>Judul Kegiatan</label>
            <input type="text" name="judul" placeholder="Judul kegiatan" required>
        </div>

        <div class="form-group">
            <label>Deskripsi</label>
            <textarea name="deskripsi" placeholder="Deskripsi kegiatan" required></textarea>
        </div>

        <div class="form-group">
            <label>Foto Kegiatan</label>
            <input type="file" name="foto" required>
        </div>

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

    </form>
</div>

</body>
</html>
