:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --secondary-color: #2E7D32;
    --accent-color: #81C784;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, #E8F5E8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

.hero-illustration {
    position: relative;
}

.floating-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: white;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: scale(1.05);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Complaints Section */
.complaints-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.complaint-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.complaint-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.complaint-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-pending {
    background: #FFF3CD;
    color: #856404;
}

.status-ditolak {
    background: #ff0000;
    color: #ffffff;
}

.status-proses {
    background: #CCE5FF;
    color: #004085;
}

.status-tindak-lanjut {
    background: #CCE5FF;
    color: #18b2ff;
}

.status-diterima {
    background: var(--primary-dark);
    color: #ffffff;
}

.status-selesai {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Map Section */
.map-section {
    padding: 100px 0;
    background: white;
}

#map {
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Form Section */
.form-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box input {
    padding-left: 50px;
}

.search-box .fa-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.shimmer-wrapper {
    padding: 20px;
    display: grid;
    gap: 20px;
    transition: opacity 0.5s ease;
}

.shimmer-card {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shimmer {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}

.shimmer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(to right, transparent 0%, #ffffff88 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.shimmer-title {
    height: 20px;
    width: 60%;
    border-radius: 5px;
    margin-bottom: 12px;
}

.shimmer-line {
    height: 14px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 8px;
}

.shimmer-line.short {
    width: 80%;
}

/* Konten asli */
#realContent {
    display: none;
    padding: 20px;
}

.data-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

 .loading-container {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.5);
     /* transparan gelap */
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 9999;
     display: none;
 }

 .loading-card {
     background: white;
     border-radius: 12px;
     padding: 30px 40px;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
     text-align: center;
     max-width: 300px;
     width: 100%;
 }

 .envelope {
     width: 60px;
     height: 40px;
     background: #4CAF50;
     position: relative;
     border-radius: 4px;
     animation: fly 2s infinite ease-in-out;
     margin: 0 auto;
 }

 .envelope::before,
 .envelope::after {
     content: '';
     position: absolute;
     width: 0;
     height: 0;
     border-style: solid;
 }

 .envelope::before {
     top: 0;
     left: 0;
     border-width: 0 30px 20px 30px;
     border-color: transparent transparent #388E3C transparent;
 }

 .envelope::after {
     bottom: 0;
     left: 0;
     border-width: 20px 30px 0 30px;
     border-color: #66BB6A transparent transparent transparent;
 }

 @keyframes fly {
     0% {
         transform: translateY(0) rotate(0deg);
         opacity: 1;
     }

     50% {
         transform: translateY(-10px) rotate(2deg);
     }

     100% {
         transform: translateY(0) rotate(-2deg);
     }
 }

 .loading-text {
     margin-top: 15px;
     font-weight: 500;
     color: #333;
     font-size: 1rem;
 }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}