@media print {
    /* Hide non-essential UI */
    .no-print,
    nav,
    footer,
    #toast,
    button,
    select,
    input[type="range"] {
        display: none !important;
    }

    /* Force light colors */
    body {
        background: white !important;
        color: #1a1a1a !important;
        font-size: 12px;
    }

    /* Reset dark mode overrides */
    * {
        background-color: transparent !important;
        border-color: #e2e8f0 !important;
        color: #1a1a1a !important;
        box-shadow: none !important;
    }

    /* Keep card structure */
    .bg-white,
    [class*="dark:bg-"] {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* Inputs become plain text */
    input[type="number"] {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        font-weight: 700;
    }

    /* Chart sizing for print */
    canvas {
        max-height: 300px !important;
    }

    /* Layout adjustments */
    main {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .grid {
        gap: 12px !important;
    }

    /* Add generated date footer */
    #print-header::after {
        content: "Generated on " attr(data-print-date);
        display: block;
        font-size: 10px;
        color: #94a3b8;
        margin-top: 8px;
        font-family: 'Inter', sans-serif;
    }

    /* Accent colors stay visible */
    .text-indigo-500 { color: #6366f1 !important; }
    .text-amber-500 { color: #f59e0b !important; }

    @page {
        margin: 1.5cm;
        size: A4;
    }
}

