/* Modern CSS Reset & Basic Setup */
:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --primary: #0284c7;
    /* Brand color inspired by BPS or standard Blue */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --header-height: 64px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Canvas / Main Content */
.canvas-wrapper {
    flex: 1;
    position: relative;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    /* Back to column */
    padding: 0;
}

/* Outer wrapper to handle the "cropping" */
.report-wrapper-outer {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* This cuts off the extra height */
    background: var(--card-bg);
}

.report-container {
    width: 100%;
    /* 
       TRICK: Make the height taller than the container to push the footer out of view.
       Looker Studio footer is usually around 25-30px.
       We set height to calc(100% + 30px) and the parent has overflow:hidden.
    */
    height: calc(100% + 30px);
    position: relative;
    top: 0;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer Cover (Optional Extra Layer of Safety) */
.footer-cover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    /* Adjust based on actual footer size */
    background: var(--card-bg);
    /* Match background */
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass through if needed, though usually we want to block them */
    display: none;
    /* Hide by default, rely on cropping first */
}

/* Custom Footer with Numbered Buttons */
.custom-footer {
    height: 60px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
    z-index: 20;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    /* Added for <a> support */
}

.page-btn:hover {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: #94a3b8;
}

.page-btn.active {
    background: #557C55;
    /* The requested green color */
    color: white;
    border-color: #557C55;
    box-shadow: 0 2px 4px rgb(85 124 85 / 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .custom-footer {
        height: 50px;
        gap: 0.5rem;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .report-container {
        /* Reduce cropping on mobile so less content is cut off */
        height: calc(100% + 25px);
    }
}