/* WFG Production - Custom Styles */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
}

/* Hide scrollbar */
.hide-scroll::-webkit-scrollbar {
    display: none;
}
.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #082c57 0%, #061a33 48%, #000 100%);
}

.boot-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-loader__logo {
    position: relative;
    width: min(82vw, 560px);
}

.boot-loader__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.boot-loader__progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.boot-loader__progress path {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    filter: drop-shadow(0 0 8px #38bdf8);
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@page {
    size: A4 landscape;
    margin: 12mm;
}

body.is-printing .no-print,
body.is-printing #sidebar,
body.is-printing #sidebarOverlay {
    display: none !important;
    visibility: hidden !important;
}

body.is-printing #mainContainer {
    margin-left: 0 !important;
}

@media print {
    html, body {
        background: #fff !important;
        overflow: visible !important;
        height: auto !important;
        width: 100% !important;
    }

    .no-print,
    #sidebar,
    #sidebarOverlay,
    #bootLoader,
    aside#sidebar,
    #loginWrapper {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        box-shadow: none !important;
    }

    #appWrapper {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
    }

    #mainContainer {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }

    #reportPrintArea {
        display: block !important;
        position: static !important;
        width: 100% !important;
    }
}
