/* =====================
   GLOBAL
===================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

/* =====================
   NAVBAR DESA
===================== */
.navbar-desa {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.navbar-desa .nama {
    font-weight: 800;
    font-size: 15px;
}

.navbar-desa .kab {
    font-size: 12px;
    color: #6b7280;
}

/* =====================
   HERO / LANDING PAGE
===================== */
.hero {
    min-height: 90vh;
    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
        url("../img/sawah.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero p {
    font-size: 18px;
    margin-top: 15px;
    line-height: 1.6;
}

/* tombol landing */
.btn-pengaduan {
    background: #7c1c6b;
    color: white;
    padding: 14px 34px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.btn-pengaduan:hover {
    background: #641457;
    color: white;
}

.btn-status {
    background: transparent;
    color: white;
    padding: 14px 34px;
    border-radius: 12px;
    border: 2px solid white;
    font-weight: 700;
    text-decoration: none;
}

.btn-status:hover {
    background: white;
    color: #7c1c6b;
}

/* =====================
   KATEGORI
===================== */
.kategori-section {
    padding: 70px 0;
    background: #ffffff;
}

.kategori-section h2 {
    text-align: center;
    font-weight: 800;
    margin-bottom: 40px;
}

.kartu-kategori {
    background: white;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    height: 100%;
}

.kartu-kategori h5 {
    margin-top: 15px;
    font-weight: 700;
}

.kartu-kategori p {
    font-size: 14px;
    color: #6b7280;
}

.icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
}

.icon-bencana { background: #dc2626; }
.icon-adat { background: #9333ea; }
.icon-pertanian { background: #16a34a; }
.icon-kriminal { background: #2563eb; }

/* =====================
   FORM PENGADUAN
===================== */
.form-wrapper {
    max-width: 720px;
    margin: 50px auto;
    padding: 0 15px;
}

.form-card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
}

.form-card h4 {
    font-weight: 800;
}

.form-card p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
}

.form-card input,
.form-card textarea,
.form-card select {
    border-radius: 10px;
    font-size: 14px;
}

.btn-submit {
    background: #7c1c6b;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    padding: 12px;
}

.btn-submit:hover {
    background: #641457;
}

/* =========================
   ANIMASI HERO MELETUP
========================= */

.hero h1{
    animation: meletup 1.2s ease-out;
    transform-origin: center;
}

.hero p{
    animation: meletup 1.6s ease-out;
    transform-origin: center;
}

.btn-pengaduan{
    animation: meletupBtn 2s ease-out;
}

.btn-status{
    animation: meletupBtn 2.3s ease-out;
}

/* Efek meletup */
@keyframes meletup{
    0%{
        opacity: 0;
        transform: scale(0.2);
        filter: blur(10px);
    }

    60%{
        opacity: 1;
        transform: scale(1.15);
        filter: blur(0);
    }

    80%{
        transform: scale(0.95);
    }

    100%{
        transform: scale(1);
    }
}

/* Tombol meletup */
@keyframes meletupBtn{
    0%{
        opacity: 0;
        transform: scale(0);
    }

    60%{
        opacity: 1;
        transform: scale(1.2);
    }

    100%{
        transform: scale(1);
    }
}

/* Hover tombol */
.btn-pengaduan:hover,
.btn-status:hover{
    transform: scale(1.05);
    transition: 0.3s;
}

/* Efek glow hero */
.hero{
    position: relative;
    overflow: hidden;
}

/* Lingkaran animasi background */
.hero::before{
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -200px;
    left: -100px;
    animation: gerakGlow 6s infinite linear;
}

.hero::after{
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
    animation: gerakGlow 8s infinite linear;
}

@keyframes gerakGlow{
    0%{
        transform: rotate(0deg) scale(1);
    }

    50%{
        transform: rotate(180deg) scale(1.1);
    }

    100%{
        transform: rotate(360deg) scale(1);
    }
}
/* =========================
   SIDEBAR ADMIN
========================= */

body{
    margin: 0;
    background: #f4f6f9;
    font-family: sans-serif;
}

.sidebar-admin{
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: #0d1b3e;
    padding: 25px 15px;
    color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}



.sidebar-menu{
    list-style: none;
    padding: 0;
}

.sidebar-menu li{
    margin-bottom: 10px;
}

.sidebar-menu a{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.sidebar-menu a:hover{
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.sidebar-menu a.active{
    background: #198754;
}

.sidebar-menu a.logout{
    background: #dc3545;
}

.main-content{
    margin-left: 270px;
    padding: 30px;
}

/* =========================
   CARD STATISTIK
========================= */

.statistik{
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card{
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.stat-card:hover{
    transform: translateY(-5px);
}

.stat-card h2{
    font-size: 40px;
    color: #0d1b3e;
}

/* =========================
   BOX
========================= */

.card-box{
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* =========================
   DOWNLOAD PDF
========================= */

.download-box{
    margin-bottom: 20px;
}

.download-box a{
    text-decoration: none;
    background: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
}

/* =========================
   STATUS BADGE
========================= */

.badge-status{
    display: inline-block;
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 8px;
}

.badge-status.menunggu{
    background: #ffc107;
    color: black;
}

.badge-status.diproses{
    background: #0d6efd;
    color: white;
}

.badge-status.selesai{
    background: #198754;
    color: white;
}
/* =========================
   TABEL ADMIN RAPI
========================= */

.table-custom {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table-custom th,
.table-custom td {
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 14px;
}

/* Header tabel */
.table-custom th {
    background: #f3f4f6;
    font-weight: 700;
    text-align: center;
}

/* Kolom nomor kecil */
.table-custom th:first-child,
.table-custom td:first-child {
    width: 50px;
    text-align: center;
}

/* Hover */
.table-custom tbody tr:hover {
    background: #f9fafb;
}
/* =========================
   TANGGAPAN ADMIN
========================= */

.navbar-tanggapan{
    background: #198754;
    padding: 14px 0;
}

/* Tombol simpan ungu */
.btn-desa{
    background: #7c1c6b;
    color: white;
    font-weight: 700;
    border: none;
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s;
}

/* Hover tombol */
.btn-desa:hover{
    background: #641457;
    color: white;
    transform: scale(1.02);
}
/* =========================
   LOGO SIDEBAR ADMIN
========================= */


.sidebar-title{
    text-align: center;
    margin-bottom: 35px;
}

.sidebar-title h3{
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.sidebar-title small{
    color: #cbd5e1;
    font-size: 13px;
}
/* =========================
   FILTER REKAP MODERN
========================= */

.filter-box{
    background: #f8fafc !important;
    border: 1px solid #dbe2ea !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
}

.filter-group{
    margin-bottom: 18px !important;
}

.filter-group label{
    display: inline-block !important;
    width: 140px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.filter-group input,
.filter-group select{
    width: 260px !important;
    height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    background: white !important;
    outline: none !important;
}

.filter-inline{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.btn-pdf{
    background: #1e293b !important;
    color: white !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.3s !important;
}

.btn-pdf:hover{
    background: #0f172a !important;
}
/* animasi modal masuk */
.modal.fade .modal-dialog {
    transform: scale(0.7) translateY(-30px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* animasi isi modal */
.modal-body video,
.modal-body img {
    border-radius: 12px;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}