/* ========================================= */
/* 1. SETUP VARIABEL & GLOBAL                */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Palet Warna Ocean Blue */
    --ocean-dark: #0f172a;       /* Biru Sangat Gelap (Pengganti Hitam) */
    --ocean-primary: #0052cc;    /* Biru Utama (Link/Tombol) */
    --ocean-gradient: linear-gradient(135deg, #0052cc 0%, #003380 100%); /* Gradasi Header */
    --ocean-soft: #eef4ff;       /* Background biru sangat muda */
    
    /* Warna Aksen & Teks */
    --accent-yellow: #ffb400;    /* Kuning Emas (CTA) */
    --text-main: #334155;        /* Abu-abu Gelap (Teks Utama) */
    --text-muted: #64748b;       /* Abu-abu Sedang (Teks Penjelas) */
    
    /* Utilitas */
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 82, 204, 0.08); /* Bayangan Biru Halus */
    --shadow-hover: 0 15px 35px rgba(0, 82, 204, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--ocean-primary); transition: 0.3s; }
a:hover { color: #003380; }

/* ========================================= */
/* 2. NAVBAR MODERN                          */
/* ========================================= */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ocean-primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0 10px;
}

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

.btn-nav-login {
    background-color: var(--ocean-soft);
    color: var(--ocean-primary) !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 25px;
}

.btn-nav-register {
    background: var(--ocean-gradient);
    color: #fff !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 25px;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

/* ========================================= */
/* 3. HERO SECTION (OCEAN THEME)             */
/* ========================================= */
.hero-section {
    /* Background Gradasi Biru Laut */
    background: var(--ocean-gradient);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 6rem 0 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Hiasan background abstrak (Opsional) */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Tombol CTA Utama (Kuning) */
.btn-cta-main {
    background-color: var(--accent-yellow);
    color: var(--ocean-dark);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 180, 0, 0.3);
    transition: transform 0.3s;
}

.btn-cta-main:hover {
    background-color: #ffc845;
    transform: translateY(-5px);
    color: var(--ocean-dark);
}

/* ========================================= */
/* 4. CARDS & STATS                          */
/* ========================================= */
.section-title {
    font-weight: 700;
    color: var(--ocean-dark);
    margin-bottom: 0.5rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--ocean-primary);
}

.stat-icon-wrapper {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
}
.icon-blue { background: var(--ocean-soft); color: var(--ocean-primary); }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-red { background: #fee2e2; color: #dc2626; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ocean-dark);
}

/* ========================================= */
/* 5. USER DASHBOARD (MODERN)                */
/* ========================================= */
.dashboard-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.dashboard-header {
    background: var(--ocean-gradient);
    color: white;
    padding: 2.5rem;
}

.action-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    height: 100%;
}
.action-card:hover {
    border-color: var(--ocean-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}
.action-icon {
    font-size: 2.5rem;
    color: var(--ocean-primary);
    margin-bottom: 1rem;
}

/* ========================================= */
/* 6. MAP & EXTRAS                           */
/* ========================================= */
#komunitasMap {
    width: 100%; height: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 5px solid #fff;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    color: var(--ocean-dark);
    background: #fff;
}
.accordion-button:not(.collapsed) {
    background: var(--ocean-soft);
    color: var(--ocean-primary);
    box-shadow: none;
}

/* ========================================= */
/* 7. RESPONSIVE MOBILE                      */
/* ========================================= */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-section { text-align: center; padding: 4rem 0; }
    .btn-cta-main { width: 100%; display: block; }
    .hero-visual { display: none; } /* Sembunyikan visual di HP biar fokus */
    .dashboard-header { padding: 1.5rem; }
}