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

:root {
    --primary-color: #2e7d32;     /* Hijau DLH */
    --primary-light: #4caf50;
    --secondary-color: #1565c0;   /* Biru Disposisi/Tracking */
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --danger-color: #c62828;
    --warning-color: #ef6c00;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    background-color: #fafafa;
    color: var(--dark-color);
    line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.btn-login {
    background-color: var(--secondary-color);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.btn-login:hover {
    background-color: #0d47a1;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(46, 125, 50, 0.85), rgba(21, 101, 192, 0.85)), url('../img/pemda.png') no-repeat center/contain;
    background-attachment: fixed;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content max-width: 800px; margin: 0 auto; {
    h1 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 800; }
    p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary { background-color: #ffffff; color: var(--primary-color); }
.btn-primary:hover { background-color: var(--light-color); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background-color: rgba(255,255,255,0.1); }
.btn-block { width: 100%; display: block; text-align: center; font-size: 1rem; }

/* --- GRID LAYANAN (INDEX) --- */
.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.services-section h2 { margin-bottom: 40px; color: var(--primary-color); position: relative; }

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

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    border-top: 4px solid var(--primary-color);
}

.service-card .icon-box {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 { margin-bottom: 15px; font-size: 1.2rem; color: #333; }
.service-card ul { padding-left: 20px; color: #666; font-size: 0.9rem; }
.service-card ul li { margin-bottom: 8px; }

/* --- FORM & WRAPPER (PENGADUAN / TRACKING) --- */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: #fff;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-light);
    outline: none;
}

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

/* DROPZONE FILE */
.file-dropzone {
    border: 2px dashed var(--primary-light);
    padding: 30px;
    text-align: center;
    background: #f1f8e9;
    border-radius: var(--border-radius);
    position: relative;
    cursor: pointer;
}

.file-dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0; opacity: 0;
    cursor: pointer;
}

.file-list-preview {
    margin-top: 15px;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.file-preview-item button {
    background: none; border: none; color: var(--danger-color); cursor: pointer;
}

/* --- TRACKING TIMELINE AREA --- */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.search-box input { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: var(--border-radius); }
.search-box button { background-color: var(--secondary-color); color: white; border: none; padding: 12px 24px; border-radius: var(--border-radius); cursor: pointer; font-weight: bold; }

#statusBadge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #e3f2fd;
    color: var(--secondary-color);
    display: inline-block;
    margin-left: 10px;
}

.timeline-item {
    border-left: 3px solid var(--primary-light);
    padding-left: 20px;
    position: relative;
    padding-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    left: -8px;
    top: 5px;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 30px; color: #777; font-size: 0.9rem; margin-top: 60px; background: #eee;}

/* RESPONSIVE TRICKS */
@media (max-width: 600px) {
    .row-2 { grid-template-columns: 1fr; gap: 10px; }
    .nav-container { flex-direction: column; gap: 15px; }
   }


/* ==========================================================================
   1. RESET & VARIABEL UTAMA (TEMA HIJAU DLH & BIRU)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #2e7d32;     /* Hijau Identitas DLH */
    --primary-light: #e8f5e9;    /* Background Hijau Muda */
    --secondary-color: #1565c0;   /* Biru Informasi / Tracking */
    --dark-color: #212121;        /* Warna Teks Utama */
    --light-color: #f5f5f5;       /* Background Halaman */
    --danger-color: #c62828;      /* Status Ditolak / Tombol Keluar */
    --warning-color: #ef6c00;     /* Akses Pimpinan / Cetak */
    --border-radius: 8px;
    --shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.5;
    padding-bottom: 30px;
}

/* ==========================================================================
   2. NAVIGASI (NAVBAR) - OPTIMAL UNTUK LAYAR HP
   ========================================================================== */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 35px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================================================
   3. LAYOUT CONTAINER & FORM (PENGADUAN, TRACKING, LOGIN)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 800px;
    margin: 15px auto;
    padding: 0 15px;
}

.form-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background-color: #fff;
    -webkit-appearance: none; /* Normalkan tampilan select di iOS/Android */
}

/* Dropdown otomatis 2 kolom jika di PC, 1 kolom jika di HP */
.row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   4. KOSTUMISASI INPUT FILE (DROPZONE MEDIA BUKTI)
   ========================================================================== */
.file-dropzone {
    border: 2px dashed var(--primary-color);
    padding: 20px;
    text-align: center;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    position: relative;
}

.file-dropzone p {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.file-dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0; 
    opacity: 0;
    cursor: pointer;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eeeeee;
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 0.8rem;
}

/* ==========================================================================
   5. TOMBOL UTAMA (BUTTONS)
   ========================================================================== */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:block, .btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   6. TRACKING & TIMELINE VIEW
   ========================================================================== */
.search-box {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.search-box input {
    flex: 1;
}

.timeline-item {
    border-left: 2px solid var(--primary-color);
    padding-left: 15px;
    position: relative;
    padding-bottom: 20px;
    font-size: 0.85rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    left: -6px;
    top: 4px;
}

/* ==========================================================================
   7. OPTIMASI CETAK LAPORAN (MEDIA PRINT)
   ========================================================================== */
@media print {
    body { background: white; color: black; }
    .navbar, .btn-cetak, button, select { display: none !important; }
    .container { max-width: 100%; padding: 0; margin: 0; }
    .form-wrapper { box-shadow: none; padding: 0; }
        }
    
