html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom,
        /* Header with Logo & Title */
        #13282e 0%,    /* Start with darkest background */
        #13282e 5%,    /* Darkest background solid just below title */
        /* Overgang naar Hoofdinhoud BG */
        #1f3338 9%,   /* Slightly lighter dark background begins directly after title (4% transition) */
        /* Hoofdinhoud Area & Footer */
        #1f3338 100%   /* Slightly lighter dark background remains to the end */
);
}
body {
    /* Default text color is now white, as the top part of gradient is dark */
    color: #FFFFFF; 
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.page-container {
    width: 100%;
    min-height: 100vh;
    padding: 0 30px; /* Only side padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.report-content {
    flex-grow: 1;
    background-color: transparent;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px; /* Add top padding for spacing */
    padding-bottom: 30px; /* Add bottom padding for spacing */
    width: 100%;
}

/* Text colors for top dark sections (on #2E58AE) are now white */
.header-title-text { color: #FFFFFF !important; }
/* .header-subtitle-text class is no longer needed as the div is removed */

/* Global text color consistency - ensure all text elements use dark blue */
strong, .font-bold, span.font-bold { color: #74f5ac !important; }

/* Ensure header title stays white despite global rules */
h1.header-title-text, .header-title-text { color: #FFFFFF !important; }

/* Text colors for middle light section (#1f3338 background) */
.section-title-on-light { color: #74f5ac; }
.text-on-light-bg { color: #74f5ac; }
.strong-text-on-light-bg { color: #74f5ac; }


.header-logos img.cinematen-logo { max-height: 120px; object-fit: contain; }
.header-logos .logo-placeholder { width: 120px; /* Match the logo's effective width */ }
.header-logos img.partner-logo-header { max-height: 50px; object-fit: contain; }
/* Overall summary section - should stand out slightly on the dark background */
.overall-summary-section {
    background-color: rgba(255, 255, 255, 0.25); /* Even more opaque on dark purple part of gradient */
    border-radius: 0.5rem;
    padding: 1.5rem;
    /* margin-bottom will be added via Tailwind class */
    color: #74f5ac; /* Accent color text to match page theme */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}
.overall-summary-section h2,
.overall-summary-section p,
.overall-summary-section .font-bold {
 color: #74f5ac !important; /* Ensure all text elements are accent color */
}

/* Data cards - similar styling to overall summary but maybe slightly different */
.data-card {
    background-color: rgba(255, 255, 255, 0.25); /* Same as overall-summary-section */
    border-radius: 0.5rem;
    padding: 1rem; margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1); /* Same shadow as overall-summary-section */
}
.data-card h3 {
    font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem;
    color: #74f5ac;
}
.data-card p { color: #74f5ac; }
.data-card .font-bold { color: #74f5ac !important; }
.data-card .growth-positive { color: #059669; } 
.data-card .growth-negative { color: #dc2626; } 

/* New unified card class for consistent styling */
.unified-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly less opaque for contrast */
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #74f5ac;
}
.unified-card h2,
.unified-card h3,
.unified-card p,
.unified-card .font-bold,
.unified-card ul,
.unified-card li,
.unified-card span,
.unified-card strong {
    color: #74f5ac !important;
}

/* Chart container - on the slightly lighter dark background */
.chart-container { 
    background-color: rgba(255, 255, 255, 0.15); /* Match unified-card background */
    border-radius: 0.5rem;
    padding: 1rem; margin-top: 1rem; height: 380px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}
.chart-placeholder-text { font-style: italic; color: #b0b0b0; } /* Lighter gray on dark bg */

.report-footer { /* On #D4E2FC part of gradient */
    background-color: transparent;
    color: #74f5ac; 
    padding-top: 1.5rem;
    margin-top: auto;
    text-align: center;
}
.report-footer p { color: #74f5ac; }

/* Samsung Galaxy Tab S8 Ultra Portrait Mode (1848 x 2960) */
@media screen and (min-width: 1200px) and (max-width: 1900px) and (orientation: portrait) {
    .page-container {
        padding: 20px;
        min-height: 100vh;
    }
    
    .report-content {
        max-width: 100%; padding: 0 40px; /* Maintain padding for tablet */
    }

    /* Header optimalization */
    .header-logos {
        margin-bottom: 2rem;
    }

    .header-logos img.cinematen-logo {
        max-height: 70px;
    }
    .header-logos img.partner-logo-header {
        max-height: 60px;
    }

    .header-title-text {
        font-size: 2.5rem !important;
        line-height: 1.2; /* Adjust line height if necessary */
    }
    
    /* Summary section */
    .overall-summary-section {
        padding: 2rem;
        margin-bottom: 2rem;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.12);
    }
    
    .overall-summary-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .overall-summary-section p {
        font-size: 1.25rem;
    }
    
    .overall-summary-section .text-3xl {
        font-size: 2.5rem !important;
    }
    
/* Section titles */
    .section-title-on-light {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }
    
    /* Data cards grid optimization for tablet */
    .data-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .data-card h3 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }
    
    .data-card p {
        font-size: 1.125rem;
    }

    /* Chart container optimization */
    .chart-container {
        height: 450px;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Footer optimization */
    .report-footer {
        padding-top: 2rem;
        margin-top: 3rem;
    }
    
    .report-footer p {
        font-size: 1rem;
    }
}

/* Specific tablet landscape fallback */
@media screen and (min-width: 1200px) and (max-width: 1900px) and (orientation: landscape) {
    .page-container {
        padding: 15px;
    }

    .report-content {
        max-width: 95%;
        padding: 0 30px;
    }
    
    .chart-container {
        height: 350px;
    }
}

@media print {
    html, body { min-height: auto; background: white !important; color: #000 !important; }
    .page-container { /* Use a consistent background for printing */
        width: 100%; min-height: initial; padding: 10mm;
        background: white !important;
        box-shadow: none;
    }
    .report-content { max-width: none; margin: 0; background-color: white !important; } /* Ensure content area is white */

    .header-title-text, 
    .section-title-on-light, .text-on-light-bg, .strong-text-on-light-bg,
    .overall-summary-section h2, .overall-summary-section p, .overall-summary-section .font-bold,
    .data-card h3, .data-card p, .data-card .font-bold,
    .report-footer, .report-footer p {
        color: #000 !important;
    }
    .overall-summary-section { background-color: #f8fafc !important; border: 1px solid #e2e8f0 !important; }
    .overall-summary-section * { color: #513167 !important; } /* Use the dark purple for print */


    .data-card { background-color: #f8fafc !important; border: 1px solid #e2e8f0 !important; }
    .data-card h3, .data-card p, .data-card .font-bold { color: #74f5ac !important; }
    .data-card .growth-positive { color: #10b981 !important; }
    .data-card .growth-negative { color: #ef4444 !important; }

    .chart-container { background-color: #fff !important; border: 1px solid #ccc !important; }
    .chartjs-plugin-datalabels { color: #000 !important; }
    .report-footer { background-color: #C6C0D3 !important; text-align: left; } /* Use the light purple for print footer */
    .report-footer * { color: #513167 !important; } /* Use the dark purple for print footer text */
}

@media screen and (min-width: 1024px) {
    .report-content {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
        padding: 2rem;
    }
}

.listen-chart-tabs {
    display: inline-flex;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.4);
    padding: 0.25rem;
    border-radius: 0.75rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.listen-chart-tabs button {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    color: #1f3338;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 4rem;
}
.listen-chart-tabs button:hover:not(.active) {
    background: rgba(31, 51, 56, 0.15);
    color: #13282e;
}
.listen-chart-tabs button.active {
    background: #1f3338;
    color: white;
    box-shadow: 0 2px 8px rgba(31, 51, 56, 0.4);
}

.month-info-card {
    min-height: 60px;
}

.retention-info-icon {
    cursor: help;
    font-size: 0.9em;
    margin-left: 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.retention-info-icon:hover {
    opacity: 1; /* Full opacity on hover */
}