* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Background utama web diubah menjadi pink pastel lembut */
body {
    /* Memanggil gambar yang sudah diupload langsung di folder yang sama */
    background-image: url('bg-pink.jpg'); 
    background-size: 1000px; /* Atur ukuran gambar di sini, kalau kekecilan bisa diganti ke 400px atau 500px */
    background-repeat: repeat;
    background-attachment: fixed;
    color: #4a3b40;
    line-height: 1.6;
    padding: 20px;
}
}

/* Container utama halaman */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(219, 112, 147, 0.15); /* Shadow bernuansa pink halus */
}

/* Judul halaman menggunakan warna Deep Pink */
h1, h2, h3 {
    margin-bottom: 20px;
    color: #c71585; 
}

/* Navigasi Menu Utama */
nav {
    background: #ff69b4; /* Hot Pink */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: #db7093; /* Warna pink agak gelap saat di-hover mouse */
}

nav a.logout {
    background: #c71585; /* Pink tua tegas untuk tombol keluar */
    margin-left: auto;
}

nav a.logout:hover {
    background: #a91071;
}

/* Layout Grid Kolom */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Form Kartu Penginputan */
.form-card {
    background: #fff5f7; /* Background kotak form pink super soft */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffb6c1; /* Border pink muda */
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #c71585;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ffb6c1;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
}

/* Efek menyala pink saat input form diklik */
.form-control:focus {
    border-color: #ff69b4;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.4);
}

/* Pengaturan Umum Tombol */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
}

/* Tombol Masuk / Simpan Data */
.btn-primary { 
    background: #ff69b4; 
    color: white; 
    width: 100%; 
}

.btn-primary:hover { 
    background: #db7093; 
}

/* Tombol Kembali */
.btn-back { 
    background: #db7093; 
    color: white; 
    margin-bottom: 20px; 
}

.btn-back:hover { 
    background: #c71585; 
}

/* Desain Tabel Data Warga */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border: 1px solid #ffb6c1;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ffdae0;
    font-size: 14px;
}

/* Header Tabel diubah menjadi pink pastel */
th {
    background-color: #ffe4e1; 
    color: #c71585;
    font-weight: 600;
}

/* Baris tabel berubah warna saat dilewati mouse */
tr:hover {
    background-color: #fff0f5;
}

/* Box Putih pada Halaman Login */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(219, 112, 147, 0.2);
    text-align: center;
    border-top: 6px solid #ff69b4; /* Garis hiasan tebal warna pink di atas box */
}

/* Alert Pesan Error Merah */
.alert-danger {
    background: #fff0f2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

/* Kotak Informasi Akun Login (Sesuai Foto) */
.note-box {
    background: #fffcfd; 
    border: 1px dashed #db7093; /* Garis putus-putus merah muda */
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    font-size: 15px;
}

.note-title {
    color: #c71585;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.note-item {
    margin-bottom: 8px;
    color: #4a3b40;
}

.note-item span {
    display: inline-block;
    width: 90px; /* Menjaga agar tanda titik dua (:) sejajar lurus */
}

.note-footer {
    border-top: 1px dashed #ffb6c1;
    margin-top: 15px;
    padding-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #4a3b40;
    font-weight: 600;
}