/* Service Status Indicators */
.status-indicator {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 24px;
    height: 24px;
}

/* Online Status (Green) */
.sonar-wrapper-online {
    position: relative;
    width: 24px;
    height: 24px;
}

.sonar-emitter-online {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #10b981;
    z-index: 2;
}

.sonar-wave-online {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.sonar-wave1-online {
    animation: sonarWave 2s linear infinite;
}

.sonar-wave2-online {
    animation: sonarWave 2s 0.5s linear infinite;
}

/* Offline Status (Red) */
.sonar-wrapper-offline {
    position: relative;
    width: 24px;
    height: 24px;
}

.sonar-emitter-offline {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ef4444;
    z-index: 2;
}

.sonar-wave-offline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ef4444;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.sonar-wave1-offline {
    animation: sonarWave 2s linear infinite;
}

.sonar-wave2-offline {
    animation: sonarWave 2s 0.5s linear infinite;
}

/* Loading Status (Gray) */
.sonar-wrapper-loading {
    position: relative;
    width: 24px;
    height: 24px;
}

.sonar-emitter-loading {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #6b7280;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes sonarWave {
    from {
        opacity: 0.4;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(2.5);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
