/* Custom CSS styles extending Tailwind for Light & Friendly Theme */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar (Light Theme) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Modern Card Utility */
.clean-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}
.clean-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Glass-card adaptation for light theme */
.glass-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease-in-out;
}
.glass-card:hover {
    box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Alpine.js cloak to prevent flash of unstyled content */
[x-cloak] {
    display: none !important;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Print Protection & Anti-Print Paywall */
@media print {
    /* Oculta toda a aplicação e resultados não pagos */
    body * {
        visibility: hidden !important;
    }
    
    /* Exibe mensagem de proteção de laudo */
    body::before {
        content: "ESTA PRÉVIA NÃO É UM LAUDO OFICIAL. Para obter o Parecer Técnico de Auditoria assinado e auditado na íntegra para apresentação em assembleia, desbloqueie a versão completa em priceauditor.com.br";
        visibility: visible !important;
        display: block !important;
        position: absolute !important;
        top: 35% !important;
        left: 8% !important;
        right: 8% !important;
        font-size: 16pt !important;
        font-weight: bold !important;
        text-align: center !important;
        line-height: 1.6 !important;
        color: #b91c1c !important;
        border: 3px dashed #b91c1c !important;
        padding: 32px !important;
        background: #fef2f2 !important;
        border-radius: 12px !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
}

