/* =============================
   STYLE UMUM
============================= */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f3f4f6;
    padding: 0;
    margin: 0;
}


/* =============================
   WRAPPER FORM
============================= */
.container {
    max-width: 480px;
    margin: 25px auto;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}

/* =============================
   LABEL & INPUT
============================= */
label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fafb;
}

/* =============================
   FOTO BOX
============================= */
.foto-box {
    margin-top: 12px;
    padding: 15px;
    background: #f9fafb;
    border: 1px dashed #9ca3af;
    border-radius: 12px;
    text-align: center;
}

#preview {
    margin-top: 12px;
    width: 100%;
    border-radius: 12px;
    display: none;
}

video {
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    display: none;
}

/* =============================
   BUTTONS
============================= */
.btn-camera,
.btn-kirim {
    width: 100%;
    padding: 14px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-camera {
    background: #059669;
}

.btn-camera:hover {
    background: #047857;
}

.btn-kirim {
    background: #2563eb;
}

.btn-kirim:hover {
    background: #1d4ed8;
}
.btn-box {
    margin: 10px auto;
    width: 250px;
}

.btn-menu {
    display: block;
    padding: 15px;
    background: #007bff;
    color: white;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
}

.btn-menu:hover {
    background: #0056b3;
}
.logo {
    width: 50px;
    margin-bottom: 15px;
}
/* =============================
   MOBILE RESPONSIVE
============================= */
@media (max-width: 480px) {
    .container {
        margin: 15px;
        padding: 18px;
    }

    .header {
        font-size: 18px;
        padding: 15px;
    }
}
/* Animasi logo berputar setiap 5 detik */
@keyframes putarLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* =============================
   LOGO HALAMAN AWAL
============================= */


.logo-main {
    width: 120px;
    margin-bottom: 2px;
}

/* Terapkan animasi ke logo */
.logo-rotate {
    animation: putarLogo 5s linear infinite;
}
/* HEADER BAR */
.header-bar {
    background: #2563eb;
    color: white;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    
}

.header-logo {
    width: 60px;
    height: auto;
}

.header-title {
    font-size: px;
    font-weight: bold;
}

/* WHITE BOX */
.home-box {
    max-width: 550px;
    background: white;
    margin: 30px auto;
    padding: 35px 30px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.12);
}

.home-box h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.home-box p {
    color: #555;
    margin-bottom: 25px;
}

/* MENU BUTTONS — versi lebih rapi */
.btn-menu {
    display: block;
    width: 70%;               /* ⬅ tombol tidak melebar penuh */
    max-width: 280px;         /* ⬅ batas maksimal */
    padding: 13px;
    margin: 14px auto;        /* ⬅ jarak antar tombol */
    
    background: #0d6efd;
    color: white;
    text-align: center;
    text-decoration: none;

    border-radius: 12px;
    font-size: 17px;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    transition: 0.2s;
}

.btn-menu:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}


/* MOBILE FIX */
@media (max-width: 480px) {
    .header-title {
        font-size: 18px;
    }
    .header-logo {
        width: 50px;
    }
    .home-box {
        margin: 15px;
        padding: 28px;
    }
}

.judul-kegiatan {
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
    text-align: center;
}
.kegiatan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.judul-kegiatan {
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
}

.btn-kembali {
    background: #dc2626; /* MERAH */
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white; /* TEKS PUTIH */
    font-size: 14px;
    border: none;
    font-weight: 600;
}
.btn-kembali:hover {
    background: #b91c1c; /* MERAH LEBIH GELAP */
}

.btn-kembali:hover {
    background: #e5e7eb;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
}

.btn-admin {
    background: #007BFF;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

.btn-admin:hover {
    background: #0056b3;
}
.btn-admin {
    background: #007BFF;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}
.header-bar {
    position: relative;
    display: flex;
    justify-content: center;     /* pusatkan elemen tengah */
    align-items: center;
    padding: 10px 15px;
}

.btn-admin {
    position: absolute;
    right: 15px;                /* tombol admin tetap di kanan */
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 10px;                  /* jarak logo & tulisan */
}

.header-logo {
    width: 45px;
    height: auto;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
}
.btn-back {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #6b7280; /* abu soft */
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
}

.btn-back:hover {
    background: #4b5563;
}
