/* Color Palette Base (Untuk memastikan warna selalu akurat walau global.css miss) */
:root {
    --primary-dark: #1b3e2b;
    --primary-color: #3b6045;
    --primary-light: #e1e9e2; /* Hijau muda sage untuk background hero */
    --accent-color: #d89f4b; /* Warna orange/kuning aksen */
    --text-dark: #222222;
    --bg-light: #f7f9f7;
    --green-progress: #4a7c59;
}

body {
    background-color: var(--bg-light);
    /*font-family: 'Inter', sans-serif; */
    margin: 0;
    padding: 0;
}



/* Navbar Fixes
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a.active {
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 4px;
}
.nav-links .btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border-bottom: none;
}*/

/* Container Utama */
.dashboard-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

/* 1. Hero Dashboard (Sesuai persis dengan Figma) */
.hero-dashboard {
    position: relative;
    border-radius: 32px;
    overflow: hidden; /* Otomatis mengikuti border-radius luar */
    min-height: 520px;
    display: flex;
    /* align-items: stretch;*/ /* Memastikan overlay box memanjang full dari atas ke bawah */
    margin-bottom: 60px;
}

/* Gambar full di background belakang */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Box teks di sisi kiri */
.hero-dash-content {
    position: relative;
    z-index: 2;
    
    /* Warna hijau pudar/abu dengan transparansi yang pas (Figma Glassmorphism) */
    background: rgba(228, 235, 228, 0.85); 
    backdrop-filter: blur(-5px);
    -webkit-backdrop-filter: blur (-5px); /* Dukungan untuk Safari */
    
    /* Ukuran disesuaikan agar menyisakan ruang lebih banyak untuk gambar di kanan */
    width: 55%; 
    max-width: 680px;
    padding: 60px 50px;
    
    /* Posisi mengambang: margin atas & bawah otomatis (center), kiri diberi jarak */
    margin: 0 0 60px 40px; 
    
    /* Lengkungan di SEMUA sudut (karena box-nya inset/mengambang di dalam) */
    border-radius: 0 0 30px 30px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-dash-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-dash-content p {
    color: var(--primary-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 90%;
}

/* Responsivitas untuk layar kecil */
@media (max-width: 768px) {
    .hero-dash-content {
        width: 85%;
        padding: 40px 30px;
    }
    .hero-dash-content h1 {
        font-size: 2.5rem;
    }
}

/* 2. Metrics & Comparison Section */
.metrics-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.comparison-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
}
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.img-wrapper .badge {
    position: absolute;
    top: 15px; left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}
.badge-light { background: #fff; color: #555; }
.badge-primary { background: var(--primary-dark); color: #fff; }

/* Metrics Cards */
.metrics-col { display: flex; flex-direction: column; gap: 20px; }
.metric-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.metric-header h3 { font-size: 1.3rem; color: var(--primary-dark); margin:0; }
.text-accent { color: var(--accent-color); }
.text-green { color: var(--green-progress); }

.progress-group { margin-bottom: 20px; }
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.progress-bar {
    height: 10px; background: #f0f0f0; border-radius: 5px; overflow: hidden;
}
.progress-bar .fill { height: 100%; border-radius: 5px; }
.bg-primary { background: var(--green-progress); }
.bg-gray { background: #c2c2c2; }

.efficiency-content { display: flex; align-items: center; gap: 25px; }
.grade-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold; color: var(--accent-color);
    flex-shrink: 0;
}
.efficiency-content p { color: #666; font-size: 0.95rem; line-height: 1.5; margin:0;}
.text-lg { font-size: 1.2rem; }

/* 3. Progress Timeline */
.timeline-scroller {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 0 30px;
    scroll-snap-type: x mandatory;
}
.timeline-scroller::-webkit-scrollbar { height: 6px; }
.timeline-scroller::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 10px; }
.timeline-card {
    min-width: 320px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.timeline-card:hover { transform: translateY(-8px); }
.timeline-card img { width: 100%; height: 200px; object-fit: cover; }
.timeline-info { padding: 25px; }
.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
}
.timeline-info h4 { margin: 8px 0 10px; color: var(--primary-dark); font-size: 1.2rem;}
.timeline-info p { font-size: 0.95rem; color: #666; line-height: 1.5;}

/* 4. Overall Impact Score */
.impact-card {
    background: var(--primary-dark);
    border-radius: 30px;
    padding: 70px 40px;
    text-align: center;
    color: #fff;
}
.impact-card h3 { color: var(--accent-color); font-size: 1.5rem; margin-bottom: 20px; }
.score-number { font-size: 6rem; font-weight: 800; line-height: 1; }
.score-max { font-size: 2.5rem; color: rgba(255,255,255,0.5); font-weight: 300;}
.impact-card p { max-width: 600px; margin: 30px auto 0; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* 5. Footer (Disesuaikan Figma)
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand h2 { font-size: 1.5rem; margin: 0 0 5px; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin:0;}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; transition: color 0.2s;}
.footer-links a:hover { color: #fff; }*/

/* Modal Styling */
.modal-dialog { border: none; border-radius: 20px; padding: 0; background: transparent; margin: auto; max-width: 900px; width: 90%; }
.modal-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.modal-container { background: #fff; border-radius: 24px; padding: 40px; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: #f1f5f9; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-badge { background: #fff4e6; color: var(--accent-color); padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; }
.modal-header h3 { margin-top: 15px; font-size: 1.8rem; color: var(--primary-dark); }
.modal-body { display: flex; align-items: stretch; gap: 25px; position: relative; }
.compare-pane { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.pane-img { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.pane-img img { width: 100%; height: 100%; object-fit: cover; }
.pane-label { position: absolute; bottom: 15px; left: 15px; padding: 6px 14px; border-radius: 8px; color: #fff; font-weight: 600; font-size: 0.85rem; }
.compare-vs { display: flex; align-items: center; justify-content: center; width: 50px; font-weight: 900; color: #e0e0e0; font-style: italic; font-size: 1.5rem; }
.pane-desc { font-size: 0.95rem; line-height: 1.6; color: #555; }