/* Print Styles */
@media print {
    /* Reset and hide non-essential elements */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        font-size: 12pt;
        line-height: 1.3;
        color: black !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
    }

    /* Hide everything except the canvas */
    .header,
    .navigation,
    .form-section,
    .footer,
    .preview-actions,
    .card__title,
    .loading-overlay,
    .toast-container {
        display: none !important;
    }

    /* Chrome, Edge - remove ícone de validação */
input:invalid,
select:invalid,
textarea:invalid {
    box-shadow: none !important;
}

/* Remove ícone visual padrão do Chrome */
input::-webkit-validation-bubble-message,
input::-webkit-inner-spin-button,
select::-webkit-validation-bubble-message {
    display: none !important;
}

/* Safari - remove ícones de validação */
input:invalid::-webkit-input-placeholder {
    color: inherit;
}

/* Firefox - remove ícone e estilo de erro */
input:invalid {
    box-shadow: none;
}


    /* Show only the canvas container */
    .main {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .app-grid {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    .preview-section {
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .preview-container {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .preview-canvas {
        border: 1px solid #7868E6 !important;
        box-shadow: none !important;
        max-width: none !important;
        /* Tamanho físico estável mantendo proporção 400x250 (1.6) */
        width: 100mm !important;
        height: 62.5mm !important;
        border-radius: 4px !important;
        background: #ffffff !important;
    }

    /* Page settings */
    @page {
        size: A4;
        margin: 0.5in;
    }

    /* Prevent page breaks */
    .preview-canvas {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Ensure proper scaling */
    html {
        font-size: 12pt;
    }

    /* Hide any remaining UI elements */
    button,
    input,
    select,
    form,
    nav,
    .btn,
    .form,
    .navigation,
    .saved-labels {
        display: none !important;
    }
}

/* Print button specific styles */
@media print {
    .print-only {
        display: block !important;
    }
    
    .no-print {
        display: none !important;
    }
}
