/* --- ProCalc Global Styles --- */

/* 1. Custom Variables & Reset */
:root {
    --primary: #4f46e5; /* Indigo 600 */
    --surface: #ffffff;
    --background: #f8fafc;
    --text-main: #0f172a;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    overflow-x: hidden;
}

/* 2. Premium Design Components */

/* Ultra-soft shadow for cards */
.premium-card {
    background: var(--surface);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.02),
        0 4px 6px -4px rgba(0, 0, 0, 0.01);
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* Subtle glass effect for nav/modals */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 3. Animations */
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. Professional Report System (Print Logic) */
@media print {
    /* Hide all UI elements not needed for the report */
    nav, 
    footer, 
    button, 
    .no-print, 
    .input-section,
    #global-search {
        display: none !important;
    }

    body {
        background: white !important;
        margin: 0;
        padding: 20mm;
    }

    /* Format the result card specifically for paper */
    #result-card {
        display: block !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1pt solid #e2e8f0 !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    /* Force background colors for headers in PDF */
    .bg-slate-900 {
        background-color: #0f172a !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    h1, h2 {
        page-break-after: avoid;
    }
}

/* 5. Custom Form Controls */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}