/* Futuristic Loading Animation */

.futuristic-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.futuristic-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

/* Rotating hexagon rings */
.futuristic-loader::before,
.futuristic-loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid transparent;
    animation: rotate 2s linear infinite;
}

.futuristic-loader::before {
    width: 80px;
    height: 80px;
    border-top-color: #0066cc;
    border-right-color: #0066cc;
    animation-duration: 1.5s;
}

.futuristic-loader::after {
    width: 60px;
    height: 60px;
    border-bottom-color: #00aaff;
    border-left-color: #00aaff;
    animation-duration: 2s;
    animation-direction: reverse;
}

/* Center pulsing core */
.futuristic-loader-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0066cc, #00aaff);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.5);
}

/* Orbiting dots */
.futuristic-loader-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0066cc;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -4px 0 0 -4px;
}

.futuristic-loader-dot:nth-child(2) {
    animation: orbit 2s linear infinite;
}

.futuristic-loader-dot:nth-child(3) {
    animation: orbit 2s linear infinite;
    animation-delay: -0.66s;
}

.futuristic-loader-dot:nth-child(4) {
    animation: orbit 2s linear infinite;
    animation-delay: -1.33s;
}

/* Animations */
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(35px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(35px) rotate(-360deg);
    }
}

/* Alternative: Quantum Spinner (simpler, more minimal) */
.quantum-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.quantum-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.quantum-loader-bar {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #0066cc, #00aaff);
    border-radius: 2px;
    left: 50%;
    top: 50%;
    transform-origin: 2px 30px;
    animation: quantum-spin 1.2s linear infinite;
}

.quantum-loader-bar:nth-child(1) {
    transform: rotate(0deg) translate(-2px, -30px);
    animation-delay: 0s;
}

.quantum-loader-bar:nth-child(2) {
    transform: rotate(45deg) translate(-2px, -30px);
    animation-delay: -0.15s;
}

.quantum-loader-bar:nth-child(3) {
    transform: rotate(90deg) translate(-2px, -30px);
    animation-delay: -0.3s;
}

.quantum-loader-bar:nth-child(4) {
    transform: rotate(135deg) translate(-2px, -30px);
    animation-delay: -0.45s;
}

.quantum-loader-bar:nth-child(5) {
    transform: rotate(180deg) translate(-2px, -30px);
    animation-delay: -0.6s;
}

.quantum-loader-bar:nth-child(6) {
    transform: rotate(225deg) translate(-2px, -30px);
    animation-delay: -0.75s;
}

.quantum-loader-bar:nth-child(7) {
    transform: rotate(270deg) translate(-2px, -30px);
    animation-delay: -0.9s;
}

.quantum-loader-bar:nth-child(8) {
    transform: rotate(315deg) translate(-2px, -30px);
    animation-delay: -1.05s;
}

@keyframes quantum-spin {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Alternative: Hexagon Grid Loader */
.hex-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.hex-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.hex-loader-segment {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #0066cc;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.hex-loader-segment:nth-child(1) {
    left: 30px;
    top: 0;
    animation: hex-fade 1.8s ease-in-out infinite;
    animation-delay: 0s;
}

.hex-loader-segment:nth-child(2) {
    left: 50px;
    top: 15px;
    animation: hex-fade 1.8s ease-in-out infinite;
    animation-delay: 0.15s;
}

.hex-loader-segment:nth-child(3) {
    left: 50px;
    top: 45px;
    animation: hex-fade 1.8s ease-in-out infinite;
    animation-delay: 0.3s;
}

.hex-loader-segment:nth-child(4) {
    left: 30px;
    top: 60px;
    animation: hex-fade 1.8s ease-in-out infinite;
    animation-delay: 0.45s;
}

.hex-loader-segment:nth-child(5) {
    left: 10px;
    top: 45px;
    animation: hex-fade 1.8s ease-in-out infinite;
    animation-delay: 0.6s;
}

.hex-loader-segment:nth-child(6) {
    left: 10px;
    top: 15px;
    animation: hex-fade 1.8s ease-in-out infinite;
    animation-delay: 0.75s;
}

@keyframes hex-fade {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        background: #00aaff;
    }
}

/* Alternative: Cyber Ring Loader */
.cyber-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.cyber-loader {
    position: relative;
    width: 70px;
    height: 70px;
}

.cyber-loader-ring {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: #0066cc;
    animation: cyber-rotate 1s linear infinite;
}

.cyber-loader-ring:nth-child(1) {
    width: 70px;
    height: 70px;
    top: 0;
    left: 0;
    animation-duration: 1.5s;
}

.cyber-loader-ring:nth-child(2) {
    width: 55px;
    height: 55px;
    top: 7.5px;
    left: 7.5px;
    border-top-color: #0088dd;
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.cyber-loader-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 15px;
    left: 15px;
    border-top-color: #00aaff;
    animation-duration: 1s;
}

.cyber-loader-ring:nth-child(4) {
    width: 25px;
    height: 25px;
    top: 22.5px;
    left: 22.5px;
    border-top-color: #33bbff;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

@keyframes cyber-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
