body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f0f0f0; /* Light gray background */
    color: #333; /* Dark gray text */
    margin: 0;
    padding: 0;
    position: relative;
}

.data-grid,
.data-pelapor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.data-grid div,
.data-pelapor-grid div {
    margin-bottom: 10px;
}

.saksi,
.saksi-detail {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9; /* Very light gray */
    margin-bottom: 20px;
    border-radius: 8px;
}

button, .back-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

button:hover, .back-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

.back-button-container {
    text-align: center;
    margin: 20px 0;
}

.ktp-image,
.bukti-image {
    max-width: 200px;
    max-height: 200px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    transition: box-shadow 0.3s ease;
}

.ktp-image:hover,
.bukti-image:hover {
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.6);
}

.card-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    padding: 25px 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.card-container:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-container h2 {
    color: #0056b3;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 8px;
}

.back-button {
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 8px;
    display: inline-block;
    background: linear-gradient(135deg, #0056b3, #003d80);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.6);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(135deg, #003d80, #00274d);
    box-shadow: 0 6px 15px rgba(0, 61, 128, 0.8);
}

.data-grid div {
    font-size: 15px;
    color: #222;
}

.data-grid div strong {
    color: #007bff;
    font-weight: 600;
}

.saksi-detail {
    background: #f7faff;
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid #d0e3ff;
    margin-bottom: 20px;
}

.saksi-detail h3 {
    color: #004080;
    margin-bottom: 12px;
}

footer p {
    font-weight: 600;
    color: #333;
    font-style: normal;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cnc-magazine.oramiland.com/parenting/images/Batik_Papua_dan_Maknanya.width-800.format-webp.webp');
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
}

header {
    background-image: url('https://www.nesiatimes.com/wp-content/uploads/2019/10/IMG_20191029_174135.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.2);
    z-index: 1;
}
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}
.nav-menu {
    position: absolute;
    right: 10px;
    bottom: -25px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-right: 20px;
    flex-shrink: 0;
}

h1 {
    margin: 0 0 20px 0;
    color: #000; /* White text for main */
    text-align: center;
    font-size: 2em;
    word-wrap: break-word;
    font-weight: bold;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff; /* White background for form */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 30px;
}

.data-pelapor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.data-pelapor-grid div {
    margin-bottom: 10px;
}

h2 {
    color: #333; /* Darker gray */
    font-size: 1,3em;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007bff;
}

h3 {
    color: #666;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea {
    height: 100px;
    resize: vertical;
}

.saksi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.saksi {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9; /* Very light gray */
}

button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

footer {
    background-color: #c0c0c0;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
    font-style: italic;
}

#locationDateTime {
    font-weight: bold;
    color: #000;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
}

.checkbox-label input {
    margin-right: 8px;
    margin-top: 0;
    width: 16px;
    height: 16px;
}

.left-align {
    text-align: left;
}

/* Navigation menu styles */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    display: inline;
}

.nav-menu li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #0056b3;
    border-radius: 4px;
}

.nav-menu li a:hover {
    background-color: #0056b3;
}

/* Login page header */
.login-header {
    color: #0056b3;
    font-weight: bold;
}

/* Login form styles */
main form#loginForm {
    max-width: 300px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

main form#loginForm label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

main form#loginForm input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

main form#loginForm input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

main form#loginForm button {
    margin-top: 15px;
    width: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    transition: background 0.3s ease, transform 0.2s ease;
}

main form#loginForm button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

/* Data laporan page styles */
#laporanData {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.report-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.report-item h3 {
    margin-top: 0;
    color: #555;
}

.report-item p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    h1 {
        text-align: center;
        font-size: 1.2em;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .nav-menu li a {
        display: block;
        text-align: center;
    }

    main {
        margin: 10px;
        padding: 15px;
    }

    .data-pelapor-grid {
        grid-template-columns: 1fr;
    }

    .saksi-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 10px;
    }

    main form#loginForm {
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1em;
    }

    h2 {
        font-size: 1.2em;
    }

    input, select, textarea {
        font-size: 14px; /* Prevent zoom on iOS */
    }

    button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Data Laporan Table Styles */
#laporanData {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#laporanTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
    table-layout: fixed; /* Fixed table layout for proportional columns */
}

#laporanTable th, #laporanTable td {
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: top;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Proportional column widths like Excel */
#laporanTable .col-name {
    width: 150px; /* Names - wider */
}

#laporanTable .col-address {
    width: 200px; /* Addresses - wider */
}

#laporanTable .col-date {
    width: 100px; /* Dates - medium */
}

#laporanTable .col-short {
    width: 80px; /* Short fields like gender, occupation - narrower */
}

#laporanTable .col-phone {
    width: 120px; /* Phone numbers - medium */
}

#laporanTable .col-email {
    width: 150px; /* Email - medium */
}

#laporanTable .col-image {
    width: 100px; /* Images - fixed width */
    text-align: center;
}

#laporanTable .col-desc {
    width: 180px; /* Descriptions - wider */
}

#laporanTable .col-long {
    width: 250px; /* Long text like uraian kejadian - wider */
}

#laporanTable .col-action {
    width: 120px; /* Action buttons - fixed width */
    text-align: center;
}

#laporanTable th {
    background-color: #4CAF50;
    color: white;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: bold;
}

#laporanTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

#laporanTable tr:hover {
    background-color: #ddd;
}

#exportBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 10px;
}

#exportBtn:hover {
    background-color: #45a049;
}

/* Back button styles */
.back-button-container {
    text-align: center;
    margin: 20px 0;
}

.back-button {
    background-color: #666 !important;
    color: #fff !important;
    font-weight: bold;
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 14px !important;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #444 !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

#closeModalBtn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

#closeModalBtn:hover {
    background-color: #0056b3;
}

/* Action Button Styles */
.action-btn {
    padding: 5px 10px;
    margin: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-btn {
    background-color: #007bff;
    color: white;
}

.view-btn:hover {
    background-color: #0056b3;
}

.edit-btn {
    background-color: #28a745;
    color: white;
}

.edit-btn:hover {
    background-color: #1e7e34;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Report Detail Styles */
.report-detail {
    max-width: 800px;
    margin: 0 auto;
}

.report-detail h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007bff;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.data-grid div {
    margin-bottom: 10px;
}

.data-grid strong {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.saksi-detail {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.saksi-detail h3 {
    margin-top: 0;
    color: #666;
}

.bukti-detail {
    margin-bottom: 20px;
}

.bukti-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.bukti-images img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}
