@media print {
    body {
        background: #ffffff;
        color: #0f172a;
        margin: 0;
        padding: 0;
    }

    .navbar,
    .main-content > .container,
    .footer-section,
    #calculate-btn,
    #reset-btn,
    #history-list,
    #form-errors,
    .badge,
    .btn,
    .card,
    .email-form,
    nav,
    footer {
        display: none !important;
    }

    .print-report {
        display: block;
        padding: 2rem;
    }
}

.print-report {
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.print-header h2 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.print-header .text-muted {
    color: #64748b;
    font-size: 0.9rem;
}

.print-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.print-section h3 {
    color: #2563eb;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0f2fe;
    padding-bottom: 0.5rem;
}

.print-item {
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
    padding: 1rem;
    background: #f8fafc;
    margin-bottom: 0.75rem;
    page-break-inside: avoid;
}

.print-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.print-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.print-report-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

@page {
    size: A4;
    margin: 1in;
}

@media print {
    body {
        margin: 0;
        padding: 0;
    }

    .print-report {
        margin: 0;
        padding: 0;
    }
}
