/* =================================================================
   WBS KEMENAG DEPOK - MASTER STYLESHEET
   ================================================================= */

/* --- 1. Global & Reset --- */
:root {
    --primary-color: #D32F2F;
    --secondary-color: #005662;
    --light-bg: #F7FAFC;
    --text-color: #2D3748;
    --text-color-light: #718096;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    line-height: 1.3;
    font-weight: 700;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 40px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #B71C1C;
}

/* --- 2. Header & Navigasi --- */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 45px;
    display: block;
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}

.site-description {
    font-size: 0.85em;
    color: var(--text-color-light);
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a.btn {
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 500;
    background-color: var(--primary-color);
    color: #fff;
    transition: all 0.3s ease;
}

.main-navigation a.btn:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
    color: #fff;
}

.menu-toggle {
    display: none;
}

/* --- 3. Page Layouts & Components --- */
.page-header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.8em;
}

.page-content, main {
    padding: 60px 0;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 60px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
}
.status-laporan-diterima { background-color: #ffc107; color: #333;}
.status-klarifikasi-awal { background-color: #17a2b8;}
.status-investigasi { background-color: #007bff;}
.status-selesai---terbukti, .status-selesai---tidak-terbukti { background-color: #28a745;}
.status-tidak-dapat-ditindaklanjuti { background-color: #6c757d; }


/* --- 4. Landing Page (index.php) --- */
.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-text { flex: 1.2; }
.hero-text h1 { font-size: 3.2em; line-height: 1.2; }
.hero-text p { font-size: 1.1em; color: var(--text-color-light); margin: 25px 0 35px; }
.hero-text .hero-link { font-weight: 600; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; height: auto; }

.grid { display: grid; gap: 30px; }
.grid-4-col { grid-template-columns: repeat(4, 1fr); }

.info-card { text-align: center; padding: 20px; }
.icon-wrapper { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background-color: #FEE2E2; border-radius: 10px; margin-bottom: 20px; }
.icon-wrapper .fas { font-size: 1.8em; color: var(--primary-color); }
.info-card h4 { font-size: 1.2em; margin-bottom: 10px; }
.info-card p { font-size: 0.95em; color: var(--text-color-light); }

.steps-grid .step-card span { display: inline-block; background: var(--secondary-color); color: #fff; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; font-weight: 700; margin-bottom: 15px; }
.steps-grid .step-card h4 { margin-bottom: 5px; }

.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { padding: 20px; font-weight: 600; cursor: pointer; position: relative; }
.faq-question::after { content: '+'; position: absolute; right: 20px; font-size: 1.5em; transition: transform 0.3s ease; color: var(--text-color-light); }
.faq-item.active .faq-question { color: var(--primary-color); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; transition: all 0.4s ease-in-out; }
.faq-answer p { padding-bottom: 20px; }
.faq-item.active .faq-answer { max-height: 200px; }

/* --- 5. Halaman Lacak (lacak.php) --- */
.lacak-form {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.lacak-form .form-group { flex-grow: 1; margin: 0; }
.lacak-form input { width: 100%; padding: 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 1em; }
.lacak-form .btn-primary {
    padding: 12px 28px;
    font-weight: 500;
    font-size: 1em;
    width: auto;
    background-color: var(--secondary-color);
    border: none;
    cursor: pointer;
    color: #fff; /* DIUBAH: Menambahkan ini agar teks menjadi putih */
}
.lacak-form .btn-primary:hover {
    background-color: #00434d;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}
.detail-table th, .detail-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}
.detail-table th {
    font-weight: 600;
    width: 200px;
    color: var(--text-color-light);
}
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: none; }

.timeline {
    margin-top: 20px;
    border-left: 3px solid #e9ecef;
    padding-left: 30px;
}
.timeline-item {
    position: relative;
    margin-bottom: 25px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid #fff;
}
.timeline-content {
    background-color: var(--light-bg);
    padding: 15px 20px;
    border-radius: 5px;
}
.timeline-content p {
    margin: 0;
    white-space: pre-wrap;
}
.timeline-date {
    display: block;
    font-size: 0.9em;
    color: var(--text-color-light);
    margin-bottom: 8px;
}
.attachment-link { margin-top: 10px !important; font-size: 0.9em; }
.attachment-link a { font-weight: bold; }

/* --- 6. Halaman Statistik & Detail --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.stat-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.stat-card h3 {
    font-size: 2.5em;
    margin: 0 0 5px 0;
    color: var(--secondary-color);
}
.stat-card p {
    margin: 0;
    color: var(--text-color-light);
    font-size: 1.1em;
}

.stats-table-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.stats-table-container {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.stats-table-container h3 {
    margin-top: 0;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}
.stats-table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}
.stats-table-container th, 
.stats-table-container td {
    padding: 10px 5px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.stats-table-container th {
    font-weight: bold;
    color: var(--text-color-light);
}
.stats-table-container tr:last-child td {
    border-bottom: none;
}
.stats-table-container td:last-child {
    text-align: right;
    font-weight: bold;
    font-size: 1.1em;
}
.stats-table-container td .status-badge {
    text-align: center;
}

/* --- 7. Formulir (buat-laporan.php) --- */
#laporanForm {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
#laporanForm h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group small {
    color: var(--text-color-light);
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}
.required {
    color: var(--primary-color);
}
button[type="submit"] {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
    background-color: #00434d;
}
.disclaimer {
    margin-top: 25px;
    padding: 15px;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

/* --- 8. Footer --- */
.site-footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding: 60px 0 20px;
    font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-grid h4 { color: #fff; margin-bottom: 15px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #A0AEC0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2D3748;
    font-size: 0.85em;
}

/* --- 7. Responsiveness --- */
@media (max-width: 992px) {
    .stats-table-wrapper {grid-template-columns: 1fr;}
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image { text-align: center; margin-top: 40px; }
    .grid-4-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    /* .site-title-wrap { display: none; } */
    .main-navigation { display: none; position: absolute; top: 75px; left: 0; width: 100%; background-color: #fff; }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; text-align: center; gap: 0; }
    .main-navigation ul li { border-bottom: 1px solid var(--border-color); }
    .main-navigation ul a { display: block; padding: 15px; }
    .main-navigation ul a.btn { margin: 10px; }
    .menu-toggle { display: block; cursor: pointer; font-size: 1.8em; background: none; border: none; }
    .grid-4-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .lacak-form { flex-direction: column; }
    .lacak-form button { width: 100%; margin-top: 10px; }
}