/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #004aad;
    /* Deep Blue */
    --accent-color: #d32f2f;
    /* Red for emphasis/warning */
    --success-color: #2e7d32;
    /* Green */
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
    --chart-color-1: #004aad;
    --chart-color-2: #1976d2;
    --chart-color-3: #42a5f5;
    --chart-color-warn: #ff9800;
    --chart-color-danger: #f44336;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Encode Sans', sans-serif;
    background-color: var(--bg-color);
    /* Placeholder for the AI generated background image */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: 800px;
    /* Reading width */
    margin: 0 auto;
    padding: 20px;
}

/* Header/Hero */
header {
    text-align: center;
    padding: 40px 20px;
    margin: 40px auto 30px;
    /* Center with margin */
    border-bottom: none;
    /* Remove border */
    background: rgba(255, 255, 255, 0.92);
    /* Semi-transparent white bg */
    border-radius: 20px;
    /* Rounded corners */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* Strong shadow */
    max-width: 90%;
    /* Limit width */
    backdrop-filter: blur(5px);
    /* Blur background behind */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.1;
}

.money-text {
    display: block;
    color: #002d62;
    /* Deep Blue */
    font-weight: 900;
    /* Max bold */
    font-size: 3.8rem;
    /* Large size */
    text-transform: uppercase;
    line-height: 1.1;
    /* Hard shadow for pop-out effect */
    text-shadow:
        3px 3px 0px #ffeb3b,
        6px 6px 0px rgba(0, 0, 0, 0.1);
    margin: 5px 0;
    /* Reduced margin */
    letter-spacing: 1px;
}

header .sapo {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Sections */
section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Highlights & Big Numbers */
.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid var(--primary-color);
}

.big-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
}

/* Charts */
.chart-container {
    position: relative;
    height: 350px;
    /* Fixed height for charts */
    width: 100%;
    margin: 20px 0;
}

canvas {
    max-width: 100%;
}

/* Expandable Info */
.expand-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: block;
    margin: 20px auto 0;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.extra-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #f1f8ff;
    border-radius: 8px;
    margin-top: 10px;
}



.extra-content {
    padding: 20px;
    border-top: 1px dashed #ccc;
}

.extra-content h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.extra-content ul {
    list-style-type: none;
    padding-left: 0;
}

.extra-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.extra-content li::before {
    content: "👉";
    position: absolute;
    left: 0;
    top: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #263238;
    color: #fff;
    border-radius: 12px 12px 0 0;
    margin-top: 40px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

footer li {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .chart-container {
        height: 300px;
    }

    .big-number-grid {
        grid-template-columns: 1fr;
    }
}