body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    scroll-behavior: smooth;
}

header {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

.statistik {
    background: white;
    margin: -40px auto 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.jumlah-santri {
    font-size: 2rem;
    font-weight: 600;
    color: #10b981;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.chart-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: transform 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chart-header h2 {
    font-size: 1.1rem;
    color: #111827;
}

.chart-header small {
    color: #6b7280;
}

canvas {
    height: 260px !important;
}

footer {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    font-size: 0.9rem;
    background: #f1f5f9;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.4rem;
    }

    .jumlah-santri {
        font-size: 1.6rem;
    }
}

/* Animasi scroll muncul */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Tombol CTA (Telusuri Data Santri) */
.cta-container {
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #047857;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #065f46;
    color: white;
    transform: translateY(-3px);
}
.chart-card canvas {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chart-card.show canvas {
    opacity: 1;
    transform: scale(1);
}

.chart-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.chart-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

