html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, 
        /* Header met Logo's & Titel */
        #2E58AE 0%,    /* Start with #2E58AE */
        #2E58AE 5%,    /* #2E58AE solid net tot onder titel */
        /* Overgang naar Hoofdinhoud BG */
        #D4E2FC 9%,   /* Lichtblauw (#D4E2FC) begint direct na titel (4% overgang) */
        /* Hoofdinhoud Area & Footer */
        #D4E2FC 100%   /* Lichtblauw blijft tot het einde */
    );
}
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; } /* Explicitly white for main title */
/* .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: #2E58AE !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 (#D4E2FC background) */
.section-title-on-light { color: #2E58AE; } 
.text-on-light-bg { color: #2E58AE; } 
.strong-text-on-light-bg { color: #2E58AE; } 


.header-logos img.cinematen-logo { max-height: 60px; object-fit: contain; }
.header-logos img.partner-logo-header { max-height: 50px; object-fit: contain; }

.overall-summary-section {
    background-color: rgba(255, 255, 255, 0.25); /* Even more opaque on #2E58AE part of gradient */
    border-radius: 0.5rem;
    padding: 1.5rem;
    /* margin-bottom will be added via Tailwind class */
    color: #2E58AE; /* Dark blue 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: #2E58AE !important; /* Ensure all text elements are dark blue */
}


.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: #2E58AE; 
}
.data-card p { color: #2E58AE; } 
.data-card .font-bold { color: #2E58AE !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.25);
    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: #2E58AE;
}
.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: #2E58AE !important;
}

.chart-container { /* On #D4E2FC part of gradient */
    background-color: rgba(255, 255, 255, 0.25); 
    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: #6b7280; } 

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

/* 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;
    }
    
    /* 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;
    }
    
    /* 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 {
        width: 100%; min-height: initial; padding: 10mm;
        background: white !important;
        box-shadow: none;
    }
    .report-content { max-width: none; margin: 0; background-color: white !important; }

    .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: rgba(255, 255, 255, 0.9) !important; }
    .overall-summary-section * { color: #2E58AE !important; }


    .data-card { background-color: #f8fafc !important; border: 1px solid #e2e8f0 !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: #D4E2FC !important; text-align: left; }
    .report-footer * { color: #000 !important; }
}

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

.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;
} 