body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; /* Modern light background */
    color: #212529; /* Darker text for better contrast */
    margin: 0;
    padding: 0;
    position: relative;
    line-height: 1.6;
}

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: 2.5em;
    word-wrap: break-word;
    font-weight: 700;
}

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.5em;
    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;
    font-size: small;
    font-style: italic;
    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%;
    min-width: 2000px; /* Ensure table is wide enough for all columns */
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}

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

#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-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.report-header h1 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.report-id {
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.report-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.status-diterima { background: rgba(40, 167, 69, 0.9); color: #fff; }
.status-diproses { background: rgba(255, 193, 7, 0.9); color: #fff; }
.status-selesai { background: rgba(23, 162, 184, 0.9); color: #fff; }

.report-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.report-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.section-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: 4px solid #004085;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.section-header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.section-content {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    transition: background 0.3s ease, transform 0.2s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 700;
    color: #495057;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-item span {
    font-size: 1.05em;
    color: #212529;
    line-height: 1.5;
    font-weight: 500;
}

.text-content {
    white-space: pre-wrap;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #007bff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-yes { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-no { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Witnesses Styles */
.witnesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.witness-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.witness-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.witness-card h3 {
    margin: 0 0 15px 0;
    color: #007bff;
    font-size: 1.2em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.witness-info .info-item {
    margin-bottom: 12px;
}

.witness-info .info-item:last-child {
    margin-bottom: 0;
}

/* Evidence Styles */
.evidence-description {
    margin-bottom: 20px;
}

.evidence-description label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.evidence-description p {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin: 0;
    line-height: 1.5;
}

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.evidence-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s ease;
}

.evidence-item:hover {
    transform: scale(1.02);
}

.evidence-item img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    object-fit: cover;
}

/* Icon placeholders (you can replace with actual icons) */
.icon-user::before { content: "👤"; }
.icon-target::before { content: "🎯"; }
.icon-event::before { content: "📅"; }
.icon-witness::before { content: "👁️"; }
.icon-evidence::before { content: "📎"; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .report-header {
        margin-bottom: 30px;
        padding: 20px;
    }

    .report-header h1 {
        font-size: 2.2em;
    }

    .report-meta {
        flex-direction: column;
        gap: 15px;
    }

    .report-content {
        padding: 0 10px;
    }

    .report-section {
        margin-bottom: 30px;
    }

    .section-header {
        padding: 15px 20px;
    }

    .section-header h2 {
        font-size: 1.4em;
    }

    .section-content {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        padding: 12px;
    }

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

    .evidence-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .report-header h1 {
        font-size: 1.8em;
    }

    .section-header h2 {
        font-size: 1.2em;
    }

    .info-item label {
        font-size: 0.85em;
    }

    .info-item span {
        font-size: 1em;
    }
}
