body {
    font-family: Arial, sans-serif;
    background-image: url("../aset_gambar/bg.JPG");
    background-size: cover;
    display: flex;
    flex-direction: column; /* Change to column to allow footer to stay at the bottom */
    align-items: center;
    justify-content: center; /* Center the form */
    min-height: 100vh;
    margin: 0;
}

.data-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    padding: 20px;
    box-sizing: border-box;
}

.data {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slide-in 0.7s ease-in-out;
    margin-bottom: 15px;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1, h3 {
    color: #333;
    text-align: center;
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    width: 30%;
    font-weight: bold;
    color: #555;
    font-size: 1.1em;
}

.form-group input[type="text"], 
.form-group input[type="password"], 
.form-group input[type="file"], 
.form-group input[type="date"], 
.form-group input[type="datetime-local"], 
.form-group select {
    width: 65%;
    padding: 12px;
    font-size: 1.1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}


.form-group textarea {
    width: 65%;  /* Mengikuti gaya input lain */
    padding: 12px;
    font-size: 1.1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    resize: vertical;  /* Memungkinkan pengguna mengubah tinggi */
}



.form-group .radio-group {
    display: flex; 
    align-items: center;
    margin-left: 10px; 
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-container label {
    margin-right: 10px;
    width: 30%;
    font-size: 1.1em;
}

.logo-container img {
    width: 80px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    margin-right: 10px;
}

.logo-container img:hover {
    transform: scale(1.1);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.tombol, .tombol-kembali {
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9em;
    flex-grow: 1; 
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px; 
    line-height: 1; 
    max-width: 200px; 
}

.tombol {
    background: #007bff; 
}

.tombol:hover {
    background: #0056b3; 
}

.tombol-kembali {
    background: #8b0000; 
    text-decoration: none;
}

.tombol-kembali:hover {
    background: #a50000; 
}

.tombol-kembali span {
    margin-right: 5px; 
}

.tombol i {
    margin-right: 8px; 
}

footer {
    margin-top: auto; /* Push footer to the bottom */
    width: 100%;
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 10px; /* Add padding for visual space */
    position: relative; /* Ensure it remains at the bottom */
}


.qr-icon {
            position: absolute;
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
        }
        #video-preview {
            display: none;
            width: 100%;
            max-width: 300px; /* Ukuran preview kamera */
            margin-top: 10px;
        }


 #scanner, #scanner_anggota, #scanner_buku {
    display: none; /* Sembunyikan saat tidak aktif */
    width: 300px; /* Sesuaikan ukuran lebar scanner */
    height: 200px; /* Sesuaikan ukuran tinggi scanner */
    border: 2px solid #ccc;
    border-radius: 10px;
    margin: 10px auto;
    overflow: hidden;
}



/* Pastikan class form-group memiliki posisi relatif */
.form-group {
    position: relative;
}

/* Atur ikon QR agar selalu di pojok kanan dalam input */
.qr-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 18px;
}

/* Tambahkan padding kanan pada input agar ikon tidak menindih teks */
.form-group input {
    padding-right: 35px;
}

