/* PREMIUM CYBERPUNK HUD BIOS BOOTLOADER STYLING */

.loader-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99999 !important; /* Ensure loader is above everything including navbar */
    top: 0;
    left: 0;
    background-color: #04040a; /* Premium deep dark space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Concentric Spinning HUD Radar Rings */
.loader-hud-radar {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring-outer {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(144, 121, 198, 0.45); /* Theme Violet */
    border-radius: 50%;
    animation: loaderSpinClockwise 12s linear infinite;
}

.loader-ring-inner {
    position: absolute;
    inset: 12px;
    border: 1px dotted rgba(202, 187, 233, 0.35); /* Theme Lavender */
    border-radius: 50%;
    animation: loaderSpinCounter 8s linear infinite;
}

.loader-core {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    border: 1px solid rgba(144, 121, 198, 0.2);
    z-index: 2;
    box-shadow: 0 0 30px rgba(144, 121, 198, 0.15);
}

.loader-logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
    filter: drop-shadow(0 0 10px rgba(202, 187, 233, 0.3));
}

/* Booting Diagnostic Ticker UI */
.loader-terminal-boot {
    width: 260px;
    display: flex;
    flex-direction: column;
}

.loader-progress-bar-wrap {
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(144, 121, 198, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
}

.loader-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9079c6 0%, #cabbe9 100%);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Animations */
@keyframes loaderSpinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loaderSpinCounter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}