/* Page Loader Styles - Tactical Shooting Style */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

/* Tactical Crosshair Loader */
.loader-tactical {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crosshair-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 50%;
}

.crosshair-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: crosshairRotate 4s linear infinite;
}

.crosshair-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #1e3a8a, transparent);
    transform: translateX(-50%);
}

.crosshair-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #1e3a8a, transparent);
    transform: translateY(-50%);
}

.crosshair-center {
    width: 8px;
    height: 8px;
    background: #ef4444;
    /* Tactical Red Dot */
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444, 0 0 20px rgba(239, 68, 68, 0.5);
    animation: laserPulse 1.5s ease-in-out infinite;
    z-index: 2;
}

.target-rings {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    animation: ringScale 2s infinite;
}

@keyframes crosshairRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes laserPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes ringScale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Page Transition Progress Bar (Top) */
.transition-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    z-index: 10001;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    pointer-events: none;
}

.transition-bar.active {
    width: 100%;
}