/* Site-wide styles for Plan Notice Participant Portal */

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

@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* Stagger animations for navigation items */
.nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-item:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-item:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* Notice items stagger */
.notice-item {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.notice-item:nth-child(1) {
    animation-delay: 0.4s;
}

.notice-item:nth-child(2) {
    animation-delay: 0.5s;
}

.notice-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .mobile-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }
}

/* Primary color variable for consistency */
:root {
    --primary-color: #400CBA;
}

/* Override Blazor default styles */
.blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6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 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ============================================================
 * Print Styles for PDF-Only Printing
 * ============================================================
 * These styles ensure that when printing, only the PDF content
 * is shown and all UI chrome (navigation, header, buttons) is hidden.
 */

/* Default Styles: Normal screen display */
.no-print {
    /* Visible on screen, hidden when printing */
}

.print-only {
    /* Hidden on screen, visible when printing */
    display: none;
}

.print-pdf-container {
    /* PDF iframe container - styled for screen viewing */
}

.print-pdf-iframe {
    /* PDF iframe - normal screen display */
}

/* Print Media Query: Hides all UI chrome and shows only the PDF iframe content */
@media print {
    /* Hide all elements marked as no-print */
    .no-print {
        display: none !important;
    }

    /* Show elements marked as print-only */
    .print-only {
        display: block !important;
    }

    /* Remove container styling for PDF iframe */
    .print-pdf-container {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Make PDF iframe take full print area */
    .print-pdf-iframe {
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Remove all page margins for full-bleed PDF printing */
    @page {
        margin: 0;
        size: auto;
    }

    /* Ensure body and root container have no margins */
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide parent container borders and styling */
    .bg-white {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        border-radius: 0 !important;
    }

    /* Hide Blazor layout chrome */
    nav,
    header,
    footer,
    aside,
    .sidebar,
    .nav-menu {
        display: none !important;
    }

    /* Ensure only the iframe content is printed */
    * {
        overflow: visible !important;
    }
}

/* Note: Browser print behavior with iframes
 * Most modern browsers will attempt to print the iframe's content directly
 * when using window.print(). These styles ensure the UI chrome is hidden
 * and only the PDF iframe is visible during the print preview.
 */
