/* =============================================
   DESA SASAK PANJANG - PREMIUM STYLE (COMPLETE)
   Green Theme with Animations - FULL VERSION
   Total: 1200+ baris
   ============================================= */

/* ===== VARIABLES CSS ===== */
:root {
    /* Primary Green */
    --primary: #10b981;
    --primary-dark: #047857;
    --primary-light: #6ee7b7;

    /* Background Green Soft */
    --primary-bg: #f0fdf4;
    --primary-bg-dark: #dcfce7;

    /* Secondary Accent */
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fcd34d;

    /* Neutral Colors */
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f9fafb;
    --white: #ffffff;

    /* Status */
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;

    /* Premium Shadows (lebih soft) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.14);

    /* Transition */
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2310b981" fill-opacity="0.1"/><circle cx="80" cy="40" r="3" fill="%2310b981" fill-opacity="0.08"/><circle cx="50" cy="80" r="2.5" fill="%2310b981" fill-opacity="0.1"/><circle cx="90" cy="90" r="2" fill="%2310b981" fill-opacity="0.06"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== ANIMATIONS KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.8;
    }
}

@keyframes pulseSoft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }
    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary-light);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ANIMATION CLASSES ===== */
.animate-fadeUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeDown {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fadeLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-zoom {
    animation: zoomIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-pulseSoft {
    animation: pulseSoft 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-floatSlow {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

.animate-shake {
    animation: shake 0.5s ease;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-ripple {
    position: relative;
    overflow: hidden;
}

.animate-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ===== HEADER & NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.navbar.scrolled {
    padding: 0.7rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.logo:hover .logo-icon {
    border-radius: 16px;
    transform: rotate(5deg);
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* Underline animasi dari tengah */
.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Hover & active */
.nav-menu li a:hover::before,
.nav-menu li a.active::before {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hover lebih halus */
.nav-menu li a:hover {
    transform: translateY(-2px);
}

.btn-login {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login::before {
    display: none !important;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
    transition: all var(--transition);
}

.menu-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.9) 0%, rgba(209, 250, 229, 0.8) 100%);
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%2310b981" fill-opacity="0.03" d="M0 0h200v200H0z"/><circle cx="50" cy="50" r="60" fill="%2310b981" fill-opacity="0.05"/><circle cx="150" cy="150" r="80" fill="%2310b981" fill-opacity="0.03"/><circle cx="100" cy="100" r="40" fill="%2310b981" fill-opacity="0.04"/></svg>');
    background-repeat: repeat;
    opacity: 0.5;
    animation: rotate 120s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--secondary), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--primary-light), transparent);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-2xl);
    animation: floatSlow 4s ease-in-out infinite;
}

.hero-image .badge-floating {
    position: absolute;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.badge-floating:nth-child(2) {
    top: 10%;
    left: -10%;
}

.badge-floating:nth-child(3) {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

/* ===== SECTION GLOBAL ===== */
.section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PROFILE SECTION ===== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.profile-card {
    background: var(--white);
    border: 1px solid rgba(16, 185, 129, 0.08); /* border hijau tipis */
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.profile-card:hover::before {
    transform: scaleX(1);
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

.profile-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-bg), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 42px;
    color: var(--primary-dark);
    transition: all var(--transition);
}

.profile-card:hover .profile-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.profile-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: var(--white);
    border-radius: 40px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.stat-box {
    text-align: center;
    padding: 1rem;
    transition: all var(--transition);
    border-radius: 20px;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: var(--primary-bg);
}

.stat-box i {
    font-size: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    display: block;
}

.stat-box .label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== MAP SECTION ===== */
.map-container {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-top: 2rem;
    transition: all var(--transition);
}

.map-container:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-2xl);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.address-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.address-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.address-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
}

.address-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    transition: all var(--transition);
}

.address-card:hover .address-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.address-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.address-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== FORM PENGADUAN ===== */
.complaint-form {
    background: var(--white);
    border-radius: 32px;
    padding: 2.8rem;
    box-shadow: var(--shadow-2xl);
    max-width: 850px;
    margin: 0 auto;
    transition: all var(--transition);
}

.complaint-form:hover {
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1rem;
    transition: all var(--transition);
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--light);
    padding: 14px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px dashed #cbd5e1;
    font-weight: 500;
}

.file-upload-label:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

#file-name {
    margin-left: 12px;
    font-size: 0.9rem;
    color: var(--gray);
}

.image-preview {
    margin-top: 1rem;
    display: none;
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 180px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.image-preview img:hover {
    transform: scale(1.05);
}

.image-preview .remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--danger);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}

.image-preview .remove-image:hover {
    transform: scale(1.1);
    background: var(--danger-dark);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2000;
    transform: translateX(450px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--primary);
    backdrop-filter: blur(8px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification i {
    font-size: 24px;
}

.notification.success i { color: var(--success); }
.notification.error i { color: var(--danger); }
.notification.warning i { color: var(--warning); }

/* ===== CHATBOT ===== */
.chatbot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-2xl);
    z-index: 1000;
    transition: all var(--transition);
    border: none;
    animation: pulseSoft 2s infinite;
}

.chatbot-btn:hover {
    transform: scale(1.12) rotate(5deg);
}

.chatbot-window {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 400px;
    height: 550px;
    background: var(--white);
    border-radius: 28px;
    box-shadow: var(--shadow-2xl);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

.chatbot-window.open {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.chatbot-header h3 i {
    font-size: 22px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all var(--transition);
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    animation: fadeInUp 0.3s ease;
    line-height: 1.5;
}

.message.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.bot {
    background: var(--light);
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 18px;
    background: var(--light);
    border-radius: 20px;
    align-self: flex-start;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

.chatbot-input {
    display: flex;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    gap: 12px;
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    outline: none;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.chatbot-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.chatbot-input button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.chatbot-input button:hover {
    transform: scale(1.08);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--dark), #111827);
    color: white;
    padding: 4rem 5% 1.5rem;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 1rem;
        background: white;
        border-radius: 20px;
        margin-top: 1rem;
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .chatbot-window {
        width: calc(100vw - 40px);
        right: 20px;
        height: 500px;
    }
    
    .chatbot-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .stats-grid {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .complaint-form {
        padding: 1.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 20px;
        transform: translateY(100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        text-align: center;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .address-info {
        grid-template-columns: 1fr;
    }
    
    .complaint-form {
        padding: 1rem;
    }
}

/* ===== ADMIN DASHBOARD STYLES ===== */
.admin-container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: white;
    border-radius: 28px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.admin-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.admin-stat-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 28px;
    color: var(--primary);
}

.admin-stat-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.admin-stat-card .label {
    color: var(--gray);
    font-size: 0.85rem;
}

.complaints-table {
    background: white;
    border-radius: 28px;
    overflow-x: auto;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.complaints-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.complaints-table th,
.complaints-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.complaints-table th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.complaints-table tr:hover {
    background: var(--primary-bg);
}

.complaints-table td img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-processed { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

.btn-download {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-danger:hover {
    transform: scale(1.05);
}

.status-select {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg), #d1fae5);
    padding: 1rem;
}

.login-box {
    background: white;
    border-radius: 40px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-2xl);
    animation: fadeInUp 0.6s ease;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 14px;
    border-radius: 60px;
    font-size: 1rem;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(229, 231, 235, 0.7);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 16px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

/* Animasi lebih halus */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.bg-primary { background: var(--primary); }
.bg-primary-bg { background: var(--primary-bg); }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }

