/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Custom Input Styles */
.input-field {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* -------------------------------------------------------------------------- */
/*                                PRINT STYLES                                */
/* -------------------------------------------------------------------------- */

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html,
    body {
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        background: white;
    }

    /* 1. NUCLEAR OPTION: Hide everything using display:none */
    body>* {
        display: none !important;
    }

    /* 2. BUT: We need to reach the print area. 
       If we hide body > *, we hide the dashboard too. 
       So we need to selectively show the containers leading to the print area.
    */

    /* Reveal the main container */
    body>main {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide siblings inside main */
    main>*:not(#printAreaWrapper) {
        display: none !important;
    }

    /* Reveal the wrapper */
    #printAreaWrapper {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 99999;

        align-items: center;
        justify-content: center;
    }

    /* Reveal the card */
    #printArea {
        display: block !important;
        visibility: visible !important;

        /* Dimensions */
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
        aspect-ratio: 3/4;

        /* Box Model */
        margin: auto;
        padding: 2cm;

        /* Borders */
        border: 2px dashed black !important;
        border-radius: 4mm;
        box-shadow: none !important;

        /* Print Safe */
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Ensure content inside card is visible */
    #printArea * {
        visibility: visible !important;
    }

    .no-print {
        display: none !important;
    }
}