/* SIM Connection Animation - Header */

.sim-connection-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    color: white;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sim-connection-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* SIM Icon */
.sim-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    animation: simPulse 1.5s ease-in-out infinite;
}

@keyframes simPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Connection Signal */
.connection-signal {
    display: flex;
    gap: 0.3rem;
    align-items: flex-end;
}

.signal-bar {
    width: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    animation: signalWave 0.8s ease-in-out infinite;
}

.signal-bar:nth-child(1) {
    height: 10px;
    animation-delay: 0s;
}

.signal-bar:nth-child(2) {
    height: 15px;
    animation-delay: 0.1s;
}

.signal-bar:nth-child(3) {
    height: 20px;
    animation-delay: 0.2s;
}

.signal-bar:nth-child(4) {
    height: 25px;
    animation-delay: 0.3s;
}

@keyframes signalWave {
    0%, 100% {
        background: rgba(255, 255, 255, 0.4);
        transform: scaleY(1);
    }
    50% {
        background: #4ade80;
        transform: scaleY(1.2);
    }
}

/* Connection Text */
.connection-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.connection-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.connection-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid #4ade80;
    color: #4ade80;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Connection Wire Animation */
.connection-wire {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.wire-dot {
    width: 12px;
    height: 12px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: dotFloat 2s ease-in-out infinite;
}

.wire-dot:nth-child(1) { animation-delay: 0s; }
.wire-dot:nth-child(2) { animation-delay: 0.2s; }
.wire-dot:nth-child(3) { animation-delay: 0.4s; }
.wire-dot:nth-child(4) { animation-delay: 0.6s; }
.wire-dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes dotFloat {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-10px); opacity: 1; }
}

/* Floating Animation */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Glow Effect */
.glow-effect {
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(14, 165, 233, 1));
    }
}

/* Connecting Animation */
.connecting-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.connecting-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: connectingBounce 1.4s infinite;
}

.connecting-dot:nth-child(1) { animation-delay: 0s; }
.connecting-dot:nth-child(2) { animation-delay: 0.2s; }
.connecting-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes connectingBounce {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* Success Animation */
.success-animation {
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: ripple-animation 0.8s ease-out;
}

@keyframes ripple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Network Animation */
.network-animation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.network-node {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0ea5e9, #1e3a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: nodeFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.network-node:nth-child(1) { animation-delay: 0s; }
.network-node:nth-child(2) { animation-delay: 0.3s; }
.network-node:nth-child(3) { animation-delay: 0.6s; }

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Neon Glow */
.neon-glow {
    text-shadow: 0 0 10px #0ea5e9, 0 0 20px #0ea5e9;
    animation: neon-flicker 3s infinite;
}

@keyframes neon-flicker {
    0%, 100% { text-shadow: 0 0 10px #0ea5e9, 0 0 20px #0ea5e9; }
    50% { text-shadow: 0 0 20px #0ea5e9, 0 0 40px #0ea5e9; }
}

/* Loading Bar */
.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #4ade80, #0ea5e9);
    background-size: 200% 100%;
    animation: loadingFill 2s ease-in-out infinite;
}

@keyframes loadingFill {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .sim-connection-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sim-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .connection-text {
        text-align: center;
    }
    
    .network-animation {
        grid-template-columns: 1fr;
    }
}
